Kodi Community Forum
[RELEASE] Cinema Experience - the new Home Theater Experience Script - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Cinema Experience - the new Home Theater Experience Script (/showthread.php?tid=87563)



- giftie - 2011-06-21

MazdaDriver5 Wrote:This will be my first post here. Smile I just discovered XBMC yesterday and already really loving it and this script as well. I've been looking for something a bit more powerful than Windows Media Player now that I have my laptop hooked up to my 42" HDTV via HDMI and this looks like it will do the job. Smile

However, I run into errors when I try to use the trivia portion of this script, from what I can tell the trailer part runs fine, if a little belated, but still well. I don't have any trailers on my computer so I used the streaming option and that worked alright apart from buffering issues but that is due to my internet connection. Anyway, the trivia error I get. I click Cinema Play in XBMC and it does nothing, just hangs. I have a portion of the log here that I've deduced that's where it stops at.

Code:
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Script Name: Cinema Experience
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Script ID: script.cinema.experience
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Script Version: 1.0.46
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Autorefresh - Before Script: False
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Starting Window ID: 10024
10:18:09 T:4944 M:2019545088  NOTICE: [script.cinema.experience] - Log Level: 0
10:18:09 T:4944 M:2019524608  NOTICE: [script.cinema.experience] - Video Playlist Cleared
10:18:09 T:4944 M:2019524608  NOTICE: [script.cinema.experience] - Music Playlist Cleared
10:18:09 T:4944 M:2019524608  NOTICE: [script.cinema.experience] - Action(Queue,24)
10:18:10 T:4944 M:2020917248  NOTICE: [script.cinema.experience] - Library_view: oldway
10:18:10 T:4944 M:2020917248  NOTICE: [script.cinema.experience] - auto_refresh( False, disable )
10:18:10 T:4944 M:2020917248  NOTICE: [script.cinema.experience] - Autorefresh Status: False
10:18:10 T:4944 M:2020614144  NOTICE: Traceback (most recent call last):
10:18:10 T:4944 M:2020614144  NOTICE:   File "C:\Users\Chris\AppData\Roaming\XBMC\addons\script.cinema.experience\resources\lib\ce_playlist.py", line 273, in _get_queued_video_info
10:18:10 T:4944 M:2020593664  NOTICE:     mpaa, genre, audio, dummy = xbmc.executehttpapi( "QueryVideoDatabase(%s)" % quote_plus( sql ), ).split( "</field>" )
10:18:10 T:4944 M:2020593664  NOTICE: ValueError: need more than 1 value to unpack
10:18:10 T:4944 M:2020593664  NOTICE: [script.cinema.experience] - Feature - Men of Honor.mkv
10:18:10 T:4944 M:2020593664  NOTICE: [script.cinema.experience] - Storing Playlist
10:18:10 T:4944 M:2020765696  NOTICE: [script.cinema.experience] - Slide MPAA Rating:
10:18:10 T:4944 M:2020544512  NOTICE: [script.cinema.experience] - Sorting Watched/Unwatched and Shuffing Slides
10:18:10 T:4944 M:2020544512  NOTICE: [script.cinema.experience] - total slides selected: 111
10:18:10 T:4944 M:2020544512  NOTICE: [script.cinema.experience] - ## Intro ##
10:18:11 T:4944 M:2020532224  NOTICE: [script.cinema.experience] - Starting Trivia script
10:18:11 T:4944 M:2020528128  NOTICE: Traceback (most recent call last):
10:18:11 T:4944 M:2020528128  NOTICE:   File "C:\Users\Chris\AppData\Roaming\XBMC\addons\script.cinema.experience\addon.py", line 640, in ?
10:18:11 T:4944 M:2020528128  NOTICE:     exit = start_script( "oldway" )
10:18:11 T:4944 M:2020528128  NOTICE:   File "C:\Users\Chris\AppData\Roaming\XBMC\addons\script.cinema.experience\addon.py", line 491, in start_script
10:18:11 T:4944 M:2020528128  NOTICE:     _play_trivia( mpaa, genre, plist, equivalent_mpaa )
10:18:11 T:4944 M:2020528128  NOTICE:   File "C:\Users\Chris\AppData\Roaming\XBMC\addons\script.cinema.experience\addon.py", line 428, in _play_trivia
10:18:11 T:4944 M:2020528128  NOTICE:     ui = Trivia( "script-CExperience-trivia.xml", _A_.getAddonInfo('path'), "default", "720p", settings=settings, mpaa=mpaa, genre=genre, plist=plist, slide_playlist=slide_playlist )
10:18:11 T:4944 M:2020528128  NOTICE: TypeError: XML File for Window is missing
The last line is the last line in my log, it just hangs there. Any help would be greatly appreciated! I'm using the base Neon theme, haven't changed it a bit.

Are you running a nightly version of XBMC? It seems so.. though I can not tell by your log(the beginning mentions the version) If you are using a Nightly, it is not a very recent version(XBMC can not find the skin file(script-CExperience-trivia.xml) which should fixed in recent Nightly versions.)

Also there are some problems with the script and Nightly versions(just found out today) I have a fixed version I will post here shortly..


- giftie - 2011-06-21

Regss Wrote:Hi!
I added a button to Confluence:
Code:
<control type="button" id="13">
      <description>Home Cinema Experience</description>
      <include>ButtonInfoDialogsCommonValues</include>
      <label>Cinema</label>
      <onclick>Dialog.Close(MovieInformation)</onclick>
      <onclick>Playlist.Clear</onclick>
      <onclick>RunScript(special://home/addons/script.cinema.experience/addon.py)</onclick>
</control>

After pressing button the movie does not play
and XBMC shows error in log:

Code:
20:22:02 T:2160 M:922079232  NOTICE: -->Python Interpreter Initialized<--
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Script Name: Cinema Experience
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Script ID: script.cinema.experience
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Script Version: 1.0.46
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Autorefresh - Before Script: False
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Starting Window ID: 10025
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Log Level: 0
20:22:02 T:2160 M:921047040  NOTICE: [script.cinema.experience] - Video Playlist Cleared
20:22:02 T:2160 M:921047040  NOTICE: [script.cinema.experience] - Music Playlist Cleared
20:22:02 T:2160 M:921104384  NOTICE: [script.cinema.experience] - Action(Queue,25)
20:22:03 T:2160 M:921862144  NOTICE: [script.cinema.experience] - Library_view: oldway
20:22:03 T:2160 M:921862144  NOTICE: [script.cinema.experience] - auto_refresh( False, disable )
20:22:03 T:2160 M:921862144  NOTICE: [script.cinema.experience] - Autorefresh Status: False
20:22:03 T:2160 M:921804800  NOTICE: [script.cinema.experience] - Feature - Legendy sowiego królestwa: Strażnicy Ga'Hoole
20:22:03 T:2160 M:921804800  NOTICE: [script.cinema.experience] - Storing Playlist
20:22:03 T:2160 M:921800704  NOTICE: [script.cinema.experience] - Error - Playlist Empty
20:22:03 T:2160 M:921796608  NOTICE: [script.cinema.experience] - Music Playlist Cleared
20:22:03 T:2160 M:921796608  NOTICE: [script.cinema.experience] - Loading Trigger List
20:22:03 T:2160 M:921812992  NOTICE: [script.cinema.experience] - Video Definitely Stopped
20:22:03 T:2160 M:921812992  NOTICE: [script.cinema.experience] - User might have pressed stop
20:22:03 T:2160 M:921812992  NOTICE: [script.cinema.experience] - Stopping Script
20:22:03 T:2160 M:921808896  NOTICE: [script.cinema.experience] - messy_exit: False
20:22:03 T:2160 M:921808896  NOTICE: [script.cinema.experience] - Video Playlist Cleared
20:22:03 T:2160 M:921808896  NOTICE: [script.cinema.experience] - Music Playlist Cleared

What I'm doing wrong?
On the other skins work properly.

I need you to run XBMC in debug mode so more infomation is logged.


- giftie - 2011-06-21

dirtdog900 Wrote:Hello

This is a fantastic script but I am picking up the 'ERROR: Error trying to retrieve an item that's out of range' when using the apple streaming trailers. Generally, it will play 1 trailer out of the 5 I have configured and then just stops...generating that error in the debug log.

Any ideas what causes that?

Are you having any videos play before the trailers(coming attraction intro, movie theatre intro, trivia outro)? If so, turn these off, and the trailers should play.


- giftie - 2011-06-21

MazdaDriver5 Wrote:This will be my first post here. Smile I just discovered XBMC yesterday and already really loving it and this script as well. I've been looking for something a bit more powerful than Windows Media Player now that I have my laptop hooked up to my 42" HDTV via HDMI and this looks like it will do the job. Smile

However, I run into errors when I try to use the trivia portion of this script, from what I can tell the trailer part runs fine, if a little belated, but still well. I don't have any trailers on my computer so I used the streaming option and that worked alright apart from buffering issues but that is due to my internet connection. Anyway, the trivia error I get. I click Cinema Play in XBMC and it does nothing, just hangs. I have a portion of the log here that I've deduced that's where it stops at.

Code:
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Script Name: Cinema Experience
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Script ID: script.cinema.experience
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Script Version: 1.0.46
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Autorefresh - Before Script: False
10:18:09 T:4944 M:2019368960  NOTICE: [script.cinema.experience] - Starting Window ID: 10024
The last line is the last line in my log, it just hangs there. Any help would be greatly appreciated! I'm using the base Neon theme, haven't changed it a bit.

Also you are starting from the Video Files window, not the from the Video library window(ie Movies from the Home Screen)

The script needs the video database to function.


- giftie - 2011-06-21

lightkeepr Wrote:When I start CE the trivia plays and the feature presentation plays but the I am returned to the movie list. Here is the log: http://pastebin.com/d3N7mQh3 . I am very new at this and maybe I have a setting wrong. Any suggestions?

Make sure you start the movie from the library window, not files window.. It should work from then on...


As promised... - giftie - 2011-06-22

This is mostly for testing purposes... I know it should run fine on a nightly version, completely untested on Dharma(some one please be a bit daring and test please Smile )

You can download version 1.4.8 from here.. http://www.mediafire.com/file/8qr0d0k2k1eh6l7/script.cinema.experience.1.4.8.zip

I have yet to push this to the repo due to the fact it is untested on Dharma...


- Regss - 2011-06-22

giftie Wrote:I need you to run XBMC in debug mode so more infomation is logged.

I solved this problem but I have another. After selecting a movie and press the "Cinema" is played a random trailer. When the trailer ends movie does not start.

This is Debug log.

Maybe I badly configured plugin. But after install I set only one random trailer.


- boblinds - 2011-06-22

RE: Apple trailer plugin

I've searched the board and the Internet in general, but haven't been successful locating information as to why trailer streaming just locks up (before it starts) on my Revo 3700. The Apple trailer plugin works independently but not in the context of CE. Can anyone point me to a wiki or help thread that might help? Thanks.

Giftie, I'll give the new build a shot on my Dharma installation.


- icky - 2011-06-22

@ giftie new build works on dharma....

sorry to thread hijack but did you ever get this fixed??

http://forum.xbmc.org/showthread.php?tid=100278

i know its not your script but i am getting the same screen as the op.

kind regards

icky


- john.doe - 2011-06-22

Should this plugin automaticly download movie trailers and play them(stream) or I need to manualy download them and show the plugin direcection where to play the videos? I have installed this plugin, and every time I want to run this plugin it wil just popup settings menu for me. I dont underestand what is the problem :/


- giftie - 2011-06-23

boblinds Wrote:RE: Apple trailer plugin

I've searched the board and the Internet in general, but haven't been successful locating information as to why trailer streaming just locks up (before it starts) on my Revo 3700. The Apple trailer plugin works independently but not in the context of CE. Can anyone point me to a wiki or help thread that might help? Thanks.

Giftie, I'll give the new build a shot on my Dharma installation.


With out a debug log, I can not be sure. But I think you have the problem that has been mentioned here and also that I have posted on trac. If you are playing any intro videos before the trailers(including trivia outro) there seems to be a problem with XBMC(and the script) where it does not play the streamed video(sometimes it will, most times it will not) the temporary solution is to disable all videos that would occur prior to the streamed trailers(including the Coming Attractions Intro, the outro can stay).

If you don't have any videos prior to the streamed trailers please post a full debug log..

Thanks...


- giftie - 2011-06-23

Regss Wrote:I solved this problem but I have another. After selecting a movie and press the "Cinema" is played a random trailer. When the trailer ends movie does not start.

This is Debug log.

Maybe I badly configured plugin. But after install I set only one random trailer.

I see you are using an old Nightly version of XBMC(compiled in April) you might want to update to a newer version, and try the link to the script I had posted last night. I just want a little more testing before it makes it to the repo...


- giftie - 2011-06-23

john.doe Wrote:Should this plugin automaticly download movie trailers and play them(stream) or I need to manualy download them and show the plugin direcection where to play the videos? I have installed this plugin, and every time I want to run this plugin it wil just popup settings menu for me. I dont underestand what is the problem :/

If you start on the first page of this thread and read through the first 2 or 3 pages you might have a better understanding with this script. The key to its use is having a skin that supports it(most do, some require some extra setup)

The script can download or stream trailers from Apple Movie Trailers(using the newest available trailers, or if the Apple Movie Trailer plugin is installed, it can pull from that plugins database for trailers) The problem with downloading is that it requires time(therefore it is suggested to use the trivia feature as well, providing the script time to download the trailers) There is also a problem appearing with streamed trailers, you need to disable(set to None) all the videos that would occur before the trailers play(only with streamed trailers)

You can also play trailers from your movie library(though some of these may no longer be valid)

Also there is an external program called HD-Trailer.net Downloader that can be set up to automatically download trailers from HD-Trailer.net and save them in a manor that the script understands.

Also this script is most often started(on most skins) from the Movie Info(press 'Info' or 'I') from the Movie Library(not Video Files)


- boblinds - 2011-06-23

Thanks so very much for the fast reply on streaming trailers, Giftie. I'll disable all preceding videos and give it another try.

I uninstalled the current version of CE and installed the new build this afternoon (using the Install from Zip option) and, on my Dharma installation, it didn't work. I'm about to go back into the theater and uninstall, including deleting config files, and then reinstall to see what happens. (FYI, on the first try the new build flashed a buffer dialog and then started the feature with no preceding content. On subsequent tries, it sometimes flashed a buffer dialog VERY quickly, sometimes not, and that was it. No lockup, however. The MQ2 interface was still functioning.)

I'll get back to you after I've shaken it out a bit more. If I can't get things functioning, I'll submit a debug log.

Thanks again,
Bob


- xjh3144 - 2011-06-23

Please do expect the general feeling of flying