Media tool with support for multiple codecs, filters, and containers. Include the full, uncut console output if you have problems with an FFmpeg command.
13
votes
1answer
3k views
What is the “sameq” or “same_quant” option in FFmpeg? Does it mean “same quality”?
Often, I've seen FFmpeg commands using the sameq option, for example
ffmpeg -i input.mp4 -sameq output.avi
What does this mean? Does it mean "same quality"? If not, what should I use instead?
3
votes
1answer
2k views
What parameters should I be looking at to reduce the size of a .MOV file?
My Canon 60D creates .MOV files when recording video and I've found out that the .MOV container has an H264 video stream and a PCM audio stream.
I've used ffmpeg and GSpot to look at some of my ...
9
votes
1answer
3k views
How can I get ffmpeg to convert a .mov to a .gif?
I'm trying to convert a .mov to a .gif and I'm not having success.
Here's the error:
ffmpeg -pix_fmt rgb24 -i yesbuddy.mov output.gif
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg ...
3
votes
1answer
2k views
What bunch of ffmpeg scripts do I need to run “Video for everybody”?
What list of commands should I do in ffmpeg/mencoder/some_other_CLI_app to get a video in all the right formats to use Video for Everybody?
i.e. Is there a subtlety that prevents there being a ...
1
vote
1answer
388 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 ...
5
votes
3answers
3k views
How can I re-encode H.264 video with minimal quality loss?
I have a lot of MPEG-TS files (.TS container but H.264 video) and playback is fine except that when you skip forward/backward or fast forward it's very sluggish and gets pixelated, etc.
I've been ...
15
votes
8answers
5k views
Program to convert flac to mp3?
I'm looking for a program to convert flac files to mp3, while preserving the embedded metadata (including album art).
I'm pretty sure this is possible with ffmpeg, but I don't know the command . . .
...
7
votes
1answer
694 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 ...
9
votes
7answers
15k views
How to convert video to images?
How can I convert a video file to a sequence of images, for example one frame every N seconds. Can mplayer or ffmpeg do this? I have used MPlayer to grab screenshots manually but I would like to ...
4
votes
1answer
1k views
Resources To Use FFMPEG Effectively
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 ...
3
votes
4answers
2k views
FFmpeg tweaks for converting from WMV to FLV?
When using ffmpeg to convert from .wmv files to .flv files, I find that either the quality is too low or the bps is too high. I am working on a Ubuntu Linux installation. Any suggestions?
The bps ...
2
votes
1answer
3k 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 ...
3
votes
1answer
3k views
Use DivX settings to encode to mp4 with ffmpeg
I'm used to use VirtualDub to encode a video to AVI container with DivX-codec (and MP3 for audio). Now I'm planning to use ffmpeg to encode videos to MP4 container with h264-codec. What I've figured ...
3
votes
1answer
6k views
FFmpeg command to convert MP3 to AAC
I can issue this command:
ffmpeg -i input.mp3 -acodec alac -ab 128k -ar 48000 -ac 2 -y output.m4a
to create a m4a file.
But when I issue this command
ffmpeg -i input.mp3 -acodec alac -ab 128k ...
4
votes
2answers
2k views
Strip metadata from all formats with FFmpeg
How can I remove all metadata from all formats via FFmpeg?
I can just set special metadata for each format per man ffmpeg. Any option or method to clear all metadata and strip media from all metadata ...
4
votes
2answers
2k views
How do you splice out a part of an xvid encoded avi file, with ffmpeg? (no problems with other files)
Im using the following command, which works for most files, except what seems to be xvid encoded ones
/usr/bin/ffmpeg -sameq -i file.avi -ss 00:01:00 -t 00:00:30 -ac 2 -r 25 -copyts output.avi
So ...
3
votes
1answer
105 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'" ...
3
votes
1answer
329 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:
...
2
votes
0answers
141 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
1answer
485 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
251 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 ...
2
votes
2answers
5k views
How do I tell ffmpeg to transcode to a video codec supported by Windows Media player?
The command below executed without error.
ffmpeg -i thevideo.mkv outvideo.avi
Subsequent attempts to play outvideo.avi in Windows Media player threw this error
You may need an additional video ...
2
votes
1answer
591 views
Encode HD video to a good format for editing
I have a video that I would like to edit, but it's currently a mov (H.264) file, which makes frame by frame editing impossible. So, I'd like to re-encode it to a better format. I read that DV is a ...
2
votes
0answers
200 views
Shoud I use ffmpeg to have videoCodecId = 2 or 7?
I am using ffmpeg to convert my video files to flv.
My issue is that I want the converted flv files to have videoCodecId and audioCodecId = 2, because, I am injecting keyframes in the converted file ...
1
vote
2answers
3k views
how do I convert .iso to .mp4 without mounting with ffmpeg
The problem is - I want to convert .iso with dvd to .mp4 (h264/ac3), but I cannot mount it via mount -o loop, because I'm on a virtual machine that doesn't allow to do that.
Googling doesn't help.
...
0
votes
1answer
190 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
18
votes
5answers
26k views
Using ffmpeg to cut up video
I am using ffmpeg to cut out a section of a large file like this:
ffmpeg -i input.wmv -ss 60 -t 60 -acodec copy -vcodec copy output.wmv
The -ss part works fine but the -t is ignored. It correctly ...
16
votes
1answer
8k views
FFMPEG Splitting MP4 with Same Quality
I have one large MP4 file. I am attempting to split it into smaller files.
ffmpeg -i largefile.mp4 -sameq -ss 00:00:00 -t 00:50:00 smallfile.mp4
I thought using -sameq would keep the same quality ...
5
votes
3answers
2k views
Speedup a Video on linux
I dont want to use player like vlc to speedup the playback. I want to actually speedup playback in the original file.
Its like I want video to be played 2 times faster.
1
vote
2answers
5k views
HLS video segmenting complications. How to create a transport stream with ffmpeg
I have h264 videos, and currently we're using Apple's HTTP Video Streaming tools and mediafilesegmenter to segment these files.
What I need to do is to switch to alternative segmenter based on this ...
5
votes
2answers
454 views
ffmpeg converts .flv video to .gif with awful 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 ...
5
votes
2answers
6k views
How to merge audio and video file in ffmpeg
I want to merge an audio file (.wav or .au format) with a video file (.mp4 format).
Please suggest me a open-source utility to achieve this. I want to merge these file to new .mp4 video file. An ...
5
votes
5answers
3k 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 ...
3
votes
2answers
3k views
Converting images to video using FFMPEG on Windows
I'm trying to convert a series of JPEG images into a time lapse video. They're in the format IMGP0001.JPG, IMGP0002.JPG, etc. From the looks of things, this should match the pattern IMGP%04.JPG.
I've ...
3
votes
2answers
14k views
FFmpeg command to rotate an MP4 file by 90º
Can I rotate (save, reencode) a .mp4 file with ffmpeg?
The only thing I found was on the mailinglist saying -vfilters "rotate=90" but ffmpeg says that "there are no vfilters". I tried -vf, it says ...
2
votes
1answer
53 views
What lossy audio formats are more (or less) “efficient”? [closed]
This question is related to the answers I got to this question.
The bitrate-efficient format (see the question's most voted answers and their comments thereunder) would be one that assures a good ...
2
votes
2answers
917 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
3answers
515 views
Why is the first image changing so quickly when creating video from images via FFmpeg?
ffmpeg -r 0.15 -qscale 2 -i /var/www/44693/%0d.jpg /var/www/44693/output11.mp4
With this command I am creating video from images, but the first image is changing so quickly. Others are just fine.
...
2
votes
1answer
7k views
Video Thumbnails using ffmpeg
I'm looking for a nice short easy way to create a series of thumbnails for any given video file. I'm almost there using ffmpeg, here's what I have:
ffmpeg -i /tmp/video.avi -r 1 -ss 60 -r 1 ...
1
vote
1answer
93 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
...
1
vote
2answers
6k views
How do I install ffmpeg on Windows 7
I'm using Windows 7 and Zend server for my PHP.I have fed up completely searching and trying every methods of installation found on internet.
Luckily, I installed it well on my Ubuntu machine at my ...
1
vote
2answers
5k views
how to combine or concatenate two video files with ffmpeg?
I have tried to concatenate 2 video files (avi) into one sigle video:
cat input1.avi input2.avi | ffmpeg -f avi -i - -vcodec copy -acodec copy final.avi
.. but this does not concatenate the videos. ...
1
vote
1answer
3k views
convert decrypted .vobs to .avi with ffmpeg on ubuntu
I have a .vob file that has bee ripped from a dvd, when I watch the .vob its very good quality video and 5.1 english audio but when I use ffmpeg it has rubbish video and mono french audio.
That was ...
1
vote
2answers
2k views
Convert mkv/h264 video so it can be played on a “mid-range” Sony Ericsson phone. (using Ubuntu)
As a little experiment I thinking of converting some video/movies/tv-series into a format that could be playable on my K850, but to be a little bit more generic in this question let's say "mid range ...
7
votes
4answers
6k views
How can I pipe output of ffmpeg to ffplay?
How can I pipe the output of ffmpeg to ffplay?
At the moment I use a workaround in bash :
mkfifo spam
(ffplay spam 2> /dev/null &) ; capture /dev/stdout | ffmpeg -i - spam
7
votes
2answers
7k views
FFmpeg extract clip - stream frame rate differs from container frame rate (x264, aac)
Summary
H.264 video seems to have a really high frame rate that requires a scaling factor to the applied to the duration of video that I'm trying to extract (900x lower).
Body
I'm trying to extract a ...
4
votes
3answers
5k views
Synchronizing audio and video using MP4Box / ffmpeg to concatenate files
I have two H.264 encoded MPEG-4 files that I need to concatenate. I have been using MP4Box for this task by first ensuring the files are encoded identically (even went so far as to compare output from ...
3
votes
3answers
210 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 ...
3
votes
1answer
1k views
Extracting and re-combining audio from a video
I'm fed up with Vegas, Premiere, Pinnacle, SoundForge and all of the other editors I've tried.
I'm trying to modify the audio of an AVI file, but all of the editors I've tried insist on re-encoding ...
3
votes
1answer
2k 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 ...
