MEncoder

„MEncoder is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs.“

MEncoder. (2008, February 23). In Wikipedia, The Free Encyclopedia. Retrieved 18:57, April 5, 2008, from
http://en.wikipedia.org/w/index.php?title=MEncoder&oldid=193447614


My Blog List

Wednesday, May 21, 2008

[MEncoder-users] number of yuv4mpeg frames does not match audio length.

Hello,

Sorry for crossposting, but the problem I describe occurs with all three
applications, mplayer, mencoder and ffmpeg. I you respond for a specific
application, please use the respective mailinglist only.

I am trying to convert a VOB file to h264+aac in an mp4 container (using
x264, faac and MP4Box). I don't get the mp4 to be A/V sync (the
material has some very obvious points). Investigating this problem, I
found that the yuv4mpeg stream that I am using as input for x264 does
not have the expected number of frames. As a reference, I look at the
duration of the extracted audio:

mplayer -vo null -ao pcm test.vob

Duration : 00:00:11.168

At my framerate of 29.97, this corresponds with 334.7 frames (not sure
whether to round this up or truncate it)

However this is what I get with:

mplayer -harddup -noframedrop -vo yuv4mpeg -ao null test.vob

333 frames

mencoder test.vob -vf-add harddup -vf-add =i420 -ovc raw -of rawvideo -nosound -o mencoder.420

333 frames

ffmpeg -i test.vob -f yuv4mpegpipe ffmpeg.yuv

342 frames (starting with 1 totally green frame)

Especially the ffmpeg output is quite surprising. I guess the mplayer/mencoder
output could be correct, and the sync problem is elsewhere, though this still
doesn't account for the missing frame...

Any advice would be greatly appreciated!

Maarten
_______________________________________________
MEncoder-users mailing list
MEncoder-users@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users

No comments:

PCBs

Links

Forex brokers, Forex online


Privacy Policy