Questions tagged [ffmpeg]

FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.

Filter by
Sorted by
Tagged with
5
votes
3answers
5k views

drop similar frames

I'd like to record a very long video from webcam which will be mostly the same. I'd like to drop intermediate frames that are very similar to each other to save on filesize and also make it easier to ...
5
votes
1answer
272 views

Adding audio to picture: video too long even when using -shortest

I am trying to combine an audio (.wav) file and picture file (.png) into a video file. The video's length should be the same length as the input audio. Also, the output video should be youtube-...
5
votes
2answers
7k views

NVENC_HEVC Encoding making my files larger

I got a new Nvidia GPU to speed up my video encoding. I am working with x264 files to x265 and wanted to go faster. Using the library libx265 I am getting about 85fps when working on a file that is ...
5
votes
2answers
2k views

Add black (or other color) padding when doing vstack (or hstack)

I am using the following filter_complex to put 2 videos of resolution 320 x 240, one right next to the other: -filter_complex "[v1][v2]hstack=inputs=2[videoout]" This works great, but now I was ...
5
votes
1answer
303 views

Top and tail GoPro video based on volume

I'm thinking of using ffmpeg to automate a simple video task. I have lots of action videos that go like this, quiet/boring -> loud/exciting -> quiet/boring. Allowing for a few seconds at the start ...
5
votes
1answer
938 views

ffmpeg flash frames last still image in concat sequence

I want to concat several pictures into a video. Each picture must have its own duration. I use the most recent windows build for ffmpeg (20170204) and the guide from http://trac.ffmpeg.org/wiki/...
5
votes
1answer
2k views

Finding the place where a video loops

I got a video of a fireplace, the video is 3 hours long. I can see that it is looping as the logs keep burning forever. My guess is that it is looping in the region of 5-15minutes. Is there some ...
5
votes
1answer
4k views

ffmpeg: can I crop using vf while also using filter_complex at the same time?

I have an ffmpeg command using -vf to square crop a video: ffmpeg -i input.mp4 -vf \ "crop='if(gte(iw,ih),ih,iw):if(gte(ih,iw),iw,ih)', scale=720x720" \ -an -c:v libx264 -profile:v high -level 4.1 \ -...
5
votes
1answer
4k views

ffmpeg drawtext text parameter expressions

I am trying to write text on a video in such a way that the text "writes itself" - letter by letter. To do this I was able to do something like this: -vf "[in]drawtext=text='a':fontfile='/Windows/...
5
votes
1answer
3k views

ffmpeg - resize and crop

I want to know how to use the scale filter to take an image that is 2154x1136 and scale it down exactly 89.04% such that the image sits in a 1920x1080 frame, with full image left and right and black ...
5
votes
3answers
2k views

creating a lossless mp4 screencast

I'm trying to create a screencast for playback on the web. Would like to use h.264, webm, and ogg. The source files are in the Apple Animation codec, and they look perfectly accurate. However when I ...
5
votes
3answers
3k views

What are some GUI that allow me to cut sections from a video without re-encode?

To illustrate: Say I want to delete the 10-11 minute point of a 20 minute video and create the new video of 19 minutes without re-encode. Same as described in the link below; think: removing ...
5
votes
1answer
14k views

green screen to transparent with ffmpeg

ffmpeg does a very good job of getting rid of a green screen, with a command like this: ffmpeg -f lavfi -i color=c=black:s=606x1080 -i input.mp4 -filter_complex "[1:v]...
5
votes
1answer
5k views

How should I encode my 4K video stream?

I'm capturing uncompressed 4K video from my Sony A7R II via a video capture device, and am using ffmpeg to save the video. My problem is I don't know what codec to use. The two options I tried are: ...
5
votes
1answer
7k views

Removing / Overlaying logo on mp4 video format with ffmpeg on linux

I'm trying to remove logo from an .mp4 video format with ffmpeg on linux machine without re-encoding (for preserving the same quality) with the following command: ffmpeg -i input.mp4 -vf delogo=x=270:...
5
votes
1answer
6k views

Does ffmpeg have a configuration file?

Using a lot the ffmpeg program, I want to configure ffmpeg on linux so that it always hides banner (option -hide_banner) to reduce text output. I cannot seem to find anything that would tell me where ...
5
votes
1answer
1k views

Bad quality encodes to Prores4444 with alpha from ffmpeg

EDIT: This bug has been fixed. If you're experiencing the problem below, try updating ffmpeg I need to supply video with alpha as a prores4444 encoded file. I've been trying to use ffmpeg, but for ...
5
votes
2answers
2k views

Using ffmpeg to add height (as black bars) to video file without quality loss

I have a file of resolution 3840x1632, but my TV stretches the picture vertically to fill up all 2160 pixels of height. Is it possible to use ffmpeg to add blank / black height, while preserving the ...
5
votes
1answer
1k views

Video transitions and filters - how to create custom ones?

I am wondering if there is a possibility to do custom video transitions or filters. Like the video spiraling out, little squares appearing, circling out or something like that. Wiping the video out ...
5
votes
1answer
1k views

Largest input image size when encoding a video?

I got a bunch of really large 16 bit videos, approaching 65535×65535 pixels in size. These are essentially high quality timelapse panoramas. I want to convert them to a 7680×4320 movie (8K UHD, 8 bit)....
5
votes
0answers
2k views

CRF for 'visually lossless' for libx265 [duplicate]

The ffmpeg wiki page for H.264 states that: Consider 18 (CRF) to be visually lossless or nearly so: it should look the same or nearly the same as the input but it isn't technically lossless. ...
5
votes
1answer
795 views

Trying to sync audio in mpeg2 video whose video freezes first 8 seconds in playback

So I have a handful of old mpeg2 (.mpg) files with the following profiles as provided by ffmpeg (the timecodes on each are different): Stream #0:0(eng): Video: mpeg4 (Advanced Simple Profile) (mp4v / ...
4
votes
2answers
8k views

Mux mkv and dts file, change default audio stream and language

I want to mux (combine) two files into one mkv file. The first one is an mkv file that contains a video and an audio stream in German. The second one is an English audio stream in dts format.I want ...
4
votes
3answers
1k views

Software for detecting Photosensitive Epilepsy content

As part of various broadcasters requests media provided for broadcasting environment must be PSE (Photosensitive Epilepsy) free. There should be not frames sequences that could trigger that symptoms. ...
4
votes
4answers
4k views

ffmpeg: Normalize audio in an avi file

Ι have an avi file that has different levels of audio. Is there a way to decrease and increase appropriately where needed the audio of my file using ffmpeg?
4
votes
2answers
8k views

How to show number of available streams using ffmpeg?

I just want to see how many streams are inside my video file. I looked at the official documentation and I cannot see what option I can use. Perhaps another command/terminal app can do something ...
4
votes
1answer
9k views

ffmpeg encode in all-i mode h264 and h265 streams

Which params I can use to obtain a transcode all-i based? No B and P frames? I know that this is not efficient for compression purposes but this is not my case now. I guess i have to fiddle a bit ...
4
votes
2answers
4k views

How do I remove audio from all files in a directory with ffmpeg?

I have a directory full of short video clips in .AVI format, and I want to remove the audio from all of them. I'm using Ubuntu 12.04. I tried this command: find -name '*.avi' -exec ffmpeg -i {} -an -...
4
votes
1answer
5k views

Loudness control LUFS level adjustments

Is there a tool that can adjust the loudness level of a video? for example I need to make the loudness to be -23 LUFS with max deviation of 0.5 lu. is there a simple tool/cloud service that doesn't ...
4
votes
1answer
2k views

Speed up a video 30x using only key frames with ffmpeg?

I have a 30 fps video with a GOP 30 (1 i-frame per second). I'd like to create a version that is '30x faster', by dropping all frames except every 30th frame. I can do that as so: ffmpeg -i t1.mp4 -...
4
votes
1answer
7k views

ffmpeg transcoding H264 interlaced and keep interlacing via H264_NVENC codec

I have the following interlaced H264 file: Stream #0:0[0x335]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg, top first), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 50 tbr, 90k ...
4
votes
2answers
17k views

FFMPEG convert video with multiple audio streams?

Ok so I have a video made from dxtory. The video is using dxtory video codec and unknown audio codec. When I pop the file into avimux, I can clearly see two audio tracks/sources. I have successfully ...
4
votes
3answers
3k views

h264 settings for large flat areas of slowly changing colour

I'm doing an animation for a projection mapping that simulates the sun casting shadows on a structure as it moves through the sky. Basically it's just big flat areas of colour that change over about ...
4
votes
1answer
16k views

restart encoding with ffmpeg when bad source

I have an ffmpeg process which saves a stream from wowza server, but when the stream in wowza is interrupted for a second or so sometimes ffmpeg cycles in: [segment @ 0x671a10] st:0 PTS: 9600015 DTS: ...
4
votes
1answer
3k views

How to concatenate two mxf files with ffmpeg, preserving both audio channels?

I have mxf files which went over the 2G limit, so were split up in the camera to produce two mxf files. They have two audio streams, one from each mic, like this: Duration: 00:10:01.60, start: 0....
4
votes
1answer
9k views

FFMPEG output is blocky

I'm attempting to extract the individual frames from a raw AVC video stream. I'm doing this via the following ffmpeg command: ffmpeg -q 1 -i video_test.avc -f image2 frames/frames_%04d.jpg The ...
4
votes
2answers
4k views

ffmpeg “Stream specifier matches no streams”, but it exists

In ffmpeg, I have the following filter_complex: color=c=Chartreuse:s=1920x1080:d=8640.059,setpts=PTS-STARTPTS[t]; [1:v] trim=start=114.149:end=124.149,setpts=PTS-STARTPTS [v0]; [t][v0]overlay=0:0:...
4
votes
1answer
34k views

capture RTSP stream from IP camera ffmpeg

I used the following command to get the frames from RTSP h264 codec. I could not able to get the frames from the ip camera. $ ffmpeg -i rtsp://xxxx:yyy@192.168.1.yy:xx/tcp/av0_0 -f image2 -vf fps=fps=...
4
votes
1answer
3k views

Using ffmpeg with avfoundation, capture_cursor and capture_mouse_clicks options are ignored

Situation: cash-strapped ivory tower visionary and ffmpeg newbie manacled to a 2nd hand 2010 Macbook Pro concealing a 'Black Screen of Death' NVIDIA GeForce GT 330M graphics chip. With the help of ...
4
votes
2answers
2k views

How is possible for YouTube and Vimeo transcode so fast?

For the bit I read YouTube and Vimeo rely on servers powered by some modified libs i guess like libavcodec and tools like ffmpeg in a serious custom build. Let's assume a transcode to h264 but the ...
4
votes
2answers
5k views

ffmpeg: white padding is light grey but not white

I want to generate 16:9 thumbnails from videos with white padding but the resulting picture has grey padding instead of white. This is the command line (input here is a jpg but the effect is the same ...
4
votes
1answer
3k views

ffmpeg input from images stream out video

I am using ffmpeg to capture a video recording device and would like to add an overlay to it . I have images being rendered on the fly and I would like to use them as the overlay . How can I take a ...
4
votes
2answers
9k views

How to do a video live stream through a VPS?

I've been looking at a million resources and I can't find a definitive answer to this. I'm looking to do a small scale (max 50 viewers possibly), low quality live video stream, with nothing but my ...
4
votes
1answer
6k views

ffmpeg hardcoded subtitles from the top, bigger, with thicker stroke, on a dark background

I found this page (I can't comment or answer there so here's a new question): Render srt subtitles to video? with this line which works fine: ffmpeg -i input.mp4 -filter:v subtitles=subtitle.srt -c:...
4
votes
2answers
3k views

How to combine ffmpeg vf commands for resizing and color correction?

I'm currently using the following batch script to run an ffmpeg command: @echo off title Convert videos to Mp4 h.264 with FFMPEG. echo This script will find all video files of a given extension then ...
4
votes
1answer
5k views

RTSP to RTMP converting fails after specific time only when IP camera enters night mode

I have bought a cheap IP camera Escam QF002 producing output in RTSP. I'd like to secure it with RTMP or HLS stream served by nginx with nginx-rtmp-module. For this I'd copy the video stream (h264) ...
4
votes
2answers
3k views

How match this broadcast standards with Premiere and ffmpeg

I have to export an MXF file for a program that have certain limitations: Conform to SMPTE 274M, “1920 x 1080 Scanning with no visible video impairment such as blocking errors or pixelization ...
4
votes
1answer
896 views

Extracting video fields Respectively

Extracting individual video fields is my previews question. Based on the Mulvya's answer I can extract the top fields (only) or the bottom fields (only) individual. Now, I need to extract the video ...
4
votes
1answer
3k views

Use ffplay to check how much to brighten video before using ffmpeg?

I have a video which is a bit dark that I'd like to re-encode and brighten up with ffmpeg. As a smarter/faster alternative to running ffmpeg in trial/error mode, is there a way to simply use ffplay ...
4
votes
1answer
4k views

Streamable Container for HEVC (H.265)

flv is a container which can be used to stream videos while they are being encoded. flv supports h.264 codec. However, flv doesn't support hevc codec. Is there any container for hevc which is ...

1 2
3
4 5
35