[MPlayer-users] Sample command line? (iPod/iTunes)

Krzysztof Duchnowski amidk75 at gmail.com
Mon Mar 24 11:29:36 CET 2008


Allen Fowler pisze:

> I've been fussing with MEncoder trying to convert a WMV file to iPod compatible MP4+ACC (mono). 
> 
> So far,  no luck. (Even with -nosound) 
> 
> Using version "MPlayer-mingw32-1.0rc2" as downloaded from:
> http://www3.mplayerhq.hu/MPlayer/releases/win32/MPlayer-mingw32-1.0rc2.zip
> 
> The current file size, pixel dimensions, and frame rate are fine, I just need to get this playable on an iPod.
> 
> Can someone help me figure out the correct method?


So, what was your command again?

For me it should be (I don't have iPod/iTunes but I've done some script 
to convert to GSM MP4 file and I've done manual conversion to PS3 
playable MP4):

mkfifo /tmp/audio.fifo

mplayer "/path/to/file/file.wmv" -really-quiet -a52drc 0 -noskip -vo 
null -ao pcm:waveheader:file=/tmp/audio.fifo &

faac -q 75 -w -o /tmp/audio.m4a /tmp/audio.fifo

rm -f /tmp/audio.fifo

mkfifo /tmp/video.fifo

mencoder -really-quiet "/path/to/file/file.wmv" -o /tmp/video.fifo -of 
rawvideo -demuxer lavf, -nosound -noskip -sws 10 -vf-add 
scale=640:-3,expand=:480,format=i420,harddup -ovc raw &

x264 --keyint 25 --crf 24 --qcomp 0.8 --deblock -1:-1 --trellis 2 
--no-fast-pskip --no-dct-decimate --sar 1:1 --level 31 --progress -o 
/tmp/video.mp4 /tmp/video.fifo

MP4Box -new "/path/to/your/new/file.mp4" -keepsys -mp4 -add 
/tmp/video.mp4 -add /tmp/audio.m4a

rm -f /tmp/video.fifo
rm -f /tmp/audio.m4a
rm -f /tmp/video.m4a


If you can't use MP4Box and named fifo then:

mencoder "/path/to/file/file.wmv" -o /path/to/your/new/file.mp4" -a52drc 
0 -noskip -demuxer lavf, -sws 10 -vf-add 
scale=640:-3,expand=:480,harddup -of lavf -lavfopts format=mp4 -oac lavc 
-ovc lavc -lavcopts 
aglobal=1:vglobal=1:acodec=libfaac:abitrate=112:vcodec=libx264:vqscale=24:keyint=25:mbd=1:vqcomp=0.8:vstrict=1:lumi_mask=0.3:dark_mask=0.3:tcplx_mask=0.3:border_mask=0.3:trell:level=31

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.mozilla.com/firefox/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/




More information about the MPlayer-users mailing list