[MPlayer-dev-eng] Bug with the switch_ratio command

compn tempn at twmi.rr.com
Sun Jul 28 22:11:23 CEST 2013


On Sun, 28 Jul 2013 19:26:53 +0200, Hans-Dieter Kosch wrote:
>Ingo Brückl wrote:
>> When playing an (probably anamorphic widescreen) DVD, the "switch_ratio -1"
>> command doesn't reset to correct movie aspect, but to raw anamorphic aspect
>> ratio.
>> 
>Can you provide an example to reproduce?

heres a mpeg with aspect
http://samples.mplayerhq.hu/MPEG-VOB/mpeg2-ES/detect.m2v
480:480 video with aspect of 4:3 (640:480)

then add
a switch_ratio -1
to input.conf


VO: [directx] 480x480 => 640x480 Planar YV12
V:   1.1  34/ 34 11% 15%  0.0% 0 0 69%

press a 

Movie-Aspect is 1.00:1 - prescaling to correct movie aspect.
VO: [directx] 480x480 => 480x480 Planar YV12

i think ingo might have wanted switch_ratio -1 to go back to the
original aspect ?

was -1 ever supposed to work? -1 is not listed in the docs
from DOCS/tech/slave.txt:

switch_ratio [value]
    Change aspect ratio at runtime. [value] is the new aspect ratio
expressed as a float (e.g. 1.77778 for 16/9).
    There might be problems with some video filters.

switch_ratio might have to go into the properties section at the end of
slave.txt if it supports those get_property things.

-compn


More information about the MPlayer-dev-eng mailing list