Hello everybody. Yesterday I did some tests converting an MPEG-2 movie to MP4/x.264, several times using Handbrakes and several times using FFmpeg command line.
Well, although the format settings (bitrate, for example) were equal or similar (for the audio stream too):
- Handbrake converted the movie very fastly (an average of 200 frames elaborated per second)
- FFmpeg converted the same movie veeeery slowly (values from 3 to 20 frames elaborated per second)
I used simple settings, nothing in particular, maybe just a conversion of the video&audio bitrates. For example, one of the test with FFmpeg was:
ffmpeg -i xyz.mpg" -c:v libx264 -b:v 400k -c:a libmp3lame -b:a 128k test.mp4
Why FFmpeg has been so much slow?
Any help will be greatly appreciated!![]()
+ Reply to Thread
Results 1 to 5 of 5
-
Falco2000, video newbie.
Let's everyone help each other. -
All I can suggest is that there is a lot more to settings than bit rate. Are you really sure one wasn't set to one pass and the other 2 pass?
Program defaults vary ... actually handbrake's defaults tend to lower quality than I want to use, they're meant more for mobiles ... but not that much. -
I'm sure, but you saw the FFmpeg string (no 2-pass, I've seen it during the encoding too) and if was Handbrake the one that had 2-pass, FFmpeg shouldn't be so much slow; on the contrary, Handbrake should have been...
Any way, setting FFmpeg with no audio o audio copy (see below), the frames elaboration rate is always slow (about 15 fps average):
ffmpeg -i xyz.mpg" -c:v libx264 -b:v 400k -map 0:v test.mp4
ffmpeg -i xyz.mpg" -c:v libx264 -b:v 400k -c:a copy test.mp4Falco2000, video newbie.
Let's everyone help each other. -
Because you might be using different settings it can be 10x faster or 20x slower depending on the settings used
Use mediainfo view=>text on the encoded file and there will be metadata as to what settings were actually used
I think ffmpeg might be using the normal preset, handbrake a faster preset
You can read about the basic settings here, although the switches are slightly different for ffmpeg than x264
http://mewiki.project357.com/wiki/X264_Settings
ffmpeg libx264
https://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping
Similar Threads
-
How to mux .264 and .wav files to .m2ts or .mp4 using FFmpeg????
By rallymax in forum EditingReplies: 1Last Post: 31st Oct 2011, 17:04 -
Lossless Conversion from AVI H.264 to MP4 H.264
By kenchen in forum Video ConversionReplies: 3Last Post: 22nd Oct 2010, 14:04 -
Audio out of sync problem with FFMPEG encoding MP4 (h.264,AAC)
By jenak1980 in forum Video ConversionReplies: 7Last Post: 5th May 2010, 01:03 -
FFMpeg - Mpeg2 to MP4 conversion
By gomer_3333 in forum Video ConversionReplies: 2Last Post: 1st Mar 2010, 13:10 -
MKV (h.264 file) conversion to AVI or MP4
By killwill169 in forum MacReplies: 43Last Post: 12th Aug 2009, 18:35