Video not Playing

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Ragnos
Regular
Posts: 60
Joined: Thu Oct 27, 2016 3:22 pm
Contact:

Video not Playing

#1 Post by Ragnos » Fri Aug 24, 2018 9:28 pm

I've pretty much done everything I can think of to try and get this to work.
I've used different codecs in different containers, last one I did was VP9 in an MKV Container. WebM, OGV, AVI, tried all those, used a silenced OGG audio track in the video; everything I could find in the forum and elsewhere. So as a last resort, I've come here to see if you guys can help me out.

I've tried different ways of playing the file, but this was the last one I attempted to use.

Code: Select all

image movie = Movie(size=(1920, 1080), xalign=0.5, yalign=0.5)

Code: Select all

label splashscreen:
    scene black
    show movie
    with dissolve
    play movie "movies/HizorGames.mkv"
I've also used this code with the video in the main directory

Code: Select all

$ renpy.movie_cutscene("Hizorgames.mkv")
I've linked the video files to the post. The current .MKV and the original .AVI.

Original AVI File:
https://drive.google.com/open?id=11LcSx ... LWL3HvjIGS

Current MKV File:
https://drive.google.com/open?id=1f0oC4 ... dVJpuRxmX9
Image

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Video not Playing

#2 Post by Per K Grok » Sat Aug 25, 2018 1:29 am

Ragnos wrote:
Fri Aug 24, 2018 9:28 pm
I've pretty much done everything I can think of to try and get this to work.
I've tried this and it ran without problem

Code: Select all

$ renpy.movie_cutscene("movies/HizorGames.mkv")

I noticed that you had a small 'g' in calling Hizorgames.mkv and I thought that could be the trouble. But when I tried with that spelling it ran as well.


I've also tried

Code: Select all

image logo = Movie( play="movies/HizorGames.mkv")

-----

show logo
pause
and that worked as well

'pause' is to stop the code to jump to the next instruction. The show method don't wait for the movie to have finished before moving on.

User avatar
Ragnos
Regular
Posts: 60
Joined: Thu Oct 27, 2016 3:22 pm
Contact:

Re: Video not Playing

#3 Post by Ragnos » Sat Aug 25, 2018 3:12 am

I've tried this and it ran without problem
I tried this with a little re-arranging and again it didn't work.

Then that means it must be something else preventing it from playing properly, at least that narrows it down a little.
Could it be because it's in the splash screen label?

Edit:
So I decided to go back to a very early version of the game and try

Code: Select all

$ renpy.movie_cutscene("movies/HizorGames.mkv")
and it didn't work there either.
So I made an entirely new project copy/pasted the code and the files and it worked. As of right now, I'm not sure what's wrong in the main game.

Edit2:
So since the dummy project worked I decided to start moving files to the other early version of my game to find which file that the problem lies in. Eventually, I found out that the problem was in the Options.rpy file. After searching around I still have yet to figure out what exactly caused the problem to begin with since there is hardly any difference between the two other than version numbers and game name.
Still thanks for your help. I've spent two days trying to figure this out. XD
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot]