| Author |
Message |
|
snappy46
Joined: Sat May 08, 2010 5:07 am Posts: 335
|
 Re: Simple RSS Jukebox
Here's what I came up with by incorporating and modifying a bunch of graphics from the internet for a SRJG Jukebox logo: http://dl.dropbox.com/u/15169815/pictures/srjg.jpgSince I have no artistic talent whatsoever if anyone wishes to improve on that please be my guess. Of course image will have to be resize before it can be use as a menu.rss thumbnail. I might also add a border around it to better define the image boundary. Cheers !!!
|
| Sat May 07, 2011 7:02 am |
|
 |
|
snappy46
Joined: Sat May 08, 2010 5:07 am Posts: 335
|
 Re: Simple RSS Jukebox
Update: I am pretty much done with changes to the script that will make it possible to create this jukebox using movie genres however a strict directory structure will be impose to make this possible. Basically your directory structure will have to look like this to automate the whole process:
Movies---------- ......|--------Action ....................|-------genre.jpg ....................|------ ActionMovie1 ...................................|-----------movie.avi ...................................|-----------about.jpg ...................................|-----------etc...... ....................|------ ActionMovie2 ...................................|-----------movie2.avi ...................................|-----------about.jpg ...................................|----------etc......... .........|-----Comedy ....................|-------genre.jpg ....................|--------ComedyMovie1 ....................................|-----------CoMovie.avi ....................................|-----------about.jpg
I think you get the idea.
The file genre.jpg is used as a tag to tell the script to process this directory as a genre jukebox. It is also used in the Mainjukebox rss (new one will all the genre created + MovieAll) as a thumbnail / background still not 100% sure since I am still toying with the mainjukebox.rss. In a nutshell you will call mainjukebox.rss from your menu.rss (Main IMS menu) and then mainjukebox.rss will call the various jukebox by genre or all the movies.
Also the Directory genre name (from example "Action","Comedy") is used as the name of the title for the various Jukebox inside mainjukebox.rss hence it should be created/named as you would like it to appear in the mainjukebox. This allows to break the language barrier so your directory could be call Comedy or Comedie or Komedy etc ... depending on your first language.
Anyhow I thought I would pass this along in case someone would like to use this jukebox in the future and is in the process of organising their drives.
Cheers !!!!
|
| Tue May 10, 2011 2:01 am |
|
 |
|
mikka
Joined: Sat Feb 13, 2010 9:59 pm Posts: 673 Location: Tilburg
|
 Re: Simple RSS Jukebox
I like the idea. This way everyone can decide what should be the name of Genre, pick Genre icon and the script will automatically detect them. Nice job! Anyway, one thing that bugs me from your listview: snappy46 wrote: Movies---------- ......|--------Action ....................|-------genre.jpg ....................|------ ActionMovie1 ...................................|-----------movie.avi ...................................|-----------about.jpg ...................................|-----------etc...... Looks like movie name doesn't really matter, so what are the criteria for selecting movie file? Some people have Sample of the movie in the same directory, some other have multiple .avi files (CD1, CD2, CD3 etc). I hope that using 'Play' will not play the last part of the movie instead of 1st. If you have more time (I know you have  ), you could look into it in positive way: 1) If there's file Sample.avi (or something like that), create extra button (or info text) in top bar with information like: "Press 'Repeat' to play sample" 2) If there's text like CD1, CD2 in movie name (this is how I have named all the multi-part movies), make it possible to use (for example) button 1 - to play CD1, button 2 - to play CD2, and to switch view use other buttons like Zoom I don't know how much it will reduce indexing performance, so if these checks are taking too long time, then probably it's not worth it.
|
| Tue May 10, 2011 9:21 am |
|
 |
|
zozodesbois
Joined: Fri Mar 04, 2011 7:17 am Posts: 10 Location: France
|
 Re: Simple RSS Jukebox
Hi Snappy46 ! It's great, you're full of ideas. As you transfer your Jukebox to install it, you have the russian tool in the link below to compress files. bmp (NoMovieinfo.bmp 1.8Mo => 304 kb) http://geekyhmb.fr.cr/content/images-bmp-compress%C3%A9esWhat did srjg mean ? If you want to optimize your code, you know write access are the slower. So it is imperative to limit the ">" ">>" and bringing them together. Example: V1="toto\n<titi>" V2=${V1}"tutu</titi>\nthe end" echo -e ${V2} > file.rss you only write at the end. Due to write Jukebox_template3x8.rss and Jukebox_template.rss, it doubles the time you write files in. Perhaps you should add a setting to chose only one? Your script is directly usable on our HMB, but we don't like the idea : one movie = one directory. Best regards
Last edited by zozodesbois on Tue May 10, 2011 5:27 pm, edited 1 time in total.
|
| Tue May 10, 2011 3:35 pm |
|
 |
|
snappy46
Joined: Sat May 08, 2010 5:07 am Posts: 335
|
 Re: Simple RSS Jukebox
mikka wrote: Looks like movie name doesn't really matter, so what are the criteria for selecting movie file? Some people have Sample of the movie in the same directory, some other have multiple .avi files (CD1, CD2, CD3 etc). I hope that using 'Play' will not play the last part of the movie instead of 1st.
On my player I usually merge (linux avimerge) all those CD1, CD2 etc... into one file because I hate this now outdated format .... who uses CD now days anyway. Also since the player rss feed does not support continuous play ... CD1 then CD2 automatically I prefer to run those movies using the standard browser which will continue with CD2 automatically after CD1 is finished. As it stand right now unless you put it in your filter cd2; the movie will show twice in the jukebox; unfortunately both will have the same name if a movie.nfo file exist; if not then they will have a different name (filename). So my suggestion is merge or do not put a movie.nfo and you will be able to make the difference between CD1 and CD2 etc.... mikka wrote: If you have more time (I know you have  ), you could look into it in positive way: 1) If there's file Sample.avi (or something like that), create extra button (or info text) in top bar with information like: "Press 'Repeat' to play sample" Top bar is full; it would have to be at the bottom bar  This could be tricky I am not even sure how this could be implemented using the current scheme. I personnaly do not even bother with sample or cd2 etc.. for that matter that's why my filter.conf file looks like this: "sample,cd2,2 ch". Anyhow I will put it on mikka's wishlist. mikka wrote: 2) If there's text like CD1, CD2 in movie name (this is how I have named all the multi-part movies), make it possible to use (for example) button 1 - to play CD1, button 2 - to play CD2, and to switch view use other buttons like Zoom I don't know how much it will reduce indexing performance, so if these checks are taking too long time, then probably it's not worth it. I thought this was suppose to be a Simple RSS Jukebox Generator ..... emphasis on the word simple.  I'll put it also on the wishlist Thanks a lot for all you inputs this is how things get better and improved over time ...... eventhough it might be a long time..... Cheers !!!
|
| Tue May 10, 2011 4:30 pm |
|
 |
|
snappy46
Joined: Sat May 08, 2010 5:07 am Posts: 335
|
 Re: Simple RSS Jukebox
I use non-compress BMP vs for example jpg which would also be a lot smaller to increase speed bmp rgb565 displays really quick compare to jpg. I will have to use the tool you mentioned to see how much speed loss is taken by the decompression process. Merci. zozodesbois wrote: What did srjg mean ?
This is the term used by mikka in the early development of his own jukebox and since I used some of his code I just kept the name: srjg = "Simple RSS Jukebox Generator". Now mikka's has me doing all the dirty work for him. zozodesbois wrote: If you want to optimize your code, you know write access are the slower. So it is imperative to limit the ">" ">>" and bringing them together. Example: V1="toto\n<titi>" V2=${V1}"tutu</titi>\nthe end" echo -e ${V2} > file.rss you only write at the end.
Due to write Jukebox_template3x8.rss and Jukebox_template.rss, it doubles the time you write files in. Perhaps you should add a setting to chose only one?
Merci for the hints; I know that a lot of optimization can take place in the linux shell code portion as well as the RSS feed themselves. I just need the time to clean things up. Once I am happy with the functionality than optimization and clean up of the code will take priority. It not like I know what I am doing As far as writing up the Jukebox_template and Jukebox_template3x8.rss it is actually quite fast probably 0.5 second each. What consume a lot of time in the script is the creation of the jukebox.xml; which involves the scannings of all the movies, about.jpg etc....There is only one of those file for now; but more will be created once the genre functionality is release. This can be quite lengthy on a large movie collection and might need special attention once all done. zozodesbois wrote: Your script is directly usable on our HMB, but we don't like the idea : one movie = one directory. Best regards I know that its hard to please everyone ..... Fortunately the linux script can be easily modified to do exactly what you want as long as the naming convention of the moviesheet/folder image is kept the same throughout which is quite easy to do using thumbgen or sheetmaker; something like $movienameabout.jpg and $movienamefolder.jpg. You could throw all those in the same directory and all your movies could reside in one directory as well if you wanted. I prefer to have things organized based on multiple directory, it makes thing cleaner and easier to find IMHO. Best of all I have you on that other forums to make all those appropriate changes  . Salut mon ami. PS: Your English is quite good for a Frenchmen.
|
| Tue May 10, 2011 4:57 pm |
|
 |
|
zozodesbois
Joined: Fri Mar 04, 2011 7:17 am Posts: 10 Location: France
|
 Re: Simple RSS Jukebox
Hi Snappy46, I found a litle bug: Quote: /usr/local/etc/srjg # ./jukebox_update.sh -i -p "/tmp/hdd/volumes/HDD1/Films de ouf" -t "toto titi" [: de: unknown operand Generating and copying Jukebox.rss file sed: bad format in substitution expression sed: bad format in substitution expression
I solve this, like this: beforeCode: sed 's/JUKEBOXXMLPATH/'$NEWRSS'/' /usr/local/etc/srjg/Jukebox_template.rss > $MOVIESPATH"Jukebox.rss" sed 's/JUKEBOXXMLPATH/'$NEWRSS'/' /usr/local/etc/srjg/Jukebox_template3x8.rss > $MOVIESPATH"Jukebox3x8.rss" new codeCode: sed 's/JUKEBOXXMLPATH/'"$NEWRSS"'/' /usr/local/etc/srjg/Jukebox_template.rss > $MOVIESPATH"Jukebox.rss" sed 's/JUKEBOXXMLPATH/'"$NEWRSS"'/' /usr/local/etc/srjg/Jukebox_template3x8.rss > $MOVIESPATH"Jukebox3x8.rss" Same thing for $MOVIESPATH Code: if [ -z "$MOVIESPATH" ] then echo -e "A directory must be specified using -p must be specified." usage exit 1 fi Bon courage ! Regards Zozodesbois
Last edited by zozodesbois on Thu May 12, 2011 6:59 pm, edited 1 time in total.
|
| Thu May 12, 2011 5:40 pm |
|
 |
|
snappy46
Joined: Sat May 08, 2010 5:07 am Posts: 335
|
 Re: Simple RSS Jukebox
zozodesbois wrote: Hi Snappy46, I found a litle bug: Quote: /usr/local/etc/srjg # ./jukebox_update.sh -i -p "/tmp/hdd/volumes/HDD1/Films de ouf" -t "toto titi" [: de: unknown operand Generating and copying Jukebox.rss file sed: bad format in substitution expression sed: bad format in substitution expression
I solve this, like this: beforeCode: sed 's/JUKEBOXXMLPATH/'$NEWRSS'/' /usr/local/etc/srjg/Jukebox_template.rss > $MOVIESPATH"Jukebox.rss" sed 's/JUKEBOXXMLPATH/'$NEWRSS'/' /usr/local/etc/srjg/Jukebox_template3x8.rss > $MOVIESPATH"Jukebox3x8.rss" new codeCode: sed 's/JUKEBOXXMLPATH/'"$NEWRSS"'/' /usr/local/etc/srjg/Jukebox_template.rss > $MOVIESPATH"Jukebox.rss" sed 's/JUKEBOXXMLPATH/'"$NEWRSS"'/' /usr/local/etc/srjg/Jukebox_template3x8.rss > $MOVIESPATH"Jukebox3x8.rss" Same thing for $MOVIESPATH Code: if [ -z "$MOVIESPATH" ] then echo -e "A directory must be specified using -p must be specified." usage exit 1 fi Bon courage ! Regards Zozodesbois Thanks I already solve the issue with sed 's/JUKEBOXXMLPATH/'"$NEWRSS"'/' /usr/local/etc/srjg/Jukebox_template.rss > $MOVIESPATH"Jukebox.rss" in the upcoming release but I was not aware of the problem with the MOVIEPATH. I will make the appropriate changes in that one also. Just beware that the update using the TV Menu (cgi script call) does not work when you have spaces in your path. It need to be modified so that the cgi script is called by itself without any path attached to it or else you will get an error. The path needs to be written to a file (Same as for the title) and then read back by the cgi script intead of being pass on with the cgi call. Next release will have that fix also. Still need more time for testing/developing before the release of Ver4.0 which will include genres/mainmenu and many other bugs fixes. Thank you / Merci.
|
| Thu May 12, 2011 6:18 pm |
|
 |
|
zozodesbois
Joined: Fri Mar 04, 2011 7:17 am Posts: 10 Location: France
|
 Re: Simple RSS Jukebox
Good news about v4 !
You go too fast ! I can not follow you...
I give you my movie type list asf|avi|dat|divx|flv|img|iso|m1v|m2p|m2t|m2ts|m2v|m4v|mkv|mov|mp4|mpg|mts|qt|rm|rmp4|rmvb|tp|trp|ts|vob|wmv
|
| Thu May 12, 2011 7:03 pm |
|
 |
|
snappy46
Joined: Sat May 08, 2010 5:07 am Posts: 335
|
 Re: Simple RSS Jukebox
zozodesbois wrote: Good news about v4 !
You go too fast ! I can not follow you...
I give you my movie type list asf|avi|dat|divx|flv|img|iso|m1v|m2p|m2t|m2ts|m2v|m4v|mkv|mov|mp4|mpg|mts|qt|rm|rmp4|rmvb|tp|trp|ts|vob|wmv I will update scripts with your movie type list which is more complete than the one currently being used. Thanks again.
|
| Thu May 12, 2011 7:19 pm |
|
|
Who is online |
Users browsing this forum: Heise IT-Markt [Crawler] and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|