Media tool with support for multiple codecs, filters, and containers. Include the full, uncut console output if you have problems with an FFmpeg command.

learn more… | top users | synonyms

0
votes
0answers
320 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
2k 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
665 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 ...
60
votes
6answers
35k 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
1k 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
235 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
665 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 ...
4
votes
1answer
3k 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
2k 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 ...
3
votes
1answer
2k 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
338 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
5k 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
348 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
339 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
897 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
492 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
898 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
210 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 ...
4
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 - ...
3
votes
1answer
4k 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
197 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 ...
0
votes
1answer
515 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
350 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
2k 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 ...
1
vote
2answers
2k 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
286 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
8k 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
1k 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
3k 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 ...
0
votes
1answer
6k 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
638 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
374 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 ...
17
votes
2answers
17k 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 ...
1
vote
1answer
3k 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 ...
3
votes
1answer
8k 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
598 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
398 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 ...
2
votes
1answer
3k views

ffmpeg: Unable to parse option value “-1” as pixel format

How do I fix this? Since this happens on .mov source files and not .mp4 source files, I assume I don't have the proper decoders setup somehow. So do I need to recompile? and what settings do I need to ...
3
votes
1answer
1k views

A way to capture error output from ffmpeg/avconv in a bash script

I am trying to batch convert a bunch of files and i am doing an simple listing of the converted files to a text document so that i can stop the script and continue from approximately were i started. ...
0
votes
0answers
254 views

ImageMagick video filter for FFmpeg

I'd like to apply some non-trival video operations on a per-frame base. So far, I've been using shell scripts + ImageMagick + FFmpeg, decomposing the video into individual frames on disk, processing ...
2
votes
2answers
642 views

Linux job queue for FFmpeg conversion

I'm starting up a Debian web server which will host a website where users can upload video files and play them. Hence, the video files need to be converted into the proper format (mp4, ogg, webm) for ...
3
votes
0answers
212 views

FFmpeg & iPhone: don't display audio language button

I'm creating an MP4 file with FFmpeg 1.1.1, using life and aevalsrc to generate some test video and audio: ffmpeg -f lavfi -i life -f lavfi -i aevalsrc=0 -frames:v 750 life.mp4 If I play it on an ...
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.
3
votes
3answers
928 views

Information about ffmpeg command line options

I have seen the use of ffmpeg in the command line, with the option -strict -2, or -strict experimental. I went to the command line documentation of ffmpeg, but I could not find information about this ...
0
votes
1answer
4k views

convert gif to mp4 (gif2mp4) [duplicate]

Possible Duplicate: How do I convert an animated GIF to a YouTube friendly video format? The question is pretty straight-forward: How to convert animated gif file to mp4 video? It might ...
1
vote
0answers
744 views

how to reduce h264 annex B NAL unit sizes to avoid IP fragmentation?

I'm trying to stream a video over to a terminal using RTP. The video is coded in h.246. I'm using ffmpeg to extract the byte stream according to h.264 annex B : ffmpeg -i test.h264 -vcodec copy -vbsf ...
0
votes
1answer
256 views

Does ffprobe download the file?

When I run ffprobe http://example.com/abc.mp4 does it download the stream? If it does , will it cleaned up by ffprobe once its done?