[mythtv-users] myth video settings
Yan-Fa Li
yanfali at best.com
Mon Nov 1 21:42:49 UTC 2004
Neato!
John, I really like that solution because it scales so much better.
However my security paranoia tells me that's a potentially huge gaping
security hole since you just take and execute an arbitrary string.
So I take it you put each of the video files in it's own sub directory
on your server or do you sort everything by aspect ratio ?
Many Thanks
Yan
John Patrick Poet wrote:
> I got arround this problem by making a minor patch to the mythvideo system.
> I don't think this patch has been applied to the CVS tree, however.
>
> I have attached my patch, if you want to try it.
>
> My original message said:
>
> 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
>
More information about the mythtv-users
mailing list