[mythtv-users] Mount samba shares of videos on mythtv box

Xamindar junkxamindar at gmail.com
Fri May 12 03:26:36 EDT 2006


Cole Brodine wrote:
> I use the same method that you do to mount external files with Samba. 
> Daniel is right, you just need to change your mythvideo settings to
> enable "Video List Browses Files".  That's what I did and it works
> great.  If you don't have this enabled then you have to scan for new
> files everytime before you run Mythtvideo.
>
> On 5/11/06, *Chris Henderson* <jchendo at gmail.com
> <mailto:jchendo at gmail.com>> wrote:
>
>
>
>     On 5/11/06, *Xamindar* < junkxamindar at gmail.com
>     <mailto:junkxamindar at gmail.com>> wrote:
>
>         First of all has anyone done this?
>
>         What I am going to try to do is have a cron job that will
>         check to see
>         if my desktop is up and then mount the video directory of my
>         desktop
>         onto my mythtv box. Then hopefully add a menu option to browse
>         that
>         folder and launch a program like xine or mplayer with the
>         files. It will
>         also have to check every minute or so and unmount the share if my
>         desktop goes down.
>
>         I already made the script and it works pretty good:
>
>         #!/bin/bash
>
>         ## Set these variables for your system
>         #STORAGE should be set to where you localy (on mythtv box)
>         mount your
>         samba share
>         STORAGE=/mnt/video/external_videos
>         # set this one to the ip or hostname of the computer with the
>         share to
>         be mounted
>         COMPUTER=192.168.2.22 <http://192.168.2.22>
>         # Your samba share
>         SHARE=//192.168.2.22/storage
>         #########Do not modify the following##########
>
>         # Set variables
>         MOUNTED=`mount | grep -c -m 1 $STORAGE`
>         UP=`ping -c1 $COMPUTER | grep "[0-9] received" | awk '{print $4}'`
>         #Thanks Seth ;)
>
>         # Check if the machine is up AND not mounted, then mount the share
>
>         if [ "$UP" == "1" ] && [ "$MOUNTED" == "0" ]; then
>                 smbmount $SHARE $STORAGE -o guest
>         fi
>
>         # Check if the machine is down AND mounted, then unmount the share
>
>         if [ "$UP" == "0" ] && [ "$MOUNTED" == "1" ]; then
>                 umount -l $STORAGE
>         fi
>
>
>         Now I just need to figure out a way to have mythtv display a
>         list of the
>         folder's contents and allow me to select files to by
>         played.  I tried
>         using myth video but it doesn't show any files to be
>         played.  Also, it
>         would be useful if I could select a bunch of files and have it
>         play them
>         all one after the other for example in a playlist.
>
>         Any ideas of what I can add to my mythtv menus?
>
>         Thanks.
>         _
>
>
>     Hi,
>
>     Sorry i can t help you with this in the slightest, but you might
>     have helped me figure out a wayto copy new recordings to my main
>     machine or my laptop so i can watch thenon the trian into work.
>
>     thanks
>
>     CH
>
>     _______________________________________________
>     mythtv-users mailing list
>     mythtv-users at mythtv.org <mailto:mythtv-users at mythtv.org>
>     http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
>
>
>
> -- 
> 1422 13th Ave
> Kearney NE 68845-6568
> (308) 224-1103 (Cellular)
> -------------------------------------------
> Visit My Website at http://www.brodine.com/ <http://www.brodine.com/>
> Yahoo Messenger: brodinec
> ICQ: 5857320
> Skype: cbrodine
> -------------------------------------------
> ------------------------------------------------------------------------
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>   
I think that worked guys, thanks.  It lists all files, even if they are
not video files.  Is it supposed to do that?


More information about the mythtv-users mailing list