[Mplayer-dvb] Re: [vdr] ANNOUNCE: mplayer.sh version 0.0.6a-jha

André Weidemann Andre.Weidemann at web.de
Tue Jan 28 01:22:02 CET 2003


I have a short command line suggestion for scaling to PAL and NTSC.
Please take a short look at the following lines.
The -vop options allows you to enter a value for dvbscale. This way you 
can easily set the output resolution and maintain the correct aspect ratio.

The command line for PAL would look something like this:

mplayer -framedrop -ao mpegpes -vo mpegpes -vop \ 
expand=-1:-1:-1:-1:0,scale=720:0,dvbscale=$dvbscale_var

$dvbscale_var can now be calculated for half(288) and full(576) 
resolutiona as follows.

$dvbscale_var = y_out_res * movie_x_res / movie_y_res
where y_out_res is whether 288 or 576.

For NTSC the line will look like this:
mplayer -framedrop -ao mpegpes -vo mpegpes -vop \ 
expand=-1:-1:-1:-1:0,scale=640:0,dvbscale=$dvbscale_var

$dvbscale_var = y_out_res * movie_x_res / movie_y_res
where y_out_res is whether 240 or 480.

So if you wanted to convert an NTSC Movie with 640x200 to full PAL 
$dvbscale_var will calculate like this:

$dvbscale_var = 576 * 640 / 200
$dvbscale_var = 1843

mplayer -ao mpegpes -vo mpegpes -vop \ 
lavc=9000,expand=-1:-1:-1:-1:0,scale=640,0,dvbscale=1843

This way you can save lots of calculation in the script and downscaling 
to 288 is no problem too.

I have tested this with Mplayer0.90rc3 and it works prefectly for me.

Just my two cents,
  André.

Javier Lopez wrote:
> I have tested it an it works very well, thanks.
> 
> The only thing is I had to change all "." (decimal dots) by "," because 
> my Suse is configured in Spanish, and here we use "," as decimal 
> separator. MPlayer is telling, for 25.000 fps -> 25,000 fps, then the 
> script doesn't work correctly.
> 
> If it's possible will be great to include something like 
> DECIMAL_SEPARATOR = "." in config file, if not doesn't matter, is not so 
> hard to change it by hand.
> 
> Thanks
> 
> 
> 
> 
> 
>> From: Juri Haberland <juri at koschikode.com>
>> Reply-To: vdr at linuxtv.org
>> To: vdr at linuxtv.org, mplayer-dvb at mplayerhq.hu
>> Subject: [vdr] ANNOUNCE: mplayer.sh version 0.0.6a-jha
>> Date: Tue, 21 Jan 2003 20:37:42 +0100
>>
>> Here we go with a new version of my mplayer.sh that was derived from
>> Martin Hoffmann's work. Kudos.
>>
>> Version 0.0.6a-jha
>>
>> Features:
>> - scales as little as possible
>> - distinguishes between NTSC and PAL files; plays videos with the right
>>   TV norm
>> - added AC3 support (thanks to Christian Jacobsen)
>> - you can now disable either NTSC or PAL support to force all videos to
>>   either PAL or NTSC
>> - added support for mplayer's '-speed' option; disabled by default,
>>   because it didn't work as expected for me (you can enable it in the
>>   config file)
>> - detects the SLAVE mode from the vdr-mplayer plugin
>> - handles all video formats that mplayer can play
>>
>> Important:
>> You need to use the config file that's included in the tarball!
>>
>> Get it from http://batleth.sapienti-sat.org/projects/VDR/
>> (always take the newest verion)
>>
>> Comments are welcome.
>>
>> Have fun,
>> Juri
>>
>>
>>
>> -- 
>> Info:
>> To unsubscribe send a mail to listar at linuxtv.org with "unsubscribe 
>> vdr" as subject.
> 
> 
> 
> _________________________________________________________________
> MSN. Más Útil Cada Día  http://www.msn.es/intmap/
> 
> _______________________________________________
> Mplayer-dvb mailing list
> Mplayer-dvb at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dvb



More information about the MPlayer-dvb mailing list