[MEncoder-users] Transcoding challenge

Jon Drukman jdrukman at gmail.com
Tue Feb 10 20:53:15 CET 2009


Here is a sample file recorded from the Apple's built in camera using 
the "Photo Booth" application.  It plays fine in mplayer, Quicktime 
Player, VLC, etc.

http://s3.thismoment.com/test.mov

The ultimate goal is to produce a converted video that contains H.264 
video and AAC audio, compatible with the Apple iPhone and a web-based 
flash player.  I have been unable to generate a file that maintains a/v 
sync.

Here is my basic command line:

mencoder test.mov -o test.mp4 -of lavf -oac lavc -ovc lavc -lavcopts 
vcodec=libx264:mbd=1:vbitrate=640:acodec=libfaac

The end output always contains something like:
Video stream:  640.591 kbit/s  (80073 B/s)  size: 1381950 bytes  17.258 
secs  252 frames

Audio stream:  105.388 kbit/s  (13173 B/s)  size: 233392 bytes  17.717 secs

Notice how the video and audio stream lengths differ by almost 1/2 a second.

I've tried various muxers, combinations of harddup, ofps, fps, etc... 
with no luck.  I am using MEncoder SVN-r28446-4.0.1.

-jsd-




More information about the MEncoder-users mailing list