[mythtv-users] myth video settings

John Patrick Poet john at BlueSkyTours.com
Mon Nov 1 22:18:36 UTC 2004


On Mon, 1 Nov 2004, Yan-Fa Li wrote:

> 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.


True, this does have a security hole.  My "frontend" is behind a firewall,
so I am not terribly concerned.  If you have a suggestion on how to plug
that hole, I am willing to look into it.


> 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 ?


It is really up to you.  With this patch, it just looks in the same
directory where the video file is found for a ".mythvideo" file.  It does
not care how many videos are in that directory.

I create directories to group my videos my subject/type.  I typically have
several video files in a single directory -- but all those video files will
have the same aspect ratio.


>
> Many Thanks
>
> Yan


Your welcome :-)

John


> 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
> >
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


More information about the mythtv-users mailing list