[Mplayer-dvb] which parameters to use for 640x272

Arpi arpi at thot.banki.hu
Sat Jul 13 01:38:22 CEST 2002


Hi,

> I got an avi movie which is 640x272
> the only way I found out to play it is (from mplayer.sh):
> exec $MPLAYER -quiet -ao mpegpes -vo mpegpes -aop list=volnorm -
> vop lavc,scale=352:288 -lircconf /root/.lircrc "$FILE" >/dev/null 
> 2>/dev/null
> 
> But with this the aspect ratio is weired. 
yep
640:272 = 2.35 while 352:288=1.22

> What would be the best way to view it? I don't care about black stripes 
> and the to and bottom.

so, you should scale it down to 352:150 (352/2.35=150) and add black stripes
by expand:
  -vop lavc,expand=352:288,scale=352:150
or simply crop to 352:288 (pan&scan)
  -vop lavc,crop=352:288
or if your CPU is fast enough for big resolution transcoding (>=1ghz):
  -vop lavc,expand=-1:576:-1:-1:1,scale=-1:0,dvbscale   (from DOCS/DVB)
(dvbscale filter will calculate heigth for correct aspect ratio, in this case
768*272/640=326, so it scales up to 640x326 and then expands to 640x576)

i suggest this last one, 640x326 isn't too much, an average cpu should be
fast enough to transcode it to mpeg1.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dvb mailing list