Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated.

learn more… | top users | synonyms

6
votes
1answer
12k views

Using ffmpeg to make a movie from png files

I have 277 800x600 png files with filenames with the format island_sizes-CSH(II)-###.png where ### is a number starting with 084 and ending at 360. I'm doing ffmpeg -i island_sizes-CSH\(II\)-*.png ...
6
votes
1answer
21k views

How To Check My Current Version of FFMPEG

I have FFMPEG installed on 2 different servers. On one of the servers, i run into an issue every time i try to convert m4v files where ffmpeg just processes the file indefinitely. When I take the ...
6
votes
5answers
7k views

Join Audio and Image -> Output as Video using FFmpeg

I have 1 image (jpg) and 1 audio file (MP3) and I would like to output this as a video file (say AVI for example). Does anyone know how to use FFMPEG to join the two? I'd like to show the image for ...
6
votes
3answers
4k views

Convert video from .mp4 to .ogg

I am using ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers . I need to convert a file .mp4, to .ogg format. I am on Mac OS X, and I have tried this so far: ffmpeg -i ...
6
votes
1answer
4k views

Resources To Use FFMPEG Effectively [closed]

Lately i've posted a lot of questions about how to use ffmpeg. It's pretty clear to me that I am missing some sort background in video encoding and was wondering if any of my fellow superusers had ...
6
votes
1answer
19k views

ffmpeg: Converting MKV to MP4 lossless

I'm new to ffmpeg (windows), and need some help. I want to convert my MKVs to MP4 with as little loss in quality as possible. The MKVs are made with makemkv, and contains among others DTS soundtrack. ...
6
votes
3answers
11k views

Which codecs are most suitable for playback with Windows Media Player on Windows XP?

I need to encode a short video in a format that can be played with windows media player on windows xp without installing any additional codecs. For the recoding process I'm using ffmpeg. I've already ...
6
votes
1answer
3k views

FFmpeg filter to rotate image through arbitrary angle

