Jump to content

Welcome, Guest!

Be a part of CinemaVision today! Once registered and logged in, you will have access to public chat and your own private messenger, you can view and contribute guides, collaborate on the forums, review downloads, give reputation to your fellow members, contribute content and so much more. Registering is quick and completely free, so what are you waiting for?
   Sign In    Sign Up

Become a RedCarpet Club Member Today!

   Join Now
  • 4
rdsp

[Guide] Fix CV for Kodi 18.1+

Question

UPDATE

Download CinemaVision 1.1.1a10 which already contains a more comprehensive fix for this issue.

If this isn't working for you, please post your Logs which are very helpful in trying to figure out what other problems exist.

Spoiler

Before you start.

This fix involves changing code. Don't worry, its very simple and you don't need to know how to code.

It's been tested on Kodi 18.3 running on Windows 10 and OSMC on a Vero 4k. It should work everywhere though.

It is not a guaranteed fix. I have tested sequences with Actions, Trailers, Video Bumpers and Audio Format Bumpers and these are working.

 

So,

1. First  make sure you have the development version of CinemaVision 1.1.1a8 installed. If not, download from here and install.

2. Find your addons folder within kodi. This will change depending on what OS you have. This link should help you find kodi's main directory.

3. Go to addons/script.cinemavision/lib 

4. If you have any files with the extension .pyo  inside this folder, delete them. Don't worry, these are not important.

5. Now open experience.py 

- To make your life easier, consider installing something like Notepad++ or Sublime3 to edit this file.

- At this point you can backup this file to somewhere else, though the change is insignificant and should break nothing. You can also reinstall the addon which will revert back any changes.

6. Go to line 882 and delete it. That's it. Do not comment the line as kodi will create those .pyo files again which may break this fix.

This should be the line of code you have just deleted.


self.playlist.add(self.fakeFileNext)

 

Now check your code against this one to make sure you've done it correctly


def playVideos(self, videos, features=None):
        self.playlist.clear()
        rpc.Playlist.Clear(playlistid=xbmc.PLAYLIST_VIDEO)

        volume = (features or videos)[0].volume
        if volume != 100:
            self.volume.set(volume, relative=True)

        self.playlist.add(self.fakeFilePrev)
        if features:
            for feature in features:
                self.addFeatureToPlaylist(feature)
        else:
            for video in videos:
                pli = self.getPathAndListItemFromVideo(video)
                self.playlist.add(*pli)

        self.videoPreDelay()
        rpc.Player.Open(item={'playlistid': xbmc.PLAYLIST_VIDEO, 'position': 1}, options={'shuffled': False, 'resume': False, 'repeat': 'off'})
        xbmc.sleep(100)
        while not xbmc.getCondVisibility('VideoPlayer.IsFullscreen') and not xbmc.abortRequested and not self.abortFlag.isSet() and self.isPlaying():
            xbmc.executebuiltin('ActivateWindow(fullscreenvideo)')
            xbmc.sleep(100)
        self.hasFullscreened = True
        DEBUG_LOG('VIDEO HAS GONE FULLSCREEN')

7. Save the file overwriting the existing one. If you can't, make sure to save it with the same name and extension and then replace it.

8. Enable debugging in CinemaVision Advanced Settings

 

Restarting your system after these changes is recommended but not necessary.

If you've done everything correctly in this order it should work.

 

  • Like 3
  • Upvote 4

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0
22 hours ago, Friffy1 said:

I haven't gone to 1.1.1a9 yet because I've got things extremely stable running Win7 and 18.0.  My biggest fear is the reports of "it doesn't work the first time after booting, but works on subsequent runs."  Did you experience that at all?  Does your sequence include a lot of the features CV has?  Any issues?  Personally I use Trivia Intro, Trivia, Trivia Outro, Theater Intro, Trailer Intro, Trailers, Feature Intro, Rating, Audio Format, (feature), Feature Outro, Theater Outro.

I only am using rating, trailer, and audio bumpers so far. I'm brand new to this. I'd follow the "if it ain't broke, don't fix it" rule.

Share this post


Link to post
Share on other sites
  • 0

I’m going to use ADBlink to make a complete backup so I can restore the shield quickly if it doesn’t work out. It’s free and easy. So the risk in my case will be minimal - it’s just time consuming. But worth it I think to see if it will work with the latest updates. Their are fixes I. 18.3 (for example - 18.0 doesn’t store changes to the screen ratio. So every time I start a movie, I have to do a “video calibration” - that was supposedly fixed in 18.3) and stability improvements I’d like to have - but I enjoy cinemavision enough that I’d rather be on a half-baked version of Kodi than give up CV. So hoping with rdsp’s work I’ll end up with both!

I'm planning on reporting back after I get this done this weekend. 

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

@pturneruk can you check the sequences folder inside your CinemaVision content folder to make sure your sequence files have the proper names? Then, please update to the latest CV and untick match feature genre in CV's Trailers settings.

If it still doesn't work please post your logs.

Edited by rdsp

Share this post


Link to post
Share on other sites
  • 0

Thank you so much for all your work! 

Do you still have to edit the files manually or are these changes baked into the newest version you uploaded? 
It kind of works, but it's slow to start and audio bumpers just plays a random a audio bumper, and not choosing the right one after filenames.

Edit: after reinstall of CV I get this error: No Features, No movies are in the Queue. Please queue some features and try again.

NVM; Got it working again, still a little slow, but after a fresh reinstall everything works again ! :)

 

Edited by julianb
removed log, it's fixed

Share this post


Link to post
Share on other sites
  • 0
34 minutes ago, julianb said:

Thank you so much for all your work! 

Do you still have to edit the files manually or are this changes baked into the newest version? 
It's works, but it's slow to start and audio bumpers just plays a random a audio bumper, and not choosing the right one after filenames.

The latest version fixes playback issues.
What platform are you on? From my experience if kodi displays audio format beneath the movie's duration CV will pick up the correct format else it will play the fallback audio bumper.

Share this post


Link to post
Share on other sites
  • 0

Just confirming with the latest version rdsp submitted it is working well on Windows 10 with 18.3

A BIG THANK YOU!!!!

Share this post


Link to post
Share on other sites
  • 0
16 hours ago, leejk said:

Just confirming with the latest version rdsp submitted it is working well on Windows 10 with 18.3

A BIG THANK YOU!!!!

Awesome.  That's great to hear.

Share this post


Link to post
Share on other sites
  • 0
17 hours ago, leejk said:

Just confirming with the latest version rdsp submitted it is working well on Windows 10 with 18.3

A BIG THANK YOU!!!!

I'm just curious - did you have to do this from a fresh install of Kodi?

On my Windows 10 desktop, I upgraded Kodi from 18.0 to 18.3. I completely uninstalled all CV components and went into the Kodi Directory to make absolutely sure everything was deleted. Reinstalled CV from rdsp's fixes and then added the content menu component.

Using an existing set of sequences, mine still just hangs at a black screen after the trivia. The same old "a window is asking for focus and it can't" error that I've been getting from the beginning.

Kodi 18.0 continues to work without issue. I feel like I must be missing a step, but I sure can't figure out what it is - and I'm hesitant to push it out to my Shield until I see it working on my PC first. It's just a lot of work to get everything functioning correctly on 18.0 because it has some bugs itself. So I don't want to wipe out all of that work.

Any input would be appreciated. I'd love for this to be a fix, but, so far, I'm not seeing it on my end - again, given the successes here, it must be something on my end, just not sure where to start.,

Edited by ELPTheater

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, ELPTheater said:

I'm just curious - did you have to do this from a fresh install of Kodi?

On my Windows 10 desktop, I upgraded Kodi from 18.0 to 18.3. I completely uninstalled all CV components and went into the Kodi Directory to make absolutely sure everything was deleted. Reinstalled CV from rdsp's fixes and then added the content menu component.

Using an existing set of sequences, mine still just hangs at a black screen after the trivia. The same old "a window is asking for focus and it can't" error that I've been getting from the beginning.

Kodi 18.0 continues to work without issue. I feel like I must be missing a step, but I sure can't figure out what it is - and I'm hesitant to push it out to my Shield until I see it working on my PC first. It's just a lot of work to get everything functioning correctly on 18.0 because it has some bugs itself. So I don't want to wipe out all of that work.

Any input would be appreciated. I'd love for this to be a fix, but, so far, I'm not seeing it on my end - again, given the successes here, it must be something on my end, just not sure where to start.,

Have you downloaded the latest version? After installing you should see v1.1.1a10 installed.

That really shouldn't be happening but if it still hangs please post your log. Also the error is unrelated to CV. Enabling debug will show more information on what's actually happening.

Share this post


Link to post
Share on other sites
  • 0
3 minutes ago, rdsp said:

Have you downloaded the latest version? After installing you should see v1.1.1a10 installed.

That really shouldn't be happening but if it still hangs please post your log. Also the error is unrelated to CV. Enabling debug will show more information on what's actually happening.

Yes, v1.1.1.a10.

I'll post the log when I get home tonight - but it's not very enlightening - it shows everything loading fine, then after the trivia it's that "unable to focus window" error - then I have to force quit - so there isn't anything further.

Share this post


Link to post
Share on other sites
  • 0
1 minute ago, ELPTheater said:

Yes, v1.1.1.a10.

I'll post the log when I get home tonight - but it's not very enlightening - it shows everything loading fine, then after the trivia it's that "unable to focus window" error - then I have to force quit - so there isn't anything further.

Is debugging enabled in CV and still shows nothing else after trivia hanging?

What kind of video bumper do you have after trivia?

Edited by rdsp

Share this post


Link to post
Share on other sites
  • 0
3 minutes ago, rdsp said:

Is debugging enabled in CV and still shows nothing else after trivia hanging?

What kind of video bumper do you have after trivia?

Debugging is enabled (which I believe your new version defaults it?)

The bumper is from the Edison series and I point to the file directly.

Stand by, I'm going to see if I can remote into my home PC and upload the log...

Share this post


Link to post
Share on other sites
  • 0

Let me know - the only error I see is something about trying to load some PNG - "Public Broadcasting - something or other" - No idea what that is - I am not pointing to anything like that in my sequence.

kodi1.png

kodi2.png

kodi3.png

kodi.log

Share this post


Link to post
Share on other sites
  • 0
28 minutes ago, ELPTheater said:

Let me know - the only error I see is something about trying to load some PNG - "Public Broadcasting - something or other" - No idea what that is - I am not pointing to anything like that in my sequence.

kodi1.png

kodi2.png

kodi3.png

kodi.log

Have you changed the default fade duration for the end of trivia? Can you use the default value and try? Just to dismiss some possible weird behavior

Share this post


Link to post
Share on other sites
  • 0

Will do, I'll report back.

7 minutes ago, ELPTheater said:

Will do, I'll report back.

Well, I'll be a....

You nailed it. As soon as I set trivia back to it's defaults, it took right off... what the heck.

I'm still letting the sequence play, but it sure looks like that was it.

If it errors out any other point, I'll let you know.

So do you think this is something you could figure out how to fix, or will I need to stay with the default transitions time when I move this to my Shield?

============================

Just to update - full sequence played, including light cues - no issues all the way to the end on 18.3 with 1.1.1a10 on a Windows 10 PC

I'll push it out to my Shield and make the change to the trivia, unless you think this is something you could update and fix - in which case, I'll wait for the fix and test it for you.

Thanks rdsp - you really should be getting some developer coin for this...

Edited by ELPTheater
Update

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, ELPTheater said:

Will do, I'll report back.

Well, I'll be a....

You nailed it. As soon as I set trivia back to it's defaults, it took right off... what the heck.

I'm still letting the sequence play, but it sure looks like that was it.

If it errors out any other point, I'll let you know.

So do you think this is something you could figure out how to fix, or will I need to stay with the default transitions time when I move this to my Shield?

============================

Just to update - full sequence played, including light cues - no issues all the way to the end on 18.3 with 1.1.1a10 on a Windows 10 PC

I'll push it out to my Shield and make the change to the trivia, unless you think this is something you could update and fix - in which case, I'll wait for the fix and test it for you.

Thanks rdsp - you really should be getting some developer coin for this...

It's actually because of the way I've implemented the changes to the code in order to support the newer versions of kodi, so kind of my fault :S 

The changes to how kodi now plays videos were massive and timing is essential, that's why CV wouldn't work. Trivia unfortunately suffers from the same and taking to long to change from Trivia to a video bumper will result in an error.


Glad its working tho!

Edited by rdsp

Share this post


Link to post
Share on other sites
  • 0
Just now, rdsp said:

It's actually because of the way I've implemented the changes to the code in order to support the newer versions of kodi, sooo kind of my fault xD
Glad its working tho, I'll see if I can fix it!

Great - let me know. I'll hold off on the Shield implementation then and I can test it fully there whenever you're ready. If you can't figure it out, just let me know and I'll move forward - I'm looking forward to FINALLY having 18.3 working - 18.0 has a bug that prevents screen aspects from being saved, so I have to correct that every time I start a movie currently. 18.3 seems to have corrected that - but it's worth the hassle to keep CV working, so I just put up with it (until now - hopefully!)

Thanks again - you've been a real blessing to this community. I think if you're here and you use this add-on, it's because you really appreciate the cinema experience - and to have this back up and working is wonderful.

Now, someone just needs to figure out how to keep the website working before the domain expires!

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

So, I just replaced LibreELEC with CoreELEC on my Odriod since it has better support.  Starting from scratch and I'm up to installing CV.  Looks like there's been a couple of revisions since I last downloaded.  Where's 1.1.1a10?  I only see a download for a9.

Share this post


Link to post
Share on other sites
  • 0
6 hours ago, OTA said:

So, I just replaced LibreELEC with CoreELEC on my Odriod since it has better support.  Starting from scratch and I'm up to installing CV.  Looks like there's been a couple of revisions since I last downloaded.  Where's 1.1.1a10?  I only see a download for a9.

It is the same link, the file has been updated however

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
14 hours ago, OTA said:

Where's 1.1.1a10?  I only see a download for a9.

That was my fault.  I have updated the file to state that it is 1.1.1a10.

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Thanks guys.  I'll play with it tomorrow and will hopefully be able to report good things.  Looking forward to it!

Share this post


Link to post
Share on other sites
  • 0
13 hours ago, OtisPresley said:

I have been testing this with Kodi 18.4, and so far so good! Thanks for all the hard work! 

Wonderful.

And yes, many thanks to @rdsp for all the work to get CV running again.

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
On 8/28/2019 at 7:53 PM, ELPTheater said:

Great - let me know. I'll hold off on the Shield implementation then and I can test it fully there whenever you're ready. If you can't figure it out, just let me know and I'll move forward - I'm looking forward to FINALLY having 18.3 working - 18.0 has a bug that prevents screen aspects from being saved, so I have to correct that every time I start a movie currently. 18.3 seems to have corrected that - but it's worth the hassle to keep CV working, so I just put up with it (until now - hopefully!)

Thanks again - you've been a real blessing to this community. I think if you're here and you use this add-on, it's because you really appreciate the cinema experience - and to have this back up and working is wonderful.

Now, someone just needs to figure out how to keep the website working before the domain expires!

I haven't had the time to properly test it but it I've been able to change the fade duration and it's working so it could be erratic behaviour on your CV. That said, I've had reports of CV working on Shield and some where the context menu sometimes fails. If you want to give it a go, it would be great to have you report back. If you don't want to risk it, it's best to wait until the context menu is worked on but that could take a while. 
Also, I now believe that the domain and content on this website should be safe :)

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, rdsp said:

I haven't had the time to properly test it but it I've been able to change the fade duration and it's working so it could be erratic behaviour on your CV. That said, I've had reports of CV working on Shield and some where the context menu sometimes fails. If you want to give it a go, it would be great to have you report back. If you don't want to risk it, it's best to wait until the context menu is worked on but that could take a while. 
Also, I now believe that the domain and content on this website should be safe :)

So a couple of things. The issue with the trivia was on a Windows 10 PC - not the Shield. And as soon as I reset the module to all defaults - if worked. Now, I could manipulate the fade duration and see what happens. I still remember the settings that were “bad.”

In regards to the Shield, I can wait for the context menu - anyone who is still involved with CinemaVision has plenty of patience - so that’s no biggie. That said, I may go ahead and give it a go - with ADBLink it’s short work to restore if it just doesn’t function. 

Glad to hear about the domain and content - anything you’d like to share with the rest of the class? ;)

Share this post


Link to post
Share on other sites
  • 0

I am on Kodi 17.6 DSPlayer and I am experiencing the issue where a non-terminating black screen occurs at the end of a trivia slideshow. My log file is attached.

kodi.log

Edited by Hifihedgehog

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

About Us

CinemaVision began in 2014 as a collaboration to create content for use with your home theater, offering movie trivia slides and video bumpers. It has since grown to be THE PREMIER WAY to create and customize your preshow experience. Download the CinemaVision add-on for Kodi today from the official Kodi repository, and easily create a sequence of trivia, videos, trailers, home automation triggers and more that will bring the experience of a movie theater straight to your screen!

×

Important Information

By using this site, you agree to our Guidelines and Terms of Use.