[mythtv] [PATCH] (mythvideo) per-directory player command

John Patrick Poet john at BlueSkyTours.com
Sun Oct 17 19:52:04 UTC 2004


I have some videos which are 16:9 and some which are 4:3.  These videos 
may be mpegs or avis.

This patch causes mythvideo to look for a ".mythvideo" file in the 
directory where the video file is located.  If that file exists, the 
content will be used as the player command instead of the default.

For example, in the directory where I keep my 4:3 video files, I have a 
.mythvideo file which contains:

xrandr -s 640x480;mplayer -quiet -monitoraspect 4:3 -framedrop %s;xrandr 
-s 888x500

This changes my output resolution to 640x480, runs mplayer with a 4:3 
aspect, and then switched back to my normal 888x500 (16:9) "menu" 
resolution when mplayer exits.

There may be a better (more efficient) way to achieve this 
functionality, but this was a simple change.

John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MythVideoDir.patch
Type: text/x-patch
Size: 5226 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041017/7e2ae32a/MythVideoDir.bin


More information about the mythtv-dev mailing list