PDA

View Full Version : Open Random MythVideo file in directory (and subdirectories)


xioustic
June 3rd, 2009, 10:53 PM
Hey guys,

I realize this feature has been requested before but I'm sure there's some temporary solution I just can't find.

Preface: I have 700+ full movies in my movie directory, and around 2000+ video files of TV Show episodes.

The directory structure is such:
/media/MythMedia (all media)
/media/MythMedia/Movies (all movies)
/media/MythMedia/TV Shows[/Show name[/ Season #]]
/media/MythMedia/Anime[/Anime Series[/ Season #]

So I have a relatively large household that wants to watch these. But the hardest part they have (now that our collection is so massive now) is deciding what to watch. On GBPVR, we had the ability to shuffle and then pick from the shuffled results.

There's no way I'm going back to Windows. I love MythTV/MythBuntu, and I've worked way too hard to go back. But I need some sort of way to play a random media file (either through a shell script or some such thing).

Ideally, I would want a file in the root MythMedia, Movies, TV Shows, Anime, each Show/Series and each Season directories that would launch a random media file in that directory. This would allow my household to play a random video from a show that they wanted to watch, or all the TV Shows, or all the Movies, or just a random video from a show from a particular season.

I use VLC for just about all my playback. I would like to discover a solution that takes care of mplayer, VLC, and xine users in one fell swoop but that doesn't seem all that likely.

So, any ideas?

A couple leads:
MythTV Wiki playRandom.sh (http://www.mythtv.org/wiki/MythVideo:playRandom.sh)
Setting Up MythVideo For Playlists (http://blog.codedread.com/archives/2006/12/17/setting-up-mythvideo-for-playlists/)

I'm sure this isn't too uncommon of a request, so maybe we can get a HOWTO going or some such thing (if there isn't one already).

Related: What does the %s return in the MythVideo external player configuration? Is it just the filename or is it the full path?

xioustic
June 7th, 2009, 05:54 PM
Bump. ):P

xioustic
June 22nd, 2009, 04:36 PM
Still no ideas?
:popcorn: