Page 13 of 31 FirstFirst ... 3111213141523 ... LastLast
Results 121 to 130 of 301

Thread: Simple RSS Jukebox

  1. #121
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,040

    Default

    Quote Originally Posted by ckalem View Post
    In one of my genre folders I have 189 movies, each within a folder with the same name as the movie title. Within each of these folders is a poster jpg and a moviesheet jpg, both generated by thumbgen. Some of these folders have mkv files and are properly displayed and played by the jukebox. Others movie folders contain a video_ts folder. The jukebox shows over 1000 movies existing in the genre folder and lists all non-mkv folders as "VIDEO_TS" and displays a generic poster.

    I did try rerunning jukebox_update using the command below, but it did not seem to have any effect.

    "/usr/local/etc/srjg/jukebox_update.sh -p "/tmp/ramfs/volumes/Movies/01_Kids Movies" -f "VIDEO_TS" -f "AUDIO_TS"

    and "/usr/local/etc/srjg/jukebox_update.sh -p "/tmp/ramfs/volumes/Movies/01_Kids Movies" -f "VIDEO_TS,AUDIO_TS" "

    but the first case had no effect and the second case eliminated all of the movies with a video_ts folder.

    I hope this is a sufficient explanation. Please let me know if you need any additional information. Thanks,

    ckalem
    I am not sure that there is anything much you can do about that other than moving the .vob files actually containing the movies in the movie folder or put your thumbnail/moviesheets in the VIDEO_TS directory. That being said it would still be an annoyance since you will have to select the vob files one at a time when playing the movie since most DVD's movie files are contained within 3 to 4 vob files. Of course the other option is to do what I prefer to do and rip your dvd's into a file but it can be time consuming but has the benefit of being small in size than the full dvd.

    Cheers !!!

  2. #122
    Join Date
    Jun 2011
    Location
    Southern California
    Posts
    8

    Default

    Quote Originally Posted by snappy46 View Post
    I am not sure that there is anything much you can do about that other than moving the .vob files actually containing the movies in the movie folder or put your thumbnail/moviesheets in the VIDEO_TS directory. That being said it would still be an annoyance since you will have to select the vob files one at a time when playing the movie since most DVD's movie files are contained within 3 to 4 vob files. Of course the other option is to do what I prefer to do and rip your dvd's into a file but it can be time consuming but has the benefit of being small in size than the full dvd.

    Cheers !!!
    Thanks for your assistance. I had hoped to not need to convert everything to mkv files, but it looks like I will end up doing so anyway. I have small kids with a portable dvd player and maintaining the files in video_ts format allows me to easily burn new copies when they destroy a dvd. I have tried burning a dvd from an mkv file and it was a rather slow process.

    Thanks again,

    ckalem

  3. #123
    Join Date
    Oct 2010
    Posts
    116

    Default

    Not sure if this will be usefull to anyone, but i created a simple dos batch script to create folder for my movies based on the movie file name, then it moves the movie into the folder. just one less step to do after ripping the video with handbrake. I know that this isn't exactly linked to the simple rss jukebox, but since the movies need to be in folders with the movie name, i thought it might be helpful in this thread


    ::This script looks for files with mkv extention in my movie folder
    ::Then it create a folder with the same name as the movie and copies
    ::the movie to this new folder.

    FOR /F "tokens=1-2 delims=." %%i IN ('DIR /A:-D /B /O:N "z:\My Media\Movies\*.mkv"') DO (
    MD "z:\My Media\Movies\%%i"
    MOVE /Y "z:\My Media\Movies\%%i.%%j" "z:\My Media\Movies\%%i\%%i.%%j"
    )

    Pause


    This will need to be copied into a text file and the extention will have to be named to .bat
    also i'm only searching for mkv files since thats what I use, but you can just change the extention to search for, or the path.

  4. #124
    Join Date
    Mar 2011
    Location
    Riga, Latvia
    Posts
    122

    Default

    I have mini NAS (Gearbox) with attached HDD(there is the part of my movies located under folder PUBLIC ).
    Folder's user ID is Guest, no password.
    How should look the actual path for Simple RSS jukebox ?
    /tmp/ramfs/volumes/PUBLIC/Movies/jukebox.rss ?
    Should I mention somewhere NAS IP address and user ID with no password ?
    then /tmp/ramfs/volumes/NAS_IP_address/PUBLIC -o user=Guest,password=0/Movies/jukebox.rss ???
    something wrong in my path because it doesn't work for me

    thanks in advance for your help
    Last edited by jurijz; 06-16-2011 at 12:29 PM.

  5. #125
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,040

    Default

    Quote Originally Posted by jurijz View Post
    I have mini NAS (Gearbox) with attached HDD(there is the part of my movies located under folder PUBLIC ).
    Folder's user ID is Guest, no password.
    How should look the actual path for Simple RSS jukebox ?
    /tmp/ramfs/volumes/PUBLIC/Movies/jukebox.rss ?
    Should I mention somewhere NAS IP address and user ID with no password ?
    then /tmp/ramfs/volumes/NAS_IP_address/PUBLIC -o user=Guest,password=0/Movies/jukebox.rss ???
    something wrong in my path because it doesn't work for me

    thanks in advance for your help
    Network shares are not mounted on the PBO until they are required so this poses a problem sometimes if you try to access them via an rss feed. The best thing to do is to mount your shares on start up as indicated here: http://tinyurl.com/3ox4q6j and then to use that mount point in the movie jukebox. Note that if you mount it at the same place as where your other movies currently resides then you will be able to use the same jukebox as your main one. For example assuming that your movies reside on an external USB on the directory

    /tmp/usbmounts/sdb1/Movies/

    You could create a directory /tmp/usbmounts/sdb1/Movies/network/

    Now you could mount your network public directory onto that directory "/tmp/usbmounts/sdb1/Movies/network/" using the procedure explained at the link.

    Note that you should make sure that the USB Drive itself is mounted before you attempt to mount you network public directory. This can be accomplish using a small script or just adding a "sleep 60" command in the /usr/local/etc/rcS before issuing the mount command for the network. That would gave you 1 minute for everything to settle before you mount the public directory. A script is more efficient and I can help with that once you decide exactly what you want to do.

    The beauty of all this is that when you issue the command: "./jukebox_update.sh -p /tmp/usbmounts/sdb1/Movies" all the movies/videos on your NAS will get included all in the same jukebox.

    Anyhow let me know how far you can go with that by yourself and ask for help when needed. Note that the example given in the link uses a different mount point than what I am suggesting so you will have to adapt the mount command accordingly.

    Cheers !!!

  6. #126
    Join Date
    Mar 2011
    Location
    Riga, Latvia
    Posts
    122

    Default

    Quote Originally Posted by snappy46 View Post
    Network shares are not mounted on the PBO until they are required so this poses a problem sometimes if you try to access them via an rss feed. The best thing to do is to mount your shares on start up as indicated here: http://tinyurl.com/3ox4q6j and then to use that mount point in the movie jukebox. Note that if you mount it at the same place as where your other movies currently resides then you will be able to use the same jukebox as your main one. For example assuming that your movies reside on an external USB on the directory

    /tmp/usbmounts/sdb1/Movies/

    You could create a directory /tmp/usbmounts/sdb1/Movies/network/

    Now you could mount your network public directory onto that directory "/tmp/usbmounts/sdb1/Movies/network/" using the procedure explained at the link.

    Note that you should make sure that the USB Drive itself is mounted before you attempt to mount you network public directory. This can be accomplish using a small script or just adding a "sleep 60" command in the /usr/local/etc/rcS before issuing the mount command for the network. That would gave you 1 minute for everything to settle before you mount the public directory. A script is more efficient and I can help with that once you decide exactly what you want to do.

    The beauty of all this is that when you issue the command: "./jukebox_update.sh -p /tmp/usbmounts/sdb1/Movies" all the movies/videos on your NAS will get included all in the same jukebox.

    Anyhow let me know how far you can go with that by yourself and ask for help when needed. Note that the example given in the link uses a different mount point than what I am suggesting so you will have to adapt the mount command accordingly.

    Cheers !!!
    Thanks, Snappy
    I'm not Linux guru but after your detailed explaination it doesn't look too complicated anymore
    I should think a little bit what I really want to do and will try it definetelly.
    Your help will be needed for sure, no doubt

    Cheers !

  7. #127
    Join Date
    Mar 2011
    Location
    Riga, Latvia
    Posts
    122

    Default

    I had decided for the first to make Simple Jukebox on my second PBO work with mini NAS.
    I'd like to remind that I have PUBLIC folder on my mini NAS (Gearbox) with subdirectory Movies inside.
    PBO connected to the router through Patriot Wi-Fi N adapter
    If I've got it right, I have to do the following steps :

    # vi /usr/local/etc/rcS, and create new directory

    # mkdir -p /tmp/ramfs/volumes/PUBLIC/Movies
    sleep 60
    # mount -t cifs //192.168.0.136/PUBLIC/Movies -o username=Guest /tmp/ramfs/volumes/PUBLIC/Movies

    Then I use actual path to update new directory by Simple Jukebox :
    /usr/local/etc/srjg/jukebox_update.sh -i -p /tmp/ramfs/volumes/PUBLIC/Movies

    if subdirectory Movies under PUBLIC directory on NAS looks doubtfully then I could move all my movies just to PUBLIC and remove subdirectory Movies
    Please let me know if something wrong

    thanks in advance
    Last edited by jurijz; 06-17-2011 at 11:35 AM.

  8. #128
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,040

    Default

    Quote Originally Posted by jurijz View Post
    I had decided for the first to make Simple Jukebox on my second PBO work with mini NAS.
    I'd like to remind that I have PUBLIC folder on my mini NAS (Gearbox) with subdirectory Movies inside.
    If I've got it right, I have to do the following steps :

    # vi /usr/local/etc/rcS, and create new directory

    # mkdir -p /tmp/ramfs/volumes/PUBLIC/Movies
    sleep 60
    # mount -t cifs //192.168.0.136/PUBLIC/Movies -o username=Guest /tmp/ramfs/volumes/PUBLIC/Movies

    Then I use actual path to update new directory by Simple Jukebox :
    /usr/local/etc/srjg/jukebox_update.sh -i -p /tmp/ramfs/volumes/PUBLIC/Movies

    if subdirectory Movies under PUBLIC directory on NAS looks doubtfully then I could move all my movies just to PUBLIC and remove subdirectory Movies
    Please let me know if something wrong

    thanks in advance
    Here's a few recommendation:

    Since you are mounting it on ramfs the sleep 60 is not required. If you have issues with the mount then you can try sleep 5 but I think you will be ok without any but it all depends how your NAS is access wireless/Ethernet. I have a little script that I use to use to make sure that the IP address is available before the mount is executed. It basically just ping the NAS IP address until it is successful then mount the NAS share. I'll look for it and post it here .... don't feel like reinventing the well right now.

    Cheers !!!

  9. #129
    Join Date
    Mar 2011
    Location
    Riga, Latvia
    Posts
    122

    Default

    Quote Originally Posted by snappy46 View Post
    Here's a few recommendation:

    Since you are mounting it on ramfs the sleep 60 is not required. If you have issues with the mount then you can try sleep 5 but I think you will be ok without any but it all depends how your NAS is access wireless/Ethernet. I have a little script that I use to use to make sure that the IP address is available before the mount is executed. It basically just ping the NAS IP address until it is successful then mount the NAS share. I'll look for it and post it here .... don't feel like reinventing the well right now.

    Cheers !!!
    Great! Thanks a lot
    I like this small black box(PBO) more and more (now I have two at my home), gives a lot of opportunities "do-it-yourself", even for non-Linux guru.
    Many thanks to volunteers of this forum

  10. #130
    Join Date
    Dec 2009
    Location
    Canada (ON)
    Posts
    2,040

    Default

    @jurijz:

    Here the script to make sure that your NAS and PBO are ready to be mounted.

    Code:
    #!/bin/sh
    
    # Set timeout to the number of times you want the loop to repeat
    TIMEOUT=20
    
    # Create the mount point directory
    mkdir -p /tmp/ramfs/volumes/public    # Change this to your PBO mount point
    
    # While we haven't used up all the attempts
    while [ $TIMEOUT -gt 0 ]; do
        # this will be true if 'ping' gets a response
        if ping 192.168.2.2; then    # Change this to your NAS IP address
            mount -t cifs //192.168.2.2/public -o username=Guest /tmp/ramfs/volumes/public
            echo "NFS mounted"
            TIMEOUT=0
        # and if there's no response...
        else
            TIMEOUT=$((TIMEOUT - 1))
            if [ $TIMEOUT -eq 0 ]; then
                echo "NFS Failed to mount - no response to server pings"
            fi
        fi
    done
    Just copy and paste and rename something like nasmount.sh and copy to your /usr/local/etc/ directory. Also make sure that the file is executable by issuing the following command:

    Code:
    chmod +x nasmount.sh
    Now you can just call this script from your rcS file by adding at the end of the rcS file the following.

    Code:
    /usr/local/etc/nasmount.sh &
    The script uses a TIMEOUT value of 20. This gives it about 40 to 60 seconds to make the mount before it give up and exit because the PBO wireless/network is not ready or your NAS is not ready. If it quits before it is ready and need more time just increase the value of TIMEOUT. Also change the IP being ping to your NAS IP and of course you will need to change the mount and mkdir commands to match your specific paths.

    Hope this is helpful to you and others.

    Cheers !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •