Francisco Eduardo Álvarez Solano wrote:
>  
>
>     - My remote has an "Aspect" button. Can i setup local_config.py so
>     that each time
>     I press it, mplayer would switch to another predefined aspect ratio
>     like 2.35, 1.78,
>     1.33 or 0 (video default)? At the moment, I configure it the button
>     "1" for 1.78
>     and "2" for 1.33,... but it's not optimal.
>
>
> I've tried that approach without success. I think mplayer doesn't 
> support a key to cycle between aspect ratios (at least, I haven't 
> found it), so I have a similar configuration as yours:
>
> EVENTS['video']['1'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='switch_ratio 
> -1')      # Original
> EVENTS['video']['3'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='switch_ratio 
> 1.33333') # 4:3
> EVENTS['video']['7'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='switch_ratio 
> 1.77778') # 16:9
> EVENTS['video']['9'] = Event(VIDEO_SEND_MPLAYER_CMD, arg='switch_ratio 
> 2.35')    # Cinemascope
>

Assuming you're using lirc, you could use a lirc feature to obtain what 
you want. Giving the above configuration in local_conf.py , if you want  
your Aspect button to act as aspect toggle, you could add the following 
to your lircrc file:

begin
prog = freevo
button = Aspect
config = 1
config = 3
config = 7
config = 9
end

Each time you press the Aspect button, lirc will send in turn each 
config string to freevo, which are mapped to different events. Refer to 
the lirc documentation for more info on this feature.

Cheers,
izio


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to