Log in

View Full Version : Mencoder b-frame question


dcrht
12th January 2009, 19:06
Hi, I am a newbie who just started to learn how to encode about 2 weeks ago. Everything seems OK but when I try to use B-frame, there is stuttering produced (but nothing wrong in mplayer).

I cancel all options except b-frame in this (http://www.mediafire.com/?wmojoyjldei) video.

mencoder Robotica_1080.wmv -o test.mp4 -nosound -ovc x264 -x264encopts bitrate=1350:bframes=1:level=41:global_header:keyint=150 -vf scale=640:-2,expand=aspect=16/9 -fps 24000/1001 -of lavf

Please help me :(

--
Video source: http://download.microsoft.com/download/4/1/b/41b10a4f-f4f4-4692-aa44-a458d0047e91/Robotica_1080.exe

nm
12th January 2009, 19:17
MEncoder does not support MP4 output with libavformat perfectly. Just output the video as an H.264 elementary stream (-of rawvideo -o video.264) and mux it later with MP4Box.

LoRd_MuldeR
12th January 2009, 19:20
MEncoder displays this warning for a reason, I think :p

** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************

Solution: Use the "standalone" x264 CLI encoder. MEncoder can write "raw" output to STDOUT and x264.exe can grab the frames from STDIN.

x264 does write proper MP4 and MKV files.

recover
14th January 2009, 01:38
It's pretty funny that both libavformat and MPlayer are broken and in effect they work together :P

Dark Shikari
14th January 2009, 01:57
It's pretty funny that both libavformat and MPlayer are broken and in effect they work together :PLibavformat isn't broken--the way mencoder interfaces with it is.