[MEncoder-users] avi to h264 crashing itunes

Philip Brodd pbrodd at gmail.com
Tue Sep 9 03:44:17 CEST 2008


Hi,

I'm exploring the best set of options for converting xvid .avi files
to h.264 .mp4 files for an ipod touch.  Command 1 below produces a
file that I can successfully import into itunes, load onto the ipod,
and play.  The file resulting from command 2 plays successfully in vlc
but crashes itunes immediately when I try to import it.

Is anything obviously wrong with #2?  I looked through the mencoder
man page for info about options in #1 (which I copied from the web),
and many of them seemed unnecessary or "use only if you know you need
it".  Apparently at least one of them was needed, but I don't know
which...

Any advice would be appreciated!  Thanks.

Phil


MEncoder dev-SVN-r27514-4.1.2

$ file input.avi
input.avi: RIFF (little-endian) data, AVI, 560 x 304, 23.98 fps,
video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)

### 1
$ mencoder input.avi -sws 9 \
-of lavf -lavfopts format=mp4 -vf scale=560:304,dsize=560:304,harddup \
-ovc x264 -x264encopts bitrate=800:vbv_maxrate=800:vbv_bufsize=2000: \
nocabac:me=umh:trellis=1:level_idc=30:global_header:threads=2:pass=1:turbo \
-oac faac -faacopts mpeg=4:object=2:br=128:raw -channels 2 -srate 48000 \
-o output1.mp4

### 2
$ mencoder input.avi \
-of lavf -lavfopts format=mp4 -vf dsize=560:-2,harddup \
-ovc x264 -x264encopts bitrate=800:me=hex:pass=2:turbo=1 \
-oac faac -faacopts mpeg=4:object=2:br=96 -channels 2 -srate 48000 \
-o output2.mp4



More information about the MEncoder-users mailing list