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

2
votes
1answer
526 views

Bash: save ffmpeg output to a variable

How can i save ffmpeg file-info output to a variable? if i put the following command into variable it's always empty, even though the command generates an output /usr/bin/ffmpeg/ffmpeg -i $1 what ...
5
votes
2answers
11k views

How many instances of FFmpeg commands can I run in parallel?

I tired running 8 commands in parallel to fully utilize the CPU and speed up Video conversions, something like this: ffmpeg -i input.mp4 -t 60 -f mp4 /mnt/a.mp4 > /dev/null 2>&1 & ...
33
votes
4answers
17k views

Meaningful thumbnails for a Video using FFmpeg

FFmpeg can capture images from videos that can be used as thumbnails to represent the video. Most common ways of doing that are captured in the FFmpeg Wiki. But, I don't want to pick random frames at ...
10
votes
1answer
9k views

What is difference between -ss and -itsoffset in ffmpeg?

This is how ffmpeg describes it: ‘-ss position (input/output)’ When used as an input option (before -i), seeks in this input file to position. When used as an output option (before an output ...
1
vote
2answers
2k views

FFmpeg command to find key frame closest to 3rd minute

I use FFmpeg to extract a keyframe at the 3rd minute. This means that it is the 3*60*25 th frame (assuming 25 FPS). Now, often this frame is not a keyframe. I want to extract a frame closest to the ...
7
votes
2answers
3k views

Add silence to the end of an MP3

Do any of you know of a way of adding silence of a fixed duration to the end of an MP3, in Linux? For example using MEncoder, FFmpeg, etc? It needs to be command line as it will be scripted and ...
3
votes
1answer
11k views

Variable bit rates with “-vb” and “minrate”/“maxrate” settings in FFmpeg

For rendering, the time it takes is very different. -b 3500K -minrate 0K -maxrate 8000K takes 1hr 17min vb=3000k takes 2.5 hours What is vb 3000k and how is it different from -b 3500K -minrate 0K ...
7
votes
1answer
16k views

How can I convert a series of PNG images to a video for YouTube?

I have a sequence of PNGs (here is one specimen) which I turn into a video with ffmpeg: ffmpeg -r 10 -i image%03d.png -s 1380x720 -c:v libx264 -qscale 10 -r 30 basf_merck_libx264.mp4 With ...
2
votes
1answer
505 views

Why are colors changed in the preview for my clip on YouTube?

I have 1000 PNGs created with R and ggplot2. This is one for example: image000.png Now I use ffmpeg to glue them together into a clip: ffmpeg -r 10 -i image%03d.png -s 1380x720 -vcodec png ...
3
votes
0answers
406 views

Ffmpeg sync error, first image showing really fast

I want to converting my images with mp3 to videos... but first slide is showing up really fast. I want to each slide duration 5-7 seconds or so RAW material MP3 Files My list Images FFmpeg ...
2
votes
2answers
743 views

FFmpeg not converting first image [duplicate]

Possible Duplicate: Ffmpeg sync error, first image showing really fast I'm using Windows and FFmpeg for Windows. My material are 8 images, with names like: product0001img01.png ...
0
votes
0answers
518 views

How to get a reasonable file size when converting from MP4 to WMV?

I converted an MP4 1080 movie to WMV. The result is a huge 9 GB file. How can I convert it (using FFmpeg) so that the file is decent quality but not huge? Or, how can I split a 9 GB WMV file to two ...
1
vote
2answers
1k views

How to compare two lossless audio files?

I have an M4A file which is also converted to a FLAC file. I'd like to see if the conversion is lossless, namely, whether the output to pcm from M4A is exactly identical to the one from FLAC decoding. ...
6
votes
3answers
3k 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 ...
0
votes
1answer
948 views

How do I install the “fade” filter for FFmpeg?

There is documentation for the "fade" filter, but I don't know how to install it. I'm using CentOS. I've installed FFmpeg from RMPForge: yum install ffmpeg
3
votes
1answer
6k views

FFmpeg MKV to MP4 remux whilst converting all audio tracks to AAC

I had a ffmpeg command that would successfully remux an mkv to a iTunes compatible mp4. However it only took the first audio stream regardless of language. I want to remux all audio streams, or at ...
1
vote
1answer
10k views

FFmpeg: Keeping quality during conversion [duplicate]

Possible Duplicate: Convert AVI to MP4 keeping the same quality I'd like to convert a good amount of wmv, mpg and avi files (with differing audio and video encodings) to mp4/x264/aac with ...
12
votes
2answers
48k views

Convert AVI to MP4 keeping the same quality

I want to compress an AVI file to MP4 using an h.264 codec. I could not get the same quality. How can I compress it? Original Video: Original Video Screen: FFmpeg console output (ffmpeg -i ...
2
votes
1answer
972 views

FFMPEG video merging issue

I want to concatenation 2 or more videos, using FFMPG but after join videos it has audio/video syncing issue, i used following code for that ffmpeg -i input1.flv -qscale:v 1 intermediate1.mpg ffmpeg ...
0
votes
1answer
1k views

How to update an FFmpeg SVN installation to the latest version

I'm using FFmpeg svn-r26402 – is this stable or not? I searched and found that the SVN repository is old and the Git repository is new. What should I do?
3
votes
1answer
2k views

Can FFMPEG convert mp3 files into m4a in full, i.e. with both audio and video streams (jpeg cover) copied?

I use Zeranoe build of ffmpeg. It converts mp3 files into m4a files just fine, as far as the audio stream is concerned, but I can't figure out a way to keep the songs album cover jpeg, which ffmpeg ...
2
votes
0answers
486 views

Keyframe extraction with ffmpeg fails

I'm trying to extract key frames from video file using command: ffmpeg -i newtape.mp4 -an -r 1 -y -vf "select='eq(pict_type,PICT_TYPE_I)'" -vsync 0 -ss 00:01:00 thumbnail_%09d.jpg It starts but ...
1
vote
1answer
385 views

FFMPEG text file

I am giving the input file in the command line like this: ffmpeg -i catch.flv. The information about the file such as resolution, frame rate, bit rate etc is displayed in the terminal. I want this ...
3
votes
1answer
1k views

Using ffmpeg with decimal wildcard

I have a folder with PNG images of the following naming scheme: IMG_0423.png IMG_0424.png ... IMG_0509.png I would like to make an MP4 movie from these images, but I get an error message that ...
3
votes
1answer
1k views

FFmpeg command converting M4V to FLV; video streaming is very slow

I am using this command to convert videos from M4V and AVI to FLV: ffmpeg -i 'video_1355440448.m4v' -s '640x360' -ab '64k' -ar '44100' -q:v '1' -f 'flv' -y video_1355440448.flv I have two servers: ...
3
votes
3answers
411 views

Why doesn't this for loop work?

This is on Ubuntu 12.04 I'm trying to figure out how to get ffmpeg to do a batch conversion of FLACs to MP3, recursively. If I cd into a directory and use for f in *.flac; do ffmpeg -i "$f" -c:a ...
2
votes
0answers
1k views

FFMPEG - streaming a playlist of videos to RTMP

I'm aware that you can stream files to a video server using FFMPEG - something like the following. fmpeg -re -i localFile.mp4 -c copy -f flv rtmp://server/live/streamName Is anybody aware of ...
3
votes
0answers
740 views

Setting font size of Closed Captions on iPhone [closed]

Does anyone know if it's possible to control the font size on videos played in the built-in iPhone video player? The subtitles (or "Closed Captions") that are there by default are rather small. None ...
2
votes
1answer
3k views

Tool to bulk speed up/convert an audio file

I want to listen to certain podcasts on my phone but I have two common problems: The audio is in some weird format (some don't play on my phone). The audio is slow. I want to use something like ...
2
votes
0answers
446 views

Prepend AAC file to MP4 causing audio to get out of sync

I have an application that handles the normalizing and combining of audio and video files from many different sources. All incoming audio is normalized as follows: ffmpeg.exe -i ...
3
votes
1answer
2k views

FFMPEG dropping frames while encoding JPEG sequence at color change

I'm trying to put together a slide show using imagemagick and FFMPEG. I use imagemagick to expand a single photo into 30fps video (imagemagick also handles things like putting some text captions on ...
2
votes
2answers
1k views

How Video4Linux and ALSA work with Codecs

My understanding is that a codec is both a decoder and a specification for decoding. So some group writes a codec which explains how to decode from their format back into the raw bitstream, and they ...
3
votes
2answers
4k views

Convert mp4 video to a format xbox 360 can play

Here is a video file my Xbox 360 refuses to play: $ MP4Box -info video.mp4 * Movie Info * Timescale 90000 - Duration 02:18:33.365 Fragmented File no - 2 track(s) File Brand ...
9
votes
2answers
6k views

How to encode audio with Opus codec?

The Opus audio codec looks like the best thing ever for compressing audio. It has recently become supported in the latest ffmpeg and VLC players. However, there is no documentation I can find on how ...
1
vote
1answer
1k views

Can't convert FLAC to MP3 with FFmpeg

How can I convert FLAC to MP3 using FFmpeg? What I've tried: ffmpeg -i "file.flac" "file.mp3" Stream mapping: Stream #0:0 -> #0:0 (flac -> ?) Encoder (codec none) not found for output ...
1
vote
4answers
2k views

Batch process ffmpeg?

Given an AVI encapsulated video with WMA2 audio and MP4 video how do I pass-through the video, convert the audio to MP3; then re-encapsulate the entire file into an AVI? ffmpeg -i "foo bar.avi" ...
0
votes
1answer
489 views

Encode video with changing bit rates using FFmpeg

I would like to encode a 30 min video using ffmpeg. I am able to achieve this using ffmpeg -i in.mp4 -vcodec libvpx -vb 1024k -keyint_min 150 -g 150 -an out.webm But I would like to encode ...
0
votes
0answers
176 views

Superimpose videos with FFmpeg

We’re trying to edit a video with FFmpeg. One of our videos has an alpha channel and we want to superimpose this above another video. example: Video 01: Start frame 1 end frame 200 Video 02: ...
5
votes
1answer
1k views

Convert png sequence to x264 with ffmpeg

I am trying to convert a series of pngs into an mp4 video. I am using ffmpeg, and want to encode the video with the H.264 codec. Using the command ffmpeg -y -r 30 -b 1800k -i _tmp%04d.png -vcodec ...
1
vote
0answers
880 views

Webcam stream doesn't work on Logitech E2500

I'm currently trying to get webcam streaming to work on a Logitech E2500 with ffmpeg. Running the command gives me some kind of buffer length error. pi@raspberrypi ~/ffmpeg-dmo-1.0 $ sudo ...
3
votes
3answers
1k views

How to apply audio track to a mute h264/mp4-video losslessly?

I have a MP4/h.264-video with no sound. With ffmpeg or similar, how can I apply an audio track to that MP4-file without degrading the quality of the video (i.e. without recoding the video-track)? I'd ...
22
votes
1answer
30k views

How to resize a video to make it smaller with FFmpeg

Is it possible to resize my videos to make them smaller with FFmpeg? I have an original video dimensions of 1024x576, now I want to resize the video to 720x480 to meet the requirement. How can I do ...
3
votes
1answer
2k views

Convert EXR file sequence with FFmpeg and x264

When I convert an EXR sequence into a QuickTime MOV file using FFmpeg and the x264 codec, it codes the video – but in QuickTime Player and Windows Media Player it's just black! But when I open it up ...
3
votes
1answer
3k views

“Unknown encoder libx264” on Windows

I'm testing ClipBucket on a Windows XP system, and ClipBucket (open source video share) uses FFmpeg to convert videos. The final command it executes is (i changed it a little to make it compatible ...
0
votes
1answer
2k views

Tuning hqdn3d for use with ffmpeg

I have some live action video I am scaling up 200% and then uploading to youtube. Trying to reserve as much quality as possible. Can anyone suggest some good starting settings to use with hqdn3d? Is ...
0
votes
1answer
269 views

Only video playback not working for Xbox using uShare

I have been mucking around with video encode for a while now using Handbrake without any success. (just recently tried EncodeHD on a Windows machine with no luck) So far all music and pictures play ...
1
vote
1answer
412 views

Audio of DV video files is corrupted

I have .dv files which I have recorded from DV tapes with iMovie. The formats are as follows: Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, 25 tbr, 25 tbn, 25 tbc ...
0
votes
2answers
1k views

.MP4 video (h.264 format) is not playing in iPhone when I host the video in Amazon EC2 instance

I have converted my source.flv video into target.mp4 (h.264 format) by using following command: ffmpeg -i source.flv -r 25 -b:a 128k -strict -2 -c:v libx264 -preset slow -s 320x240 -b:v 768k -ar ...
8
votes
1answer
3k views

When spliting MP4s with ffmpeg how do I include metadata?

I have a few MP4s that i want to upload to my flickr account but they have a maximum size of 500mb as mine is only about 550 i was planing to simply split them in half then upload them, but i want to ...
4
votes
0answers
730 views

ffmpeg to resize and concatenate multiple videos

I need to perform 3 operations on a source video (in sequence) 1 resize the source video from 320X 240 to 640X480 (200%) 2 add another video file before 3 add a 3rd video after In addition I ...