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)



- htpc-tac - 2011-02-23

ok, thanks for the info!


- Wanilton - 2011-02-23

htpc-tac Wrote:I guess then you have only to update the addon.
Let me know if it works with AeonMQ2 as I´m using this skin too Nod

Yes, this new version cinema experience it´s ok with AeonMQ2, version 2.7.0, from Info Movie Button...Big Grin


- jitterjames - 2011-02-23

Wanilton Wrote:Yes, this new version cinema experience it´s ok with AeonMQ2, version 2.7.0, from Info Movie Button...Big Grin

But I think there is no support in MQ2 from the home screen.


Great Stuff. - PatK - 2011-02-23

giftie Wrote:The old way is back.
Love the new update 'the old way', I'm a Transparency! RF mouse user.. keyboard presses require that I have my keyboard handy, so this works better for me. I do like the home page addition, but with a fairly custom SVN, I'd have to be making a lot of changes with each update.

I can't get over how well this script works, it's like I set down for an evening of a command performance just for myself.

I can't thank-you enough.


- markimark - 2011-02-23

htpc-tac Wrote:cool Cool
And when you use the way: call the addon trough programs --> cinema experience
then the movielibrary opens with "q"/ "0" ?
Sorry, can´t check it currently by myself because I´m not at home.

Actually if you work with Aeon MQ2 it is very easy to start Cinema Experience. You do this from the Info Panel of the chosen Movie. There is an extra Button "Play using Cinema Experience". Press that button and CE starts exactly as you want.............Got it?


Skin - Wanilton - 2011-02-23

jitterjames Wrote:But I think there is no support in MQ2 from the home screen.
In normal mode - skin aeronmq2, you add in home one new button from script "cinema experience" it´s ok in previous version, i tested with success, but with this new version, the developer info this:
Giftie:
"Calling the script from programs does not work now. This was necessary to allow old versions of of skins to work from the info button."

You will need a movie focused on library as before to work properly in case of voxcommando, at least for now, unless changed in the script.

Let's wait for the script will look like if there will be other changes, then get right to the skin aeronmq2 per hour is functional via movie info.


- htpc-tac - 2011-02-23

yes starting the normal way over the info label is no problem.
But with this you can't queue more movies.

I just tried to get it additional running in AeonMQ2 with a custom Menu which calls the script.
Creating it is no problem, but then I have the problem, that I can't pass an argument to the script.

For the Other skins like confluence it works like in gifties skin-packages:

Quote:<item id="12">
<description>Cinema Experience</description>
<label>Cinema Exp</label>

<onclick>
XBMC.RunScript(script.cinema.experience,movietitles)
</onclick>
<icon>special://skin/backgrounds/videos.jpg</icon>
<thumb>$INFO[Skin.String(CustomMoviesFolder)]</thumb>

<visible>
system.hasaddon(script.cinema.experience) + Library.HasContent(Movies)
</visible>
</item>

so the magic is here:
XBMC.RunScript(script.cinema.experience,movietitles)

How can I edit AeonMQ2 to pass also this parameter movietitles to the script when I click on the custom menu?


- MarcosQui - 2011-02-23

As soon as possible I intend to make a menu and sub menu dedicated to Cinema Experience with all the embedded options.

Please wait.


- htpc-tac - 2011-02-23

I played a little and found a way to get it to work:

editing guisettings.xml (xbmc must be down)
and searched for my custom Menu with its script entry: script.cinema.experience

there I added the argument like this:
old:
Quote:<setting type="string" name="skin.aeonmq.2.script_custom1_Path">script.cinema.experience</setting>
to new:
Quote:<setting type="string" name="skin.aeonmq.2.script_custom1_Path">script.cinema.experience, movietitles</setting>

and this

old:
Quote:<setting type="string" name="skin.aeonmq.2.script_custom1_Path">script.cinema.experience</setting>
to new:
Quote:<setting type="string" name="skin.aeonmq.2.script_custom1_Path">script.cinema.experience, movietitles</setting>

same can be done also for submenu entries passing different arguments like these:
movietitles, movieyears, movieactors, moviedirectors, moviestudios, moviesets, moviecountries, recentlyaddedmovies


- azaze1 - 2011-02-24

Great concept for this add-on. I'm loving it so far.

I have a few questions that I'd like to understand better:

1) I notice the DTS Master Audio is recognized within the skins now instead of just showing a DTS logo. Is this a result of the cinema experience add on or could it be something new in the nightly XBMC builds? BTW: It reports DTS-MA 5.1 even on 7.1 tracks.

2) With respect to the Audio intros (DTS/Dolby/THX) How does it decide what to play? It seems to be somewhat random for me. I've got a DTSHD-MA movie playing with cinema experience, and it sometimes skips the 1 DTS-MA intro I have, and simply goes to the THX intro.

3) Somtimes it plays the same Intro two times in a row before playing the movie. Seems like an obvious bug, but it's not consistent. Is the intro selection completely random? Is there something I can do organizationally to enforce DTS-MA Intros be played for all movies with DTS-MA as their primary audio track? At the same time enforce TrueHD intro for movies with TrueHD tracks.

4) I'd like to also have the THX intro play whether the feature movie is TrueHD or DTS-MA... can I enforce this?

5) If I have more than 1 THX intro file in the THX folder will it pick one randomly or play both? Will that be consistent ?


Thanks for any feedback,

-Robert


- giftie - 2011-02-24

azaze1 Wrote:Great concept for this add-on. I'm loving it so far.

I have a few questions that I'd like to understand better:

1) I notice the DTS Master Audio is recognized within the skins now instead of just showing a DTS logo. Is this a result of the cinema experience add on or could it be something new in the nightly XBMC builds? BTW: It reports DTS-MA 5.1 even on 7.1 tracks

XBMC can get the streamdetails now and store them in the Database(along with Dolby TrueHD). Though It is not able to play them yet(still drops to DTS Core for the DTSHD-MA) The script just gets it's information from the database, similar to how a skin gets the information.

Quote:2) With respect to the Audio intros (DTS/Dolby/THX) How does it decide what to play? It seems to be somewhat random for me. I've got a DTSHD-MA movie playing with cinema experience, and it sometimes skips the 1 DTS-MA intro I have, and simply goes to the THX intro.

You need have the following folders.

Audio <- just named for simplicity
---Dolby
---Dolby TrueHD
---DTS
---DTSHD-MA
---Other

Place the appropriate video(s) in each of the folders

They are case sensitive.

The script needs to be pointed to the Audio Folder(in settings)

Then when the script matches the audio format, it plays a video from the appropriate folder(ie a Dolby Movie, gets the Dolby Intro, etc.)

If none are matched, it will play one from the Other folder(ie THX, etc)

Quote:3) Somtimes it plays the same Intro two times in a row before playing the movie. Seems like an obvious bug, but it's not consistent. Is the intro selection completely random? Is there something I can do organizationally to enforce DTS-MA Intros be played for all movies with DTS-MA as their primary audio track? At the same time enforce TrueHD intro for movies with TrueHD tracks.

If the folders are set up correctly, it should play the proper video intro. If it is not, could you post your xbmc.log to pastebin so I can check out why... Also 'randomness' increases with more videos(it has to do with the programming language - I randomize the videos 5 times to try to get the best 'random' orders)

Quote:4) I'd like to also have the THX intro play whether the feature movie is TrueHD or DTS-MA... can I enforce this?

5) If I have more than 1 THX intro file in the THX folder will it pick one randomly or play both? Will that be consistent ?

At the moment you can not add a THX video before a film, I'll add that to the list of requested features.
If you have more than 1 video in the folder, it will randomly pick one(it can randomly pick the same one every time for a while.)


A special Note about the script.... - giftie - 2011-02-24

I see that ronie(skin developer of Transparency!) has added a skin setting that allows the Movie Button to become the Cinema Experience script button(Script is always active from this point) You can still play a movie without the script! The key to the script is the Queuing of the movie. If you Press Select or Play, the Script will cancel out and the movie will play normally. So really the only thing that changes from the normal Movie experience is that you have the small Notifier on the screen(it turns off after 5 minutes).


- azaze1 - 2011-02-24

Thank you for the detailed reply. Much appreciated.

I did have the folders mostly setup correctly. Mostely I'm sure is not good enough, so I've corrected the names. (used to just be TrueHD instead of Dolby TrueHD, and the DTSHD-MA was previously named DTS-MA).

That's been corrected though it still played Intros for DTS Master Audio despite the incorrect folder name. Still not sure why it played the same thing twice... I'll dig through logs and see if I can reproduce. If so I'll look into providing the log via pastebin.

The THX no matter what thing would be terrific, highly desirable (for me at least).

Thanks again,

-Robert


- giftie - 2011-02-24

azaze1 Wrote:Thank you for the detailed reply. Much appreciated.

I did have the folders mostly setup correctly. Mostely I'm sure is not good enough, so I've corrected the names. (used to just be TrueHD instead of Dolby TrueHD, and the DTSHD-MA was previously named DTS-MA).

That's been corrected though it still played Intros for DTS Master Audio despite the incorrect folder name. Still not sure why it played the same thing twice... I'll dig through logs and see if I can reproduce. If so I'll look into providing the log via pastebin.

The THX no matter what thing would be terrific, highly desirable (for me at least).

Thanks again,

-Robert

Just double checked on my system... It looks like some old code found its way back. I'll have it fixed and posted tonight to the repo...


- D-tyme - 2011-02-24

I'm seeing the same:

Code:
19:34:42 T:2962419712 M:311123968  NOTICE: -->Python Interpreter Initialized<--
19:34:42 T:2962419712 M:311078912  NOTICE: [script.cinema.experience] - Autorefresh - Before Script: False
19:34:42 T:2962419712 M:311078912  NOTICE: [script.cinema.experience] - Script Name: Cinema Experience
19:34:42 T:2962419712 M:311078912  NOTICE: [script.cinema.experience] - Script ID: script.cinema.experience
19:34:42 T:2962419712 M:311078912  NOTICE: [script.cinema.experience] - Script Version: 1.0.24
19:34:42 T:2962419712 M:311083008  NOTICE: [script.cinema.experience] - Video Playlist Cleared
19:34:42 T:2962419712 M:311083008  NOTICE: [script.cinema.experience] - Music Playlist Cleared
19:34:42 T:2962419712 M:311083008  NOTICE: [script.cinemaexperience] - Action(Queue,25)
19:34:43 T:2962419712 M:290660352  NOTICE: [script.cinema.experience] - Library_view: oldway
19:34:43 T:2962419712 M:290660352  NOTICE: [script.cinema.experience] - auto_refresh( False, disable )
19:34:43 T:2962419712 M:290660352  NOTICE: [script.cinema.experience] - Autorefresh Status: False
19:34:43 T:2962419712 M:290205696  NOTICE: [script.cinema.experience] - Feature - Predators
19:34:43 T:2962419712 M:290205696  NOTICE: [script.cinema.experience] - _get_queued_video_info()
19:34:43 T:2962419712 M:290197504  NOTICE: [script.cinema.experience]  - SQL: SELECT movie.c12, movie.c14, streamdetails.strAudioCodec FROM movie, streamdetails WHERE movie.idFile=streamdetails.idFile AND streamdetails.iStreamType=1 AND c00='Predators' LIMIT 1
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience] - Queued Movie Information
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience] ----------------------------------------------------------------------
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience] - Title: Predators
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience] - Path: Predators
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience] - Genre: Action / Adventure / Sci-Fi / Thriller
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience] - MPAA: R
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience] - Audio: dtshd_ma
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience] - Folder: /Volumes/Working/Cinema Experience/Videos/Audio/Other/
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience]  ----------------------------------------------------------------------
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience] - Building Cinema Experience Playlist
19:34:43 T:2962419712 M:291332096  NOTICE: [script.cinema.experience] - Adding Audio Format Video
19:34:43 T:2962419712 M:291258368  NOTICE: [script.cinema.experience]  - Thumbnail Url: /Volumes/Working/Cinema Experience/Videos/Audio/Other/hd_thx_terminator_2.m2ts
19:34:43 T:2962419712 M:291258368  NOTICE: [script.cinema.experience]  - Thumbnail Filename: bfcc473a.tbn
19:34:43 T:2962419712 M:291241984  NOTICE: [script.cinema.experience] - Adding Count Down Videos: 0 Videos
19:34:43 T:2962419712 M:291241984  NOTICE: [script.cinema.experience] - Adding Ratings Video
19:34:43 T:2962419712 M:291241984  NOTICE: [script.cinema.experience]  - Thumbnail Url: /Volumes/Working/Cinema Experience/Videos/Ratings/R.avi
19:34:43 T:2962419712 M:291241984  NOTICE: [script.cinema.experience]  - Thumbnail Filename: 32445fbb.tbn
19:34:43 T:2962419712 M:291217408  NOTICE: [script.cinema.experience] - Adding Feature Presentation Intro Videos: 2 Videos
19:34:43 T:2962419712 M:291217408  NOTICE: [script.cinema.experience]  - Thumbnail Url: /Volumes/Working/Cinema Experience/Videos/Feature Presentation Intro/feature_presentation_orange.mp4
19:34:43 T:2962419712 M:291217408  NOTICE: [script.cinema.experience]  - Thumbnail Filename: 504d6e1b.tbn
19:34:43 T:2962419712 M:291201024  NOTICE: [script.cinema.experience] - Retriving Trailers: 2 Trailers
19:34:43 T:2962419712 M:291082240  NOTICE: Apple Movie Trailers Newest trailers scraper
19:34:45 T:2962419712 M:309870592  NOTICE: [script.cinema.experience] - Adding Coming Attraction Video: 0 Videos
19:34:45 T:2962419712 M:309870592  NOTICE: [script.cinema.experience] - Adding Trailers: 2 Trailers
19:34:45 T:2962419712 M:309870592  NOTICE: [script.cinema.experience]  - Thumbnail Url: http://trailers.apple.com/trailers/independent/soulsurfer/images/poster-xlarge.jpg?|User-Agent=QuickTime%2F7.2+%28qtver%3D7.2%3Bos%3DWindows+NT+5.1Service+Pack+3%29
19:34:45 T:2962419712 M:309870592  NOTICE: [script.cinema.experience]  - Thumbnail Filename: 340a7125.tbn
19:34:45 T:2962419712 M:309870592  NOTICE: [script.cinema.experience]  - Thumbnail Url: http://trailers.apple.com/trailers/magnolia/blackdeath/images/poster-xlarge.jpg?|User-Agent=QuickTime%2F7.2+%28qtver%3D7.2%3Bos%3DWindows+NT+5.1Service+Pack+3%29
19:34:45 T:2962419712 M:309870592  NOTICE: [script.cinema.experience]  - Thumbnail Filename: 198c2afb.tbn
19:34:46 T:2962419712 M:309846016  NOTICE: [script.cinema.experience] - Adding Coming Attraction Intro Videos: 2 Videos
19:34:46 T:2962419712 M:308920320  NOTICE: [script.cinema.experience]  - Thumbnail Url: /Volumes/Working/Cinema Experience/Videos/Coming Attractions Intro/coming_attractions_orange.mp4
19:34:46 T:2962419712 M:308920320  NOTICE: [script.cinema.experience]  - Thumbnail Filename: 59d8fb43.tbn
19:34:46 T:2962419712 M:308920320  NOTICE: [script.cinema.experience] - Adding Movie Theatre Intro Videos: 0 Videos
19:34:46 T:2962419712 M:308920320  NOTICE: [script.cinema.experience] - Adding Trivia Outro Videos: 0 Videos
19:34:46 T:2962419712 M:308920320  NOTICE: [script.cinema.experience] - Adding Feature Presentation Outro Videos: 0 Videos
19:34:46 T:2962419712 M:308920320  NOTICE: [script.cinema.experience] - Adding Movie Theatre Outro Videos: 0 Videos
19:34:46 T:2962419712 M:308920320  NOTICE: [script.cinema.experience] - Playlist Size: 7
19:34:46 T:2962419712 M:308920320  NOTICE: [script.cinema.experience] - MPAA Rating: --
19:34:46 T:2962419712 M:308875264  NOTICE: [script.cinema.experience] - Starting Trivia script
19:34:46 T:2962419712 M:308850688  NOTICE: [script.cinema.experience] - Loading Watch Slide List
19:34:46 T:2962419712 M:308752384  NOTICE: [script.cinema.experience] - Sorting Watched/Unwatched and Shuffing Slides
19:34:46 T:2962419712 M:308752384  NOTICE: [script.cinema.experience] ------------------Unwatched-------------------------     included - Oceans12_a.jpg, , Oceans12_b.jpg
19:34:46 T:2962419712 M:308752384  NOTICE: [script.cinema.experience] ------------------Unwatched-------------------------     included - BackToTheFuture3_a.jpg, , BackToTheFuture3_b.jpg
19:34:46 T:2962419712 M:308752384  NOTICE: [script.cinema.experience] -----------------------------------------
19:34:46 T:2962419712 M:308752384  NOTICE: [script.cinema.experience] - total slides selected: 4
19:34:46 T:2962419712 M:309587968  NOTICE: [script.cinema.experience] - ## Intro ##
19:34:46 T:2962419712 M:309587968  NOTICE: [script.cinema.experience] - Starting Tivia Music
19:34:46 T:2962419712 M:309587968  NOTICE: [script.cinema.experience] - Setting - trivia_music: 0
19:34:46 T:2962419712 M:309587968  NOTICE: [script.cinema.experience] - Building Music Playlist
19:35:26 T:2964549632 M:325214208  NOTICE: Previous line repeats 3 times.
19:35:26 T:2964549632 M:325214208  NOTICE: [script.cinema.experience] - Saving Watch Slide List
19:35:26 T:2964549632 M:325173248  NOTICE: [script.cinema.experience] - ## Outro ##
19:35:26 T:2964549632 M:325173248  NOTICE: [script.cinema.experience] - Fading Volume
19:35:26 T:2964549632 M:325173248  NOTICE: [script.cinema.experience] - Start Volume: 100
19:35:28 T:2964549632 M:325992448  NOTICE: [script.cinema.experience] - Finish Volume: 1
19:35:29 T:2964549632 M:325976064  NOTICE: [script.cinema.experience] - Raising Volume
19:35:29 T:2964549632 M:325976064  NOTICE: [script.cinema.experience] - Start Volume: 1
19:35:30 T:2964549632 M:325988352  NOTICE: [script.cinema.experience] - Finish Volume: 98
19:35:30 T:2696258880 M:327131136  NOTICE: DVDPlayer: Opening: /Volumes/Working/Cinema Experience/Videos/Coming Attractions Intro/coming_attractions_orange.mp4
19:35:30 T:2696258880 M:327131136 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:35:30 T:2959355904 M:327122944  NOTICE: Creating InputStream
19:35:30 T:2959355904 M:327094272  NOTICE: Creating Demuxer
19:35:30 T:2959355904 M:329740288  NOTICE: Opening video stream: 0 source: 256
19:35:30 T:2959355904 M:329740288  NOTICE: Creating video codec with codec id: 28
19:35:31 T:2959355904 M:327643136  NOTICE: Creating video thread
19:35:31 T:2959355904 M:327630848  NOTICE: Opening audio stream: 1 source: 256
19:35:31 T:2959355904 M:327630848  NOTICE: Finding audio codec for: 86018
19:35:31 T:2959355904 M:327229440  NOTICE: Creating audio thread
19:35:31 T:2974691328 M:327221248  NOTICE: running thread: CDVDPlayerAudio::Process()
19:35:31 T:2974691328 M:327221248  NOTICE: Creating audio device with codec id: 86018, channels: 2, sample rate: 44100, no pass-through
19:35:31 T:2964017152 M:327208960  NOTICE: running thread: video_thread
19:35:31 T:2962419712 M:316833792  NOTICE: [script.cinema.experience] - Music Playlist Cleared
19:35:31 T:2964017152 M:284516352  NOTICE:  fps: 25.000000, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
19:35:31 T:2964017152 M:287080448 WARNING: CRenderManager::Configure - timeout waiting for previous frame
19:35:31 T:2964017152 M:287080448  NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (12)
19:35:32 T:2696258880 M:283648000   ERROR: ClearBlock: Trying to clear non existent block /Users/MiniMedia/Library/Application Support/XBMC/addons/script.cinema.experience