#160 Piping from mencoder to x264 -> losing frames

closed-out-of-date
MEncoder (43)
5
2013-02-20
2012-04-12
Selur
No

I ran into a problem when piping from mencoder to x264:

when calling:
mencoder -lavdopts threads=8 -really-quiet -of rawvideo -o - -ovc raw -noskip -vf scale,format=i420 -forcedsubsonly -nosub -nosound -mc 0 "D:\comparison\totalrecall_trlr_01_1080p_dl.mov" | x264 --preset ultrafast --crf 18 --fps 24000/1001 --input-res 1920x1080 --output "D:\Encoding Output\test.mkv" -

I end up with 3377 frames instead of 3385.

by changing the value for X in "-lavdopts threads=X" I end up with:
-lavdopts threads=8 -> 3377 frames
-lavdopts threads=7 -> 3378 frames
-lavdopts threads=6 -> 3379 frames
-lavdopts threads=5 -> 3380 frames
-lavdopts threads=4 -> 3381 frames
-lavdopts threads=3 -> 3382 frames
-lavdopts threads=2 -> 3383 frames
-lavdopts threads=1 -> 3383 frames
without -lavdopts threads=X -> 3383 frames

when I use ffmpeg or x264 directly I end up with 3385 frames (like the input).

Since lowering the threads count really hurts the encoding speed and it still leaves me with 2 missing frames, is there a fix to this problem?

source: http://pdl.stream.aol.com/pdlext/aol/brightcove/ame/201204/04/42907/totalrecall_trlr_01_1080p_dl.mov

Discussion

    • Status: open --> closed-out-of-date