It is currently May 21st, 2013, 9:09 am Advanced search

SRJG Movie Jukebox for the AIOS

Product usage Guides and Tips.. see what you are missing!

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » July 29th, 2012, 8:10 pm

Tried this tonight. Links the movie list/info to the hard drive.

ln -s /tmp/ramfs/volumes/NAS2 /tmp/usbmounts/sda1/NASMovies

Point SRJG to sda1. Read movies on the hard drive, did not see the movies from the link. Point to the link, NASMovies, SRJG build juke box with full list of NAS movies.
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: SRJG Movie Jukebox for the AIOS

Postby aasoror » July 29th, 2012, 9:42 pm

jsmiddleton4 » July 30th, 2012, 12:10 am wrote:Tried this tonight. Links the movie list/info to the hard drive.

ln -s /tmp/ramfs/volumes/NAS2 /tmp/usbmounts/sda1/NASMovies

Point SRJG to sda1. Read movies on the hard drive, did not see the movies from the link. Point to the link, NASMovies, SRJG build juke box with full list of NAS movies.


Symbolic links isn't supported on non linux drives (so FAT, NTFS would be a no go).
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8437
Joined: September 26th, 2011, 4:18 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » July 30th, 2012, 5:53 am

I converted it to EXT3 as part of the "eliminate variables" process.

The directory is created on the drive. Still doesn't work. If I point to the hdd directory, AIOSHDD, works for movies on the HDD. If I point to the NAS linked directory on the hdd, works for movies in the link. If I point to just the sda1 jukebox only builds video files that are actually on the HDD. Does not include the NAS movies, even though they are listed, in the link and are available to be "seen" by SRJG.

This could be an SRJG thing. Seems to me it is possible that its also an AIOS thing.
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: SRJG Movie Jukebox for the AIOS

Postby aasoror » July 30th, 2012, 11:00 am

Lets try to lay this out ..

+ HDD (/tmp/usbmounts/sda1)
|- sym link to NAS 1 (a folder inside a mounted directory over the network)
|- sym link to NAS 2 (a folder inside a mounted directory over the network)
|- HDD Movies folder

Now what is happening here ?
1. point SRJG to /tmp/usbmount/sda1 and only "local" HDD movie folder gets picked up ..
2. point SRJG to any of the links and movies from the links gets picked up ..

Have you tried creating a folder on the HDD where a local movies folder is a subfolder and the symlinks resides there as well ? so the folder to point SRJG at would be "/tmp/usbmounts/sda1/megaMovies" ?

Also (since you already have the HDD formatted in ext3) might want to try to change the mount location of the network folders so they would mount on the HDD instead of mounting on /tmp/ramfs ...

I can't help but thinking that this is related to symlinking one way or the other.
Did the SRJG worked with the symlinks when you used /tmp/nfs as a location directory vs. using the symlink itself (/tmp/nfs/NAS1) ?
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8437
Joined: September 26th, 2011, 4:18 pm

Re: SRJG Movie Jukebox for the AIOS

Postby rkashyap » July 30th, 2012, 4:27 pm

I had mentioned this exact same problem before also. SRJG does indeed seem to have problems with simlinks.
rkashyap » July 10th, 2012, 4:48 pm wrote:(4) I have symbolic links created on sda1 with structure as All_Drives\NFSDrive1\Movie folders and All_Drives\NFSDrive2\Movie folders. I did not use tmp/nfs for the simlinks as suggested in network shortcuts. I see that when I use the simlinks root folder ALL_Drives as movie path then SRJG does not create any jukebox. If I do individually and specify for example NFSDrive1 then it works. Also, it works with the hard mounted folder /tmp/ramfs. Not sure what is going on. Is there a requirement that simlinks cannot be on sda1? I am going to try to change and put it somewhere in tmp/nfs or use/etc folder to see what happens.
.


I have already tried this and nothing seems to work. My current implementation is to have the mounts on sda1 itself and then everything works. Last time I had tested with a movie folder on sda1 and that along with network mounts was working fine. I did was to create a folder called "All_drives" and then creating the local movie folder inside of that. Then I did a mount of network folder inside this "All_drives" folder and then in SRJG used this same folder as the movie file path. So, for now, that seems to be the only way to do SRJG.

Separately, SRJG has some other issues which is making it unusable for me. It has some memory related problems or something as with my movie collection, pretty much after watching any one single movie AIOS box just freezes and only way out is to do a reboot. I just did not have time to debug this more. Since my other jukebox is working pretty good, I am staying away from this right now. Maybe I will come back to this at some time later.
rkashyap
Curious
 
Posts: 40
Joined: April 2nd, 2012, 5:33 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » July 30th, 2012, 11:00 pm

"My current implementation is to have the mounts on sda1 itself and then everything works."

With SRJG? Can you post details on how you did your link?

" I did was to create a folder called "All_drives" and then creating the local movie folder inside of that."

And your directory structure?

I pointed the link to the hard drive for the NAS drive and it didn't work.

While SRJG reveals the symptom we are dealing with the source might be an AIOS problem. I've emailed Snappy and he is going to look into the symptom. Could be a simple grammar tweak in the linux command line stuff that is in the SRJG.CGI. I'm thinking it just might be an AIOS problem and needs to be addressed quite separately from SRJG.
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » July 30th, 2012, 11:01 pm

aasoror,

Need to help me with specifics just a bit.


Have you tried creating a folder on the HDD where a local movies folder is a subfolder and the symlinks resides there as well ? so the folder to point SRJG at would be "/tmp/usbmounts/sda1/megaMovies" ?

Here is my directory structure. The links make each properly. For SRJG I don't have a link for the int hdd files. I have a link for the int hdd to be seen in nfs shares.

You are saying have the NAS drive linked as a subdirectory?
Attachments
Capture.JPG
Capture.JPG (16.71 KiB) Viewed 217 times
Last edited by jsmiddleton4 on July 30th, 2012, 11:53 pm, edited 1 time in total.
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: SRJG Movie Jukebox for the AIOS

Postby aasoror » July 30th, 2012, 11:51 pm

jsmiddleton4 » July 31st, 2012, 3:01 am wrote:aasoror,

Need to help me with specifics just a bit.


What he meant is he is doing the mounts directly on the HDD vs. /tmp/ramfs/NAS1 (as I suggested earlier when you mentioned you have an ext3 HDD).
So if you revise your network shortcuts script you would find a mount command like this one ..

Code: Select all
mkdir -p /tmp/ramfs/volumes/NAS1
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.21; then
mount -t cifs //192.168.2.21/Television_Shows -o ro,username= /tmp/ramfs/volumes/NAS1
ln -s /tmp/ramfs/volumes/NAS1 /tmp/nfs/Television_Shows


instead it would be something like that
Code: Select all
mkdir -p /tmp/usbmounts/sda1/Television_Shows
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.21; then
mount -t cifs //192.168.2.21/Television_Shows -o ro,username= /tmp/usbmounts/sda1/Television_Shows

Same for NAS2 (movies), and then point SRJG to /tmp/usbmounts/sda1
This would work nicely for you because your exposed shares points directly to your movie/shows folders.
The AIOS wiki - The AIOS Semiofficial firmwares
Calling upon ALL AIOSers, your feedback is needed -- Calling upon ALL XIOSers, your feedback is needed
XIOS XBMC: Setup, Nightlies: M1 - M3 - Android - Keep the annoying XIOS developers happy, always attach a log with your bug report, here is how.
User avatar
aasoror
Pivos Employee
 
Posts: 8437
Joined: September 26th, 2011, 4:18 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » July 30th, 2012, 11:55 pm

"then point SRJG to /tmp/usbmounts/sda1"

Except I don't want the Television Shows being seen by SRJG.

Need TV shows in NFS shares only. And still need Movies to show in NFS shares.

It is late and have to work tomorrow. Tough day today. Probably not thinking Linux commands at the moment. I very much appreciate your help and will scour your suggestions, as I've demonstrated already, tomorrow.
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

Re: SRJG Movie Jukebox for the AIOS

Postby jsmiddleton4 » July 31st, 2012, 12:00 am

So this:

##########################################################
TIMEOUT=20
mkdir -p /tmp/ramfs/volumes/NAS2
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.20; then
mount -t cifs //192.168.2.20/Movies -o ro,username= /tmp/ramfs/volumes/NAS2
ln -s /tmp/ramfs/volumes/NAS2 /tmp/nfs/NASMovies
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done
##########################################################


becomes that:

##########################################################
TIMEOUT=20
mkdir -p /tmp/usbmounts/sda1/NASMovies
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.20; then
mount -t cifs //192.168.2.20/Movies -o ro,username= /tmp/usbmounts/sda1/NASMovies
ln -s /tmp/usbmounts/sda1/NASMovies /tmp/nfs/NASMovies
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done
##########################################################

I point SRJG to sda1.......

It should read sda1/AIOSMovies and sda1/NASMovies and build the jukebox.

===========
The above creates the attached capture. I get the directories, links, etc. listed correctly on the hard drive. I don't need to do anything with the movies that are actually on the hard drive.

Point SRJG to sda1, hit play.

Go back and do full rebuild of Jukebox.

And it WORKS!

Now I have to add linking the movies on the hdd to my NFS shares and check it.

Should be just this and can be put at bottom of the *.sh file?

Code: Select all
#!/bin/sh
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")

# Create nfs mount folder if not present
mkdir -p /tmp/nfs

######################################################
TIMEOUT=20
mkdir -p /tmp/ramfs/volumes/NAS1
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.21; then
mount -t cifs //192.168.2.21/Television_Shows -o ro,username= /tmp/ramfs/volumes/NAS1
ln -s /tmp/ramfs/volumes/NAS1 /tmp/nfs/Television_Shows
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done

##########################################################

##########################################################
TIMEOUT=20
mkdir -p /tmp/usbmounts/sda1/NASMovies
while [ $TIMEOUT -gt 0 ]; do
if ping 192.168.2.20; then
mount -t cifs //192.168.2.20/Movies -o ro,username= /tmp/usbmounts/sda1/NASMovies
ln -s /tmp/usbmounts/sda1/NASMovies /tmp/nfs/NASMovies
TIMEOUT=0
else
TIMEOUT=$((TIMEOUT - 1))
fi
done
##########################################################

ln -s /tmp/usbmounts/sda1/AIOSMovies /tmp/nfs/AIOSMovies

IFS=$SAVEIFS
Attachments
Capture.JPG
Capture.JPG (29.9 KiB) Viewed 215 times
Last edited by jsmiddleton4 on July 31st, 2012, 12:18 am, edited 2 times in total.
jsmiddleton4
Hardcore
 
Posts: 720
Joined: May 21st, 2012, 7:25 pm

PreviousNext

Return to AIOS Guides & Tips

Who is online

Users browsing this forum: No registered users and 1 guest