[FFmpeg-user] Encoding x264 hangs in a high turn over pipeline

Roger Pack rogerdpack2 at gmail.com
Mon Aug 6 21:06:58 CEST 2012

> No - I use almost exactly the same command as before. I also managed to go
> back to using AAC. There are occasional hangs - but much less frequent.
> Say, once or twice per week, however such fallout is not an issue to us.
> Here's the current command:
> ffmpeg.exe -i #in# -f mp4 -vcodec libx264 -pix_fmt yuv420p -s 1024x576 -b:v
> 2000k -g 33 -acodec libvo_aacenc -b:a 128k -ar 44100 -vf "movie=#logo#
> [wm]; [in][wm] overlay=10:main_h-overlay_h-10 [out]" -y -loglevel panic
> #out.mp4#

Yeah for me this command:
-threads 6 -y -i sintel.mpg -pass 1 -t 75 -c:v libx264 -an nul.mp4"

results in these timings:

[6.6186, 6.6536, 6.7067, 6.7275, 6.7331, 6.7605, 6.8356, 6.9484,
7.0748, 7.1302, 12.1823, 13.9774, 16.0897, 17.1871, 18.0254]

so it's failing like 1/3 times, but YMMV.

However, if I specify "-threads 1" it seems to run all right.  I'm
checking into it a bit...

More information about the ffmpeg-user mailing list