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

  • 1
16 hours ago, ELPTheater said:

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? ;)

The context menu right now is a bit of a hit or miss. Not sure if it's related to Kodi as when I have problems with the context menu I can't run any other addon through context. Well, Ragnarok is still looking for a new developer so I figure they should be keeping an eye on things!

Share this post


Link to post
Share on other sites
  • 1
26 minutes ago, rdsp said:

The context menu right now is a bit of a hit or miss. Not sure if it's related to Kodi as when I have problems with the context menu I can't run any other addon through context. Well, Ragnarok is still looking for a new developer so I figure they should be keeping an eye on things!

Well, look at you with your "Developer" badge...

I'll give it a go on the Shield when I get my theater back in order - did a little shuffling of equipment, so everything is in pieces in the middle of the room until I rearrange.

I am certainly glad to hear about Ragnarok - it's the first word that he's actively keeping an eye here!

Thanks rdsp - I honestly think that with you stepping up to help out, it's brought this project back to life!

  • Like 2

Share this post


Link to post
Share on other sites
  • 1
1 hour ago, Hifihedgehog said:

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

The latest version of CV shouldn't work with any Kodi below 18.1 :/

Share this post


Link to post
Share on other sites
  • 1
33 minutes ago, Hifihedgehog said:

What is the last version to support Kodi DSPlayer/17.6? I use MadVR which is why I still run it.

Apart from the version in Kodi's repo, 1.1.1a8 should also work.

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0

This did not work for me in 18.3 on the NVIDIA Shield. I completely removed my old Kodi and started fresh. After removing the above line, it would play the first bumper and trivia but just a blank screen after that. I ended up removing that and going back to 17.6. I am glad it is working for some though.

Share this post


Link to post
Share on other sites
  • 0

Finally! Thank you @rdsp! This worked for me on my Minix U9-H with CoreELEC.

@OtisPresley that was exactly what happened for me at first. It would play one video, then black. I went into the addon and loaded the sequence I had already made. I saved it again without making any changes. CinemaVision then worked on the same movie I tried earlier. Perhaps it needed to remake the sequence to be compatible with the newly installed development release.

Thanks again. It's nice to have this working.

Share this post


Link to post
Share on other sites
  • 0

Nice!  Thanks for the effort rdsp.  I'll try this out in the next few days and see if it works with my Odriod with Libreelec.

Edited by OTA

Share this post


Link to post
Share on other sites
  • 0

Sorry to hear that @OtisPresley 

I'll try testing with Trivia on my sequences. It could also be because of Android. I'll try to test that too.

Meanwhile, anyone trying this on android please report back.

If it doesn't work, logs are greatly appreciated. Please enable debugging in CV's settings first.

Share this post


Link to post
Share on other sites
  • 0

I had an opportunity to make the edits @rdsp provided on LibreELEC on an Odriod C2 and it's working... mostly.  I don't use any kind of trivia, etc. as my kids aren't patient enough for that, but I do use the video bumpers.  I went into CV and tested the sequences from the add on and they worked, most of the time.  I then tried several different movies and again, most of the time it worked.  It seems sometimes the sequence will get hung.  I can tell as my receiver defaults to stereo and the cvaction files I have to control my lights don't fire.  Either the next bumper doesn't start or the main feature won't start.  I can press stop, then start the movie again in cinema mode and it works fine.  So, with that being said, at least it works now, though maybe not 100%, which is better than it was before.  Thanks rdsp for the quick fix.  I'm sure everybody here appreciates it.

Edited by OTA

Share this post


Link to post
Share on other sites
  • 0

Running on Windows 10 here, fix doesn't work unfortunately. I have several issues:

  1. Entire CV interface is tiny, except add-on settings dialog. Was not an issue before KODI 18
  2. When CV Queue dialog opens, movie to play is listed but Play button is grayed out, and dialog does not except any keyboard inputs except backspace

Share this post


Link to post
Share on other sites
  • 0

Excuse an ignorant question, is there anyway I can do this on Kodi installed on my Xbox one? I dont have the kind of network access where I can see these files. I could probably find it within Kodi, but then I couldn't cut and paste the code??

Share this post


Link to post
Share on other sites
  • 0
On 7/27/2019 at 1:18 PM, pturneruk said:

Excuse an ignorant question, is there anyway I can do this on Kodi installed on my Xbox one? I dont have the kind of network access where I can see these files. I could probably find it within Kodi, but then I couldn't cut and paste the code??

Maybe you could find a text editor addon for Kodi (It probaby exists) and then you will be able to edit the code within Kodi

Share this post


Link to post
Share on other sites
  • 0

Ok I did not have the dev version correctly installed. Got that sorted out and made the code change, but now it just shows a blank screen. I've reset the content database. I don't see any errors in the log file. Running 18.3 on Windows 10... please post if you've had success with this on the same setup. Hopefully it is something simple still... really miss this add-on.

thx

Share this post


Link to post
Share on other sites
  • 0

@leejk @caseguy enable debugging in CinemaVision advanced settings, play a movie with CV and post the log.

Also @leejk did you delete experience.pyo after saving the file with the code changes? 

Edited by rdsp

Share this post


Link to post
Share on other sites
  • 0

I have created a new version of the CV add-on to include the change by @rdsp.  I will update the file when other issues are resolved.

 

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Hi,

I did delete the *.pyo files. Weird thing is, it starts playing trivia only if I turn on KODI's debug mode. It will play the initial intro video bumper, then the trivia. But after trivia finishes it goes to a black screen. I looked at the logs and it thinks it is playing the next video bumper and theater into videos, but it is instead just showing a blank screen.

If I turn off debug mode, nothing plays. Evidently there is some video related issue maybe? Probably a deeper issue than what I can resolve.

Edited by leejk

Share this post


Link to post
Share on other sites
  • 0

I had high hopes.  I followed steps, tested the sequence and it went through perfectly(1 intro, 2 trailers streamed from iTunes)!  Then when I tried it through the context menu.  Nothing.  Noticed pyo files were created.  Deleted them.  Nothing.  Uninstalled and re-installed re-set everything up.  Nothing.  More pyo files.  Got my intro to play but then no trailers played.

So it seems like it is a step in the right direction but still some ghosts in the shell.  I may seeif I can't turn on debugging and track it down.

Thanks again!

Share this post


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

@leejk @caseguy enable debugging in CinemaVision advanced settings, play a movie with CV and post the log.

Also @leejk did you delete experience.pyo after saving the file with the code changes? 

heres the log 

kodi.log

Black screen. Nothing plays. it will play the trivia if I use a sequence that has it, but then wont play any trailer at all. ESC takes me right out to the previous screen. These sequences all worked on 18 and 17.6 . I used a different pc that still had 17.6 on it and they all worked like a charm. However, my main theater screen has 18.2, this did not work. Downgraded to 18.1, still a black screen. I removed and reinstalled the new fix, totally cleaned kodi of the traces of the original addon, still doesnt work :(

Share this post


Link to post
Share on other sites
  • 0

Update- If I change the sequence portions to "random" the sequence will play. It will not, however, allow me to specify which video/short/intro etc that I want to run. in that sequence. I had made tons of theater specific sequences, AMC, UA, etc to make it look like it would in that kind of theater. It did previously work. Now it does not. So now it works, but only on random 

2 hours ago, elfman said:

I had high hopes.  I followed steps, tested the sequence and it went through perfectly(1 intro, 2 trailers streamed from iTunes)!  Then when I tried it through the context menu.  Nothing.  Noticed pyo files were created.  Deleted them.  Nothing.  Uninstalled and re-installed re-set everything up.  Nothing.  More pyo files.  Got my intro to play but then no trailers played.

So it seems like it is a step in the right direction but still some ghosts in the shell.  I may seeif I can't turn on debugging and track it down.

Thanks again!

Do any of the videos in your sequence point to SPECIFIC files? Mine all do and when I set one to "random" instead of the bumper/commercial (I have old commercials from theaters in my sequences) the sequence played. 

Share this post


Link to post
Share on other sites
  • 0

@caseguy Thanks for posting your log, I think I see the problem, I'll run some tests and post here after.

Also, I do have both random videos and specific paths for some bumpers and its working.

Thanks

 

 

Edited by rdsp

Share this post


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

@caseguy Thanks for posting your log, I think I see the problem, I'll run some tests and post here after.

Also, I do have both random videos and specific paths for some bumpers and its working.

Thanks

 

 

UPDATE- I discovered that if I turn on "debug" in the CV addon settings, CV will work. There's a few issues though. 

1) To access the sequence editor,I have to turn on CV using the context menu. Most of the time it wont run if I click on it directly.  There were a few times that it crashed kodi entirely when trying to run it normally. 

2) At times the launcher wont appear at all. Usually this is when you attempt to add multiple movies to the que

3) After running it a bunch of times (10) it worked about 7 of 10 times. So there still are times where I get a black screen. 

Share this post


Link to post
Share on other sites
  • 0

Yes, turning on debug will increase your chances of getting CV to work. 

Thanks @caseguy for figuring it out.

1.1.1a9 was updated to have that enabled by default.

 

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

https://pastebin.com/3YnX82Gz 

my Kodi Log...

randomly works perfectly ... What im currently doing is removing all my files and adding just ones ive see working on one of its perfect runs and keep playing it to see if it crashes im curious to see if its a file that it doesn't  like anymore ... Thanks for the great work!!!!

Share this post


Link to post
Share on other sites
  • 0

Mine is part working, although I believe there to be additional issues using Xbox One.

So if I manually queue a film and go into the main CV program and run a sequence it will run video bumpers and trailers, but not ratings or audio format . What I believe is happening is it finds the content I'm directly pointing to in the sequence but when trying to set up CV, a scrape of the content folders does not pick up any content (path is set correctly though).

Using the CV context menu just delivers a random trailer plus film, no sequence.

I'm using the latest 1.1.1a9 and the most recent context download.

Share this post


Link to post
Share on other sites
  • 0

@pturneruk Can you enable debug in kodi settings, use the context menu to run CV and then upload the log via CinemaVision - Settings - Advanced - Upload Log?

@MartinsVision There is a bug where sometimes CV will fetch the wrong file path and hang thus my fix will only make CV run most of the times :S 

Also, having Trivia in a sequence will make CV skip the first video after Trivia ending. This should be fixed in the next few days.

Edited by rdsp
  • Like 2

Share this post


Link to post
Share on other sites
  • 0

So happy this is actively being worked through. I have missed CinemaVision since going to Kodi 18. I will give this a try in the next day or so and provide feedback.

Share this post


Link to post
Share on other sites
  • 0

Unfortunately cant post the log. Weirdly once the debug is on and I go through the motions, as soon as I open CV it comes up with an error that the sequence cant be found, and it crashes. Without debug on it finds the sequence...... weird.

Share this post


Link to post
Share on other sites
  • 0
On 8/6/2019 at 2:39 PM, rdsp said:

Also, having Trivia in a sequence will make CV skip the first video after Trivia ending.

I simply added a 2-second black video to assist me with that.  I can live with a 2-second delay since the rest of the sequence seems to work fine after that.  Glad it's going to get fixed though!

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Friffy1 said:

I simply added a 2-second black video to assist me with that.  I can live with a 2-second delay since the rest of the sequence seems to work fine after that.  Glad it's going to get fixed though!

can you share the black blank video so we dont have to make one ?? THANKS !!

Edited by MartinsVision
auto correct

Share this post


Link to post
Share on other sites
  • 0

I got it working on a shieldTV!  had to fully uninstall the old CV. then i dropped the zip file on my shield and used kodi's "install from zip". I then went through the normal setup. i did have to close it and reopen to get it to load content. 

SUPER HAPPY! Thanks to all who posted info!

Share this post


Link to post
Share on other sites
  • 0
On 8/12/2019 at 10:39 PM, freddoh said:

I got it working on a shieldTV!

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.

Share this post


Link to post
Share on other sites
  • 0
1 hour 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.

This new version should mitigate all play issues associated with 18.1+. You can install it and if it doesn't work install 1.1.1a8 again. The changes made to fix those issues do not change your sequences at all.
If you wish to be extra careful you can always try to install 18.3 on a separate folder or machine and install the new CV version there to try it out.

Edited by rdsp
  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Anyone use the new fix with actions? I have all kinds of lighting automation going on - and as with the previous poster - I spent a long time getting it stable in 18.0 (in my case on a Shield) - so I too am both hopeful and gun shy at the same time...

 

anyone who has any experience - id love to be reassured before taking the leap...

Edited by ELPTheater

Share this post


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

Anyone use the new fix with actions? I have all kinds of lighting automation going on - and as with the previous poster - I spent a long time getting it stable in 18.0 (in my case on a Shield) - so I too am both hopeful and gun shy at the same time...

 

anyone who has any experience - id love to be reassured before taking the leap...

More people confirming it working on a Shield would be great!

However I must say that installing this version will not break, delete or modify your sequences and in case you revert back to 1.1.1a8 your sequences will work normally given CV is properly set up.

Share this post


Link to post
Share on other sites
  • 0

rdsp -- Firstly, THANK you for investing your time in helping out with this beloved add-on for Kodi. Your work is most appreciated by everyone who enjoys using this program.

Secondly, alright - you've convinced me - I'm going to push it out this weekend - my primary sequence is insanely complex and I've spent tons of time throwing in home automation actions. All of that to say, I'll report back next week - if it works for me with my sequence on my Shield, that's a pretty good determination.

Wish me luck - I'll report back when I get it all settled. Thanks!

Share this post


Link to post
Share on other sites
  • 0

Please do report back. Again, it wont change your sequence but please backup your content folder and your CV addon folder on Kodi as it will make it easier for you if you have to downgrade!

Thank you for trying.

Good luck :)

Edited by rdsp

Share this post


Link to post
Share on other sites
  • 0

Here is the log file. Hope that helps identify the issue.

https://paste.kodi.tv/itixozajiq

This shows CV running from the context menu. I can get a sequence of sorts to run via the program itself as described in my post further up this thread.

 

And below a log trying to run a sequence in CV itself.

https://paste.kodi.tv/cemugibade

 

Edited by pturneruk

Share this post


Link to post
Share on other sites
  • 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

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.