Hi, I managed to fix the use of an external player when using Storage Groups.
The problem is that when I play a movie, what is passed to the player is something like this: myth://[email protected]:6543/videos3/Australia/Australia.avi This mean that Storage Groups create a relative address, while the old method just used the full address. Well, all my movies are in /home/videos: ------------------------------------------------------------------------- [cascavel:/home/videos] dir total 64 drwxr-xr-x. 4 roma 12288 2010-05-02 04:26 . drwxr-xr-x. 22 root 4096 2010-04-29 05:42 .. -r--r--r--. 1 roma 133 2006-05-02 08:56 .htaccess drwxrwxr-x. 8 roma 4096 2010-04-29 23:45 MythVideo lrwxrwxrwx. 1 roma 22 2010-05-01 10:12 series -> ../../mnt/dados/series lrwxrwxrwx. 1 roma 22 2010-05-01 10:13 videos -> ../../mnt/dados/videos lrwxrwxrwx. 1 roma 23 2010-05-01 10:12 videos2 -> ../../mnt/dados/videos2 lrwxrwxrwx. 1 roma 23 2010-05-01 10:12 videos3 -> ../../mnt/dados2/videos drwxr-xr-x. 9 roma 4096 2010-04-29 05:48 videosCG Therefore, I just wrote an script (mythplayer) to parse and fix the movie name: -------------------------------------------------------------- #!/bin/sh # -zoom goes to the TV, -fs to the screen foo="$1" file=${foo##"myth://[email protected]:6543"} /home/roma/bin/mplayertv /home/videos/"$file" -fs -ontop -quiet -vo xv -ao alsa:device=hw=0.0 ------------------------------------------------------------- I used another script (mplayertv), which calls mplayer, but one can use /usr/bin/mplayer directly just fine. To know what is passed in someone else's case, just call mythfrontend form a terminal and echo the first parameter in the script above, and make the appropriate changes: echo "$foo" Of course myth has to be set to call the script and not the Internal player. I do that by changing the File Type for avi in the Video Settings Setup. On a frontend running on another computer, I just have in /home/videos the following: ------------------------------------------------------------------------------- [naja:/home/videos] dir total 64 drwxr-xr-x 6 roma 4096 2010-05-02 09:33 . drwxr-xr-x 21 root 4096 2010-04-30 11:56 .. -r--r--r-- 1 roma 133 2006-05-02 08:56 .htaccess drwxrwxr-x 8 roma 4096 2010-04-30 20:04 MythVideo lrwxrwxrwx 1 roma 36 2010-05-02 09:24 series -> /net/cascavel.local/mnt/dados/series lrwxrwxrwx 1 roma 36 2010-05-02 09:20 videos -> /net/cascavel.local/mnt/dados/videos drwxr-xr-x 546 roma 20480 2010-05-01 09:47 videos1 lrwxrwxrwx 1 roma 37 2010-05-02 09:33 videos2 -> /net/cascavel.local/mnt/dados/videos2 lrwxrwxrwx 1 roma 37 2010-05-01 11:12 videos3 -> /net/cascavel.local/mnt/dados2/videos lrwxrwxrwx 1 roma 22 2010-05-01 10:15 videos4 -> ../../mnt/dados/videos drwxr-xr-x 7 roma 4096 2007-04-27 19:26 videos5 drwxr-xr-x 8 roma 4096 2007-09-11 07:56 videosCG ------------------------------------------------------------------------------------------------------------- Why developers didn't do that directly in mythtv is a mystery to me. Maybe myth developers are trying to make people switch to the Internal player, I guess ... This is why a love open software. There is always a way out. -- Paulo Roma Cavalcanti LCG - UFRJ
_______________________________________________ atrpms-users mailing list [email protected] http://lists.atrpms.net/mailman/listinfo/atrpms-users
