[MPlayer-users] .ogm aspect ratio
Miles Nordin
carton at Ivy.NET
Thu Sep 30 01:54:22 CEST 2004
I'm using
MPlayer 1.0pre5-3.3.2 (C) 2000-2004 MPlayer Team
I've made a DVD into an .avi, then used ogmmerge to make it into an
.ogm. I have two problems with the .ogm:
* the .ogm includes an srt subtitle ``text stream'' that mplayer
seems to ignore. I expected I'd be able to control it with j and v
key bindings, but I can't. I have to keep the separate .srt file
around.
Am I missing something?
* the .avi contains aspect ratio information about nonsquare pixels.
When encoding the DVD I have only cropped, not resized. This
information is in the .avi, but doesn't seem to be present or
doesn't seem to be decoded in the .ogm, so the .avi plays with the
same shape as the original DVD, but the .ogm is stretched.
Is there some OGM property I can set, or other procedure I can go
through, to make the .ogm scale during playback to have the correct
aspect ratio?
Here is a script that documents my encoding commands:
-----8<-----
#! /bin/bash
tccat -i /dev/cdrom -T 1,-1 | \
tcextract -x ps1 -t vob -a 0x21 | \
subtitle2pgm -v -P -o korean
rm divx2pass.log
for pass in 1 2; do
mencoder -quiet -aid 129 -vf crop=720:372:0:52,harddup,pullup -ofps 23.976 \
-ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=872:v4mv:vmax_b_frames=2:vb_strategy=1:vstrict=-1:vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01:vpass=$pass \
-oac mp3lame -lameopts abr:br=128:vol=2 \
-o $(if [ $pass = 1 ]; then echo /dev/null; else echo korean.avi; fi) dvd://1
done
rm -f audiodump.pcm ; mkfifo -m 600 audiodump.pcm
mplayer -quiet -vc null -vo null -aid 129 -ao pcm -nowaveheader \
stream.dump dvd://1 &
oggenc --raw --raw-bits=16 --raw-chan=2 --raw-rate=48000 -q 1 \
-o korean-audio.ogg audiodump.pcm &
wait
ogmmerge -o korean.ogm -c TITLE=XXX -A korean.avi -c LANGUAGE=English korean-audio.ogg -c LANGUAGE=English korean.srt
-----8<-----
--
Le fascisme est la dictature ouverte de la bourgeoisie.
-- Georg Dimitrov
More information about the MPlayer-users
mailing list