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

13
votes
2answers
13k views

Using FFmpeg to locate moov atom

I have a library of videos, all of which should have been adjusted for web-streaming by putting the moov atom ahead of the rest of the video. This allows playback to begin before the client has ...
3
votes
1answer
1k views

iPhone recorded videos getting rotated on Windows systems

I am recording videos on iPhone and uploading them to my Linux server. Users can see these videos on website. If users are seeing videos on mac or iDevices the video is looking fine but when users are ...
2
votes
1answer
2k views

ffmpeg doesn't use maximum cpu power

I purchased two new cpus E5-2650: 8c * 16t per core = 128 * 2 = 256 - max number of threads but it looks like ffmpeg doesn't use maximum power of cpu even though i'm running it with -threads 0. ...
1
vote
2answers
6k views

How to force the first frame to be key-frame?

I want to encode after seeking to a certain position, and i want to make the first frame a key-frame, here the command i used: ffmpeg -ss 300 -i howimet.mp4 -acodec libfaac -ar 48000 -ab 128k -ac 2 ...
0
votes
1answer
109 views

Create zero-length file with custom extension

For a class I am creating a custom codec called .utah. The whole idea is to immerse ourselves in a large and unfamiliar code base. So far this has been very fun, and to start we have created a .utah ...
0
votes
1answer
899 views

FFmpeg can't convert MOV to FLV

When i try to convert a .mov file to .flv i get this type of output. I get error Invalid sample format '(null)' Error opening filters!. When I convert .avi or .mp4 I get no errors. I'm on ...
1
vote
1answer
858 views

How to fetch frames from a video without losing some of them?

I created an AVI file from 30 PNG images, 15 frames/second: ffmpeg -i %02d.png -r 15 video.avi But when I tried to get the images back from the AVI: ffmpeg -i src.avi %02d.png I only got 19 ...
0
votes
1answer
919 views

Extracting images from video in 1 minute intervals

I would like to extract images from a video Exp01.avi, the video is 24fps and 25 minutes long. I want the images to be extracted from the video after every 1 minute interval. Please someone tell me ...
0
votes
2answers
3k views

Lossless audio codec for uploading to YouTube

I took a FLAC file and JPG to create a video ffmpeg -loop 1 -i aa.jpg -i bb.flac -c:a copy -shortest cc.mkv However after uploading the resultant MKV to YouTube I noticed that the audio cuts out ...
16
votes
1answer
19k views

Converting video to WebM with ffmpeg/avconv

While trying to optimize the size of my home videos I converted some of them to WebM as a test, using Pitivi on Xubuntu. The size difference is significant. The resulting webm-file is only around 10% ...
0
votes
0answers
321 views

ffmpeg concatenate videos have multiple audio stream [duplicate]

I have 2 video files, each of which contains 2 audio stream. Duration: 00:08:39.93, start: 0.000000, bitrate: 13940 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x816 [...
2
votes
1answer
4k views

How to use ffmpeg to encode a file with possible error?

I have a video file, which contains some error. The file is readable, but possible some blocks are wrong during some disk operation. So while playing the video, a few seconds will no be displayed ...
2
votes
1answer
1k views

Unable to extract MKV attachments with FFmpeg

I'm trying to extract attachments from an MKV file by following the documentation at http://ffmpeg.org/ffmpeg.html#Main-options Direct quote from documentation: To extract all attachments to files ...
115
votes
7answers
74k views

How do I convert a video to GIF using ffmpeg, with reasonable quality?

I'm converting .flv movie to .gif file with ffmpeg. ffmpeg -i input.flv -ss 00:00:00.000 -pix_fmt rgb24 -r 10 -s 320x240 -t 00:00:10.000 output.gif It works great, but output gif file has a very ...
2
votes
1answer
2k views

generating video slideshow with avconv but maintaining image ratio

This may have already been answered.. but I'm struggling to search for it! I have a set of images, of varying dimensions that I've created a 'fade affect' with, using imagemagicks convert command. ...
1
vote
1answer
346 views

How to create a multiple audio MKV from an AVI and a MP3 using FFMPEG

I have a AVI movie and a second audio in a MP3 file and want to create a third file in MKV with the original audio from AVI and a secondary audio from the MP3. Is it possible to do with FFMPEG? I've ...
1
vote
0answers
793 views

FFmpeg AVI to MP4 preserves sound, but not images

Working with FFmpeg at a conversion (any file to MP4 (H.264/AAC)): ffmpeg -y -i testdatei.avi -i logo.jpg -filter_complex overlay=15:15,scale=-1:720 -c:v libx264 -profile:v baseline -preset medium -b:...
4
votes
2answers
6k views

Is there a way to disable or hide output thrown by FFmpeg?

I went through the documentation but couldn't find a solution. I'm hoping there is some kind of argument that will tell FFmpeg to not show the output in the console. The output that I'm referring to ...
0
votes
1answer
3k views

Keep frames at the same timestamps after converting with FFmpeg

I use this command to convert ffmpeg -i spider.mkv -acodec libfaac -ar 48000 -ab 128k -ac 2 -vcodec libx264 -vf "scale=480:-1" -r 24 -f mpegts spider.ts but frames' timestamp in the output file (...
0
votes
0answers
29 views

Cut 10 seconds from the beginning of a video using ffmpeg [duplicate]

How can I remove X seconds from the beginning of a video using ffmpeg? What I've tried: ffmpeg -ss 00:00:10 ffmpeg -ss 10 ffmpeg -ss "11" -i season.avi -vf "movie=/storage/conv_sctipt/watermark.mov ...
4
votes
1answer
3k views

Converting MP3 to AAC and outputting to stdout

ffmpeg.exe -i s.mp3 -f aac - This is the command I run but it doesn't recognize the format AAC. Requested output format 'aac' is not a suitable output format pipe:: Invalid argument However when ...
0
votes
0answers
407 views

ffmpeg black bars at the left and right side of the video

I have strange problem with the resolution using ffmpeg. in the output bellow I've two files "test1" and "test2". "test1.flv" I've downloaded from website and it was already converted into flv, and ...
5
votes
1answer
8k 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 ...
2
votes
0answers
387 views

Conversion of sequence of PNGs to movie using ffmpeg on Fedora 18

I have a series of PNG images called Temp01.png, Temp02.png, ..., Temp99.png which I am attempting to convert into a movie using ffmpeg. I am using the command: ffmpeg -i Temp%02d.png -f avi -vcodec ...
1
vote
1answer
446 views

How do I feed FFMPEG with JPEG images via Named Pipe?

Normally you can feed FFMPEG with images from the file system using -f image2, but this doesn't work when you have a named pipe as input: FFMPEG complatins that "index in the range 0-4" could not be ...
0
votes
1answer
2k views

How to determine AAC bit depth

With a wav file for example you can easily distinguish between bit depths 24-bit Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s32, 2116 kb/s 16-bit ...
1
vote
0answers
618 views

ffmpeg and matching encoding options

I have two mp4 files captured from different android devices. the ffmpeg output of each file is listed below. Can i re-encode two.mp4 so that the encoding options are the same as one.mp4? I cant see ...
2
votes
2answers
1k views

fastest way to convert any audio file to low bitrate?

using ffmpeg I'd like to have some directions/parameters to: encode any audio file to a poor bitrate strip artwork from file optimize for speed optimize for size My goal is to have a bare-bone ...
2
votes
0answers
218 views

shell script ffmpeg stops after 2 jobs [closed]

I have a pretty simple shell script and after doing the first two jobs, it just stops and sits there, doesnt do anything, it doesnt seem to matter what the third job is, if I switch the order etc, it ...
5
votes
1answer
2k 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
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 ...
1
vote
0answers
219 views

Stop ffmpeg from creating multipart avi files

I am trying to convert h264 avi files to Xvid format using FFMPEG. The video files are about 90min long. The code I am using is: ffmpeg -i input.avi -c:v libxvid -r 15 -an -vtag xvid -f avi output....
0
votes
1answer
589 views

AAC converted from MP3 (FFmpeg) results in bigger size

I'm on Windows x64 converting MP3 file to AAC using FFmpeg. I tried these commands: ffmpeg -i file.mp3 -acodec aac -strict -2 file.aac ffmpeg -i file.mp3 -c:a libvo_aacenc file.aac Both commands ...
1
vote
0answers
446 views

what is missing in this ffmpeg statement to create a working video conversion

I want to convert videos to a format that my camera reads with ffmpeg. I have some sample videos from the camera and analyzed them with mplayer -frames 0 -identify DSCN0001.mov and with ffprobe ...
2
votes
1answer
3k views

ffmpeg support for tx3g

I am trying to embed subtitles in an MP4 contrainer using ffmpeg. I am using the following command: ffmpeg -i input.MOV -i input.srt -map 0 -map 1 -c copy -c:s mov_text output.MOV I would like the ...
2
votes
2answers
3k views

User Generated Chroma Key Composite Videos with FFMPEG / AVCONV

I want to create a system where a user can upload two videos to a website, one of which has blue screen in the background, and the website uses AVCONV (or similar) to create a composite video of the ...
2
votes
1answer
332 views

Linux - Cut video from end position

I have been looking at different video cutting command line tools for Linux and I can't seem to find any which supports the operation of cutting a video from the end. For example, i have 10 videos ...
3
votes
2answers
11k views

Using FFMPEG to add subtitles to a M4v video file

I am having troubles adding subtitles to a video file using ffmpeg. I am using this command: ffmpeg -i movie_input.m4v -newsubtitle subtitles.srt -acodec copy -vcodec copy movie_output.m4v I found ...
3
votes
2answers
2k views

Unrecognized option 'profile:v'

I'm trying to run the command ffmpeg -i webcamrecording.flv -s 1024x768 -profile:v baseline webcamrecording.mp4 as part of an attempt to produce an mp4 that can play in a video tag. I get the ...
2
votes
2answers
4k views

FFMPEG Errors: “max_analyze_duration” “buffer underflow” “packet too large” What to do?

I have an error while just copying a video with ffmpeg. I use the command: ffmpeg -i leon.mpg -vcodec copy -acodec copy leon2.mpg The errors: [mpeg @ 00000000020ebd20] max_analyze_duration 5000000 ...
-1
votes
2answers
2k views

720p to micro 720p

What is Micro-720p ripping method? I want to rip from 720p using ffmpeg and libx264. Example m720p video information (I don't know the source video): General Complete name ...
2
votes
1answer
10k views

How do I change the bit depth in FFmpeg?

I need FFmpeg to grab an audio feed and reencode it to 16-Bit FLAC. How do I force a 16-Bit FLAC output? ./ffmpeg -i http://7359.live.streamtheworld.com:80/CONTINENTALAAC_SC -vn -ac 1 -ar 16000 -...
0
votes
1answer
838 views

How to convert video to GIF using FFmpeg

I installed FFmpeg on my XAMPP for converting stream of video to GIF images. I used the below code but it doesn't work. ffmpeg -ss 00:00:05.0 -t 00:00:10.0 -i input.wmv -acodec copy -vcodec copy -...
1
vote
0answers
456 views

FFmpeg failed to transcode

I have successfully installed Video Module with FFmpeg/avconv in local machine. My current version of FFmpeg is "0.6.0-svn". I have downloaded the video preset package from drupal.org for FFMPEG and ...
29
votes
2answers
26k views

Resizing videos with ffmpeg/avconv to fit into static sized player

I have a html 5 video player which is 700px wide, 400px high. I'm trying to use avconv to use ffmpeg to resize (while retaining the aspect ratio) and making sure it fits into my player. Input can be ...
2
votes
1answer
5k views

Multiple video filters in FFmpeg

I want to add a PNG watermark and then scale my video. I may add more filters. This is my FFmpeg command. sweb@sweb-laptop:/tmp$ ffmpeg -i Wildlife.wmv -sn -acodec libvorbis -vcodec libvpx -b:a 128k -...
4
votes
1answer
11k views

How to convert MP4 to SWF

Can someone give me the command line parameters for FFmpeg to convert MP4 video to an Adobe Flash SWF file?
1
vote
0answers
807 views

Creating video from DNG images with FFmpeg

I'm trying to make a video from TIFF images that are DNG pictures. The problem is that the resulting video that FFmpeg creates, have a resolution lower than the original pictures I tried with image2 ...
0
votes
1answer
1k views

Creating a movie from pdf images

I have a bunch of pdf files, from which I want to produce a movie. I'm using sips (on Mac OS) to convert the pdfs to .png, and then produce the movie with ffmpeg. So far, I'm doing this: for i in {...
0
votes
1answer
481 views

Split audio feed using FFmpeg

I'm trying to save an audio (or video) feed to local using FFmpeg. Here are the command and arguments that I'm using. ffmpeg -i http://7359.live.streamtheworld.com:80/CONTINENTALAAC_SC -vn -ar 22050 ...