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
  • 7
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

@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
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 have it running on a Win10 PC on Kodi 18.4 and it runs through my whole sequence including Philips Hue actions. No problem. 
 

Haven’t been brave enough to move it onto my Shield yet - which is still running 18.0 with the original dev version. 

Share this post


Link to post
Share on other sites
  • 0

Is version 1.1.1a11 (posted by Ragnarok), an update to 1.1.1a10? That is, does it include all the fixes from a10? Or should we consider a separate branch for systems with a Kodi version below 8.1?

Share this post


Link to post
Share on other sites
  • 0
14 minutes ago, hegemon13 said:

Is version 1.1.1a11 (posted by Ragnarok), an update to 1.1.1a10? That is, does it include all the fixes from a10? Or should we consider a separate branch for systems with a Kodi version below 8.1?

It is a separate branch.

Share this post


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

I have it running on a Win10 PC on Kodi 18.4 and it runs through my whole sequence including Philips Hue actions. No problem. 
 

Haven’t been brave enough to move it onto my Shield yet - which is still running 18.0 with the original dev version. 

Weird. I have same setup and it doesn’t work at all. Staying with a10 for now I guess.

Share this post


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

Weird. I have same setup and it doesn’t work at all. Staying with a10 for now I guess.

The only issue I ran into was that I had changed the transition times in my trivia module. When I put them back to defaults it all started working. 

Share this post


Link to post
Share on other sites
  • 0

I’ve not tweaked transition times. Other than wiping out my settings not sure what else would be a factor.

I have noticed that trailers are a little off. For example in my sequence I have it set to play 1 trailer from the local CV Content folder, 2 from the KODI DB, and 2 from Apple. All set to random. Every single time it will skip playing a trailer in the CV Content folder, play the same trailer from the KODI DB, and then play random ones from Apple. It will play 5 total though, as the sequence calls for. Are you seeing that in the latest dev build?

i guess I need to figure out why I can use the dev build, but not getting much feedback from developer.

 

thx

Edited by leejk

Share this post


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

anybody having any issues with CV playing the wrong audio bumpers? I noticed now my atmos and DTS-X movies no longer play the correct audio bumper even with the indicator being in the file name. Any thoughts?

Can you post logs?

Share this post


Link to post
Share on other sites
  • 0
52 minutes ago, dyhometheaterguy said:

I know this is gonna sound like a stupid question but how do I do that? lol

Open CV settings and in Advanced Settings make sure Debugging is turned on.

Open a movie with CV, if it fails to choose the right audio bumper go back to CV settings and in Advanced Settings choose Upload Log to Pastebin. You can post your link here.

Share this post


Link to post
Share on other sites
  • 0

Hi, I'm not seeing a context menu on both my Shield and Vero 4K+ box with Kodi 18.4. Is that the hit and miss which was mentioned before? Is there any other way to play a movie with the Cinemavision sequence in case I cannot get the context menu to work?

Edited by Fisherman456

Share this post


Link to post
Share on other sites
  • 0
7 minutes ago, Fisherman456 said:

Hi, I'm not seeing a context menu on both my Shield and Vero 4K+ box with Kodi 18.4. Is that the hit and miss which was mentioned before? Is there any other way to play a movie with the Cinemavision sequence in case I cannot get the context menu to work?

Make sure context menu is properly installed by going to CV settings and install it.

Share this post


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

Make sure context menu is properly installed by going to CV settings and install it.

I noticed that I had to reboot the device first after install.

One thing I noticed is that by removing the line of code that involved the removal of the dummy file(s), I can no longer skip forward in the sequence. I think it was originally meant to create chapter indexes with the dummy files being a black mpeg video. I think there were ideas of having them replaced by jpeg files. Do you have any plans to restore that functionality?

Share this post


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

Open CV settings and in Advanced Settings make sure Debugging is turned on.

Open a movie with CV, if it fails to choose the right audio bumper go back to CV settings and in Advanced Settings choose Upload Log to Pastebin. You can post your link here.

I think I figured out what was going on, I first noticed on movies that had DTS-X that the wrong bumper was playing. First, I had my files named with DTSX instead of DTS-X which caused problems so I when back and changed it and it still was playing the wrong one. Then I played the movie, went back and used Cinemavision and it played the correct audio bumper. I believe it has something to do with the fact that I scrape all my movie metadata with a Media Manager. 

 

2 hours ago, Fisherman456 said:

Hi, I'm not seeing a context menu on both my Shield and Vero 4K+ box with Kodi 18.4. Is that the hit and miss which was mentioned before? Is there any other way to play a movie with the Cinemavision sequence in case I cannot get the context menu to work?

Funny this just happened with me on my Nvidia Shield where I can't pull up any context menu. Is this a known issue that just happened?

Share this post


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

@Fisherman456 @dyhometheaterguy have you updated to 1.1.1a11? There should be no need to delete or change code atm.

@rdsp. I updated initially on my Shield to 1.1.1a11, but noticed still the black screen. When I then removed the lines of code related to the dummy file in the playVideos function, it worked again but is essentially 1.1.1a10 I believe. On my Vero 4K+ I decided to just install 1.1.1a10.

Share this post


Link to post
Share on other sites
  • 0

@Fisherman456 Ok I'll look into a11 and try to improve it. I use a vero 4k and with the newer version there is a chance I'll get a black screen once every 10 plays or so.
1.1.1a11 does fix problems with CV's theme which include the context menu. It still won't open sometimes on a lower powered device but when this happens no other addon works.

Share this post


Link to post
Share on other sites
  • 0

I could use some assistance. I am running Kodi 18.4 on a new (2019) Nvidia Shield TV PRO, I installed CV 1.1.1a11. My CV database and media files are on a WIN 10 machine. I load CV from the video information screen of the Rapier skin (I don't have the context menu installed) and when I try to start CV I get a black screen for a few seconds then dumped back to the movie list. 

Pastebin Kodi Log

Thanks

Share this post


Link to post
Share on other sites
  • 0
51 minutes ago, 1Epitaph said:

I could use some assistance. I am running Kodi 18.4 on a new (2019) Nvidia Shield TV PRO, I installed CV 1.1.1a11. My CV database and media files are on a WIN 10 machine. I load CV from the video information screen of the Rapier skin (I don't have the context menu installed) and when I try to start CV I get a black screen for a few seconds then dumped back to the movie list. 

Pastebin Kodi Log

Thanks

Download 1.1.1a12. It fixes an issue with devices like the Shield. 

 

Share this post


Link to post
Share on other sites
  • 0

Thanks, I will give it a try again. I started with a10, Which I have working on my Win10 machine. When it failed, I came here and grabbed a12 but it did the same. As I said, Thanks and I'll give it a whirl and return with log if it doesn't work out.

 

CORRECTION/UPDATE: I believe I figured out my issue, after digging through the log. I was loading the sequences that were created on my Win10 machine, source links remain the same but I have to edit the sequences to include the share username and password... on every source.  *(Slaps forehead)*

I am still getting used to using a streamer vs my Win10 machine for Kodi.

Thanks again @rdsp

 

Edited by 1Epitaph

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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