- Jun 3, 2019
- 11
- 0
It seems adding 'images/video/file_name.webm' fixed the issue. Despite the fact that standard images don't require you to specify the file location, it seems videos do. Even though the renpy movie page doesn't specify you need to. It's possible that most people don't have to specify the file location and it's just a weird issue for me alone.
Also, for those who do this and still have the same issue, like I did, don't capitalize the folder name. "images/Video/file_name.webm" will not work. Or at least it didn't for me.
You don't need to add a silent audio track. That has been fixed. So don't waste time messing with ffmpeg unless you're using .mov files or whatever and are following the instructions for using side_mask on the documentation.
May as well include a link to the documentation I'm talking about:
******IGNORE THIS*******
The following is evidence on the amount of time I spent on something with a simple solution. fml
I've been trying to get this to work for a while now and I thought I'd ask for help. I'm using the video export mod for koikatsu, and every time I've tried to get the code to work, the video won't play. No crash, no nothing. It's like it doesn't even realize the video exists.
Right now, a video called test7 should be playing. But it's not. You can probably guess why it's called test7 but I've gone over double the files. The relevant code I'm using is this:
image test = Movie(play="video/test7.webm")
scene test
Right now the 'test = movie' bit sits right above the 'scene test', but I've also tried putting it before the label and in a different file entirely where all the names are. I've also tried including the size, the framerate, using ' $ renpy.movie_cutscene("test7") ' from a forum post in 2011, putting it in different folders, removing the file location. using show instead of scene and adding 'channel = movie' .
define config.has_sound = True
define config.has_music = True
define config.has_voice = False
I've read that this can cause issues, so I've copied it from my options file, but for most of my tests all of them have been set to true. Test 7 is in images/video in my game folder, in case anyone is wondering.
These are the parameters for exporting the file. I've tried MP4 as well as the quality settings 15, 20 and 3. All of which settings copied from screenshots of people who got it working, but no luck. I've tried VP8 and the framerates 60 and 24. I've also tried different lengths of time (10, 5, 3, 2 and 1 seconds) but I doubt that'd matter.
I also heard that having no audio track causes problems but also that it's been fixed. Still, I learnt how to use ffmpeg and put a silent audio track on 97% of my tests. I've tried opus, libopus, vorbis and libvorbis but still nothing.
ffmpeg -i test.webm -f lavfi -i anullsrc -vcodec copy -strict -2 -acodec opus -shortest test7.webm
This was the command line I used for adding silent audio tracks to the files. Just changing the codec, input and output at various points throughout my testing. The strict -2 is just so I can use opus and vorbis as they're experimental. Not needed for libopus and libvorbis
I've also heard that I can play an animation from individual images, but I need the video to play as a scene so it loops in the background while you're reading dialogue. I'd prefer to get the video working, but if someone can tell me how to achieve this with the images instead I'll be eternally grateful.
Also, for those who do this and still have the same issue, like I did, don't capitalize the folder name. "images/Video/file_name.webm" will not work. Or at least it didn't for me.
You don't need to add a silent audio track. That has been fixed. So don't waste time messing with ffmpeg unless you're using .mov files or whatever and are following the instructions for using side_mask on the documentation.
May as well include a link to the documentation I'm talking about:
You must be registered to see the links
******IGNORE THIS*******
The following is evidence on the amount of time I spent on something with a simple solution. fml
I've been trying to get this to work for a while now and I thought I'd ask for help. I'm using the video export mod for koikatsu, and every time I've tried to get the code to work, the video won't play. No crash, no nothing. It's like it doesn't even realize the video exists.
Right now, a video called test7 should be playing. But it's not. You can probably guess why it's called test7 but I've gone over double the files. The relevant code I'm using is this:
image test = Movie(play="video/test7.webm")
scene test
Right now the 'test = movie' bit sits right above the 'scene test', but I've also tried putting it before the label and in a different file entirely where all the names are. I've also tried including the size, the framerate, using ' $ renpy.movie_cutscene("test7") ' from a forum post in 2011, putting it in different folders, removing the file location. using show instead of scene and adding 'channel = movie' .
define config.has_sound = True
define config.has_music = True
define config.has_voice = False
I've read that this can cause issues, so I've copied it from my options file, but for most of my tests all of them have been set to true. Test 7 is in images/video in my game folder, in case anyone is wondering.
These are the parameters for exporting the file. I've tried MP4 as well as the quality settings 15, 20 and 3. All of which settings copied from screenshots of people who got it working, but no luck. I've tried VP8 and the framerates 60 and 24. I've also tried different lengths of time (10, 5, 3, 2 and 1 seconds) but I doubt that'd matter.
I also heard that having no audio track causes problems but also that it's been fixed. Still, I learnt how to use ffmpeg and put a silent audio track on 97% of my tests. I've tried opus, libopus, vorbis and libvorbis but still nothing.
ffmpeg -i test.webm -f lavfi -i anullsrc -vcodec copy -strict -2 -acodec opus -shortest test7.webm
This was the command line I used for adding silent audio tracks to the files. Just changing the codec, input and output at various points throughout my testing. The strict -2 is just so I can use opus and vorbis as they're experimental. Not needed for libopus and libvorbis
I've also heard that I can play an animation from individual images, but I need the video to play as a scene so it loops in the background while you're reading dialogue. I'd prefer to get the video working, but if someone can tell me how to achieve this with the images instead I'll be eternally grateful.
Last edited: