Page 1 of 1

Video not Playing

Posted: Fri Aug 24, 2018 9:28 pm
by Ragnos
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

Re: Video not Playing

Posted: Sat Aug 25, 2018 1:29 am
by Per K Grok
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.

Re: Video not Playing

Posted: Sat Aug 25, 2018 3:12 am
by Ragnos
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