I need to produce timelapse video from a webcam that was mounted at a slightly off-vertical angle, and I need to rotate the image about 3 degrees counter-clockwise. (The webcam is in a virtually ...
6
votes
1answer
2k views

ffmpeg: isolate one audio channel

How can I use ffmpeg to isolate one channel from an audio file? I have a stereo audio file, and I need the output to be the contents of the right channel in a mono audio file. While I'm sure it's ...
6
votes
2answers
6k views

Add 1 second of silence to audio through FFmpeg

I have an AC3 5.1 audio file to which I would like to insert x seconds of silent audio at the beginning. This has nothing to do with video muxing, so itsoffset is useless since it seems to only work ...
6
votes
4answers
23k views

How to specify audio and video bitrate

I have a mov file with the following media information: Stream 0 Type: Video Codec: H264-MPEG-4 AVC (part 10)avc1 Language: English Resolution: 1280x720 Frame rate: 24 Stream 1 Type: Audio Codec: ...
6
votes
2answers
2k views

ffmpeg: How to create cropped thumbnails?

For creating a video thumbnail with ffmpeg I'm using this command: ffmpeg -itsoffset -4 -i video.mp4 -vframes 1 thumb.jpg This gives me a thumbnail with the same size of the video (which has an ...
6
votes
1answer
12k views

ffmpeg open webcam using YUYV but i want MJPEG

I need ffmpeg to open webcam (logitech c910) in MJPEG mode, because the webcam can give ~24 using MJPEG "protocol" and only ~10 fps using the YUYV. Can i choose between them using ffmpeg command line? ...
6
votes
2answers
10k views

ffmpeg encode subtitle

I know maybe it's not a right place to ask this question but I couldn't find more related Q/A site from StackExchange group so here it goes : I need to add subtitle to a movie, i already have avi ...
6
votes
2answers
5k views

How can I normalize the volume of a single video file?

I have a video file that was recorded from TV. During recording, we changed the volume levels in between multiple times. Is it possible to (approximately) normalize the volume of the video track? ...
6
votes
1answer
4k views

What is the command to cut a portion out of a video and save it using ffmpeg?

I've tried ffmpeg -t in_movie.avi -ss 00:26:20 -t 00:28:24 out_movie.avi but that's giving me: Invalid duration specification for t: in_movie.avi Please advise. UPDATE: Molly, that command ...
6
votes
2answers
14k views

How to clip a movie from specified start time in ffmpeg?

I'm trying to clip some movie from time A to time B using ffmpeg. I can set how long the target video should be using the -t flag, but how should I tell it to start that time from time A? In other ...
6
votes
1answer
7k views

accurate cutting of video (+ audio) with ffmpeg

I want my website to allow users to accurately create their own clips from a source video I provide. I have a source video file that I first want to convert to something suitable for a website: ...
6
votes
1answer
3k views

What does the video output stream details from ffmpeg mean?

When you run ffmpeg -i with the video file as input parameter, ffmpeg returns some details of the stream type, like codec, bitrate and resolution. What does the other data mean - "tbr", "tbn" and ...
6
votes
2answers
4k views

DTS to AC3 conversion for LG TV using mediatomb DLNA server

I want to convert a MKV video file containing DTS audio to a stream with AC3 audio. I want to pass this resulting stream to mediatomb's transcoding feature. Mediatomb will transfer the stream via DLNA ...
6
votes
1answer
2k views

ffmpeg encoding on QuadCore

I am trying to push my server's CPU cores to the max, but no success. Encoding 2-pass style, set my "-threads" to 128 . When running 2nd pass , the CPU seems to be at 98% usage, but first pass run ...
6
votes
1answer
2k views

Split Up a Video Using FFMPEG through Scene Detection

I saw this thread, which almost exactly does what I want, but I'm actually looking for splitting on scene detection. Automatically split large .mov video files into smaller files at black frames ...
5
votes
3answers
2k views

How can I fit a video to a certain size, but don't upscale it with FFmpeg?

I need to fit videos to 640x360 (the maximum my phone's player can handle), while also preserving aspect ratio, but I also want the video to be unchanged if it is smaller than 640x360 (no point in ...
5
votes
1answer
6k views

FFmpeg (MacPorts) - libfaac missing, need new audio encoder

I am so confused. I am trying a quite simple FFMpeg command to transcode a movie file to a x264/AAC mp4 file via the command line (for Vimeo upload). (Mountain Lion/Macports) ffmpeg -i INPUT.AVI ...
5
votes
1answer
13k views

Use ffmpeg copy codec to combine *.ts files into a single mp4

I've got a bunch of ts segments described by a single index.m3u8 file: index.m3u8 segment1_0_av.ts segment2_0_av.ts segment3_0_av.ts segment4_0_av.ts segment5_0_av.ts I know they ...
5
votes
2answers
10k views

Why is converting WMV to MP4 so slow?

I am trying to convert a video from WMV to MP4 with FFmpeg but it takes couple of hours. If I try to convert it to AVI it only takes about 10-15 minutes. ffmpeg version ffmpeg version ...
5
votes
3answers
12k views

VOB conversion quality in FFmpeg

I am trying to convert a VOB file to mpeg like this: ./ffmpeg.exe -i VTS_01_2.VOB -r 24 out1.mpeg However, the quality is very poor. I tried ./ffmpeg.exe -i VTS_01_2.VOB -vcodec copy out1.mpeg ...
5
votes
3answers
9k views

Merge two audio channels (stereo) into one (mono) on GSM6.10 using FFMPEG

I would like to know if it is possible to merge stereo audio into mono on a GSM6.10 audio file using FFMPEG. If it is, please provide the command to achieve this. Otherwise, is it possible to convert ...
5
votes
1answer
5k views

Convert AVI into H.264 that works inside an HTML5 Video tag

I would like to convert an existing black and white AVI into an H.264 video that works inside an HTML5 video tag. I'm currently using this ffmpeg command: ffmpeg -i file.avi -y -c:v libx264 ...
5
votes
1answer
6k views

How do I translate HandbrakeCLI options to FFmpeg options?

I have a bunch of commandline settings that work for handbrake, but sometimes on some videos (I have no idea why) handbrake throws "Out of memory exception". I was wondering if I can find the same ...
5
votes
3answers
4k views

Convert YouTube DASH audio (youtube-dl) to m4a (AAC DL)

I am unable to listen to m4a DASH audio I download from YouTube via youtube-dl on Winamp. Is there an option in youtube-dl to remove the DASH audio part of m4a file and download/save it as an m4a (AAC ...
5
votes
1answer
7k views

How to get time stamp of closest keyframe before a given timestamp with FFmpeg?

I want a FFmpeg seeking command that fast and accurate. I found this. The solution is that we apply -ss for both input (fast seeking) and output (accurate seeking). But: If the input seeking is not ...
5
votes
1answer
2k views

How to generate a sine wave with ffmpeg?

I would like to generate an audio file with a sine (sinusoid) wave with FFmpeg. I know there is a sine filter but that's as far as it goes. I tried: fmpeg -filter "sine=48:1:5" -c:a pcms16le test ...
5
votes
3answers
18k views

Live streaming using FFMPEG

This is rather a simple question, but I cannot find the answer. I need to stream from a capture device to a server, and then have FFMPEG on the server re-code the stream suitable for HLS. But how do ...
5
votes
1answer
5k views

FFmpeg settings for YouTube and Facebook video uploads

Can any FFmpeg experts share their preferred settings for video conversion to both YouTube and Facebook? For Youtube I am following these guidelines and my video size is 480P @ 24 fps Audio Codec: ...
5
votes
1answer
5k views

Lossless universal video format

I am trying to find the most suitable lossless video format for 1280x720 25fps video. The video has 4 minutes. Sound will be 320 kbps mp3, that is not a big deal. Ideal conditions: Lossless (can be ...
5
votes
2answers
10k views

How to make an MPEG2 video file with the highest quality possible using FFMPEG?

I have got a WMV (v9 (WMV3), 960x720, 30.000030 fps, planar 4:2:0 YUV, produced by PowerPoint 2010) file and need to convert it to MPEG2 - the only format my TVset can read from an USB flash drive (I ...
5
votes
1answer
1k views

Get crisp, clear thumbnails from MP4 with FFmpeg / ImageMagick

My ultimate goal is to get meaningful snapshots from videos that are either 30 min or 1 hour long. "Meaningful" is a bit ambitious, so I have simplified my requirements. The image should be crisp - ...
5
votes
2answers
12k views

Conversion from WMV to MP4 file fails with FFmpeg

When converting a WMV file to an MP4 file, it says [mp4 @ 0x989c160] track 1: could not find tag, codec not currently supported in container and Could not write header for output ...
5
votes
2answers
3k views

Most efficient way to convert a large ALAC library to MP3

I have a large library of CDs ripped to alac which I use as my main music library. I'd like to convert a copy of this library to vbr mp3 for portable devices, however I don't want to have to do this ...
5
votes
1answer
11k views

Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

When i tried to merge an avi file with a wav file it shows the error "Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height". I will ...
5
votes
1answer
7k views

How to split videos with FFmpeg and -segment_times option?

I try to split a video with FFmpeg and the -segment_times option like it's shown in this FFmpeg ticket. But it's not working, the error output isn't helpful and the resulting output is a single ...
5
votes
1answer
908 views

ffmpeg's select-filter generates unwanted black frames

I want to cut a video by frames with ffmpeg. What I came up with so far is ffmpeg -i P2.mp4 -vf "fps,setpts='PTS-STARTPTS',select='gte(n\,20)*lte(n\,30)',crop='600:430:100:650',scale='280:-1'" ...
5
votes
1answer
1k views

What does the “cutoff” option do in FFmpeg?

I am encoding some FLAC files into AAC and I came across the -cutoff option. I do not see this option in the documentation, however I did find it in the help $ ffmpeg -v warning -h full | grep ...
5
votes
1answer
1k views

Embedding artwork with FFmpeg during FLAC to ALAC conversion

How does one embed artwork during FLAC → ALAC conversion? ffmpeg -i track.flac -acodec alac track.m4a transfers metadata but not artwork.
5
votes
1answer
2k views

Two FFMPEG commands simultaneoulsy

I want to multicast two videos to two different ports of a multicast address. I am able to send one video to one port at a time. But I want a command where both the videos are sent to the ports at the ...
5
votes
1answer
2k views

FFmpeg - unable to play stream

I used the following command to attempt to stream from a file with ffmpeg: ffmpeg -re -i GunGrave\ -\ 03\ -\ Rain.webm -c copy -f asf rtmp://127.0.0.1:8090/test.asf This produced the following ...
5
votes
2answers
25k views

Using ffmpeg to encode a raw video to H.264 format

On a Ubuntu 10.04, I am trying to encode a raw video (YUV format) to a H.264 encoded video using below ffmpeg commands: ffmpeg -i input.mp4 output.h264 but I get an error saying Unsupported ...
5
votes
1answer
262 views

Using ffmpeg to Stretch the Contrast of a Video

I'm trying to implement what was suggested here: ffmpeg: adaptively stretch contrast The method I thought of is: Separate the L, U and V channels. Apply histeq to the L channel. Recombine the ...
5
votes
1answer
2k views

Cut last 30 seconds off ends of videos using ffmpeg in a batch file in Windows

This is what I have so far: for i in *.mp4; do ffprobe -show_format -i "%i" // get duration, then need to somehow subtract 30 seconds, and marry these two commands ffmpeg -ss 0 -i "$i" -t ...