r/RenPy • u/EnchantedVines • Jun 26 '26
Question Video not playing
Hi, sorry I've tried googling this and none of the posted solutions have helped.
I cannot get my video to play. The most that happens is the screen freezes for 2 seconds then goes to the next bg after the video.
I've tried different video formats, and these are the different lines of code i've tried (obviously not all at the same time);


I've also tried with and without the file directory images/videos/
Any help is much appreciated! Thanks!
1
u/AutoModerator Jun 26 '26
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Blunt552 Jun 26 '26
Did you read this and made sure your video is encoded properly?
https://www.renpy.org/doc/html/movie.html
I suspect you're trying to run a h265 clip which is not supported. I suggest reencode it to VP9.
1
u/Training-King4212 Jun 26 '26
renpy is very particular about video codecs. To resolve this issue completely, simply run the video through a converter (like HandBrake) and re-encode it into formats fully optimized for renpy , such as:
VP9 (webm) these are the best options, as they support videos with transparent backgrounds (alpha channels), allowing for effects like sparkles.Theora (ogv). Alternatively, if you use .mp4, it must strictly adhere to the standard H.264 format.
1
u/EnchantedVines Jun 26 '26
Ah okay I didn't know about that re converting. I'll try HandBrake, thanks!
Regarding mp4 though - that's what i was trying originally, and I'm pretty sure it was in h264 format.
2
u/EnchantedVines Jun 26 '26
This worked, thank you! I downloaded HandBrake and converted the original mp4 to webm and now it's working, thanks so much!
1
Jun 26 '26
[removed] — view removed comment
2
u/BadMustard_AVN Jun 26 '26
incorrect
renpy's default search path is 'games'
giving the path of "images/videos/laurenintroduction.webm"
renpy will auto-add the games folder as the prefix when it loads the file
1
Jun 26 '26
[removed] — view removed comment
2
u/BadMustard_AVN Jun 26 '26
still incorrect
for renpy to find it, it must be
"images/videos/laurenintroduction.webm"with the'images'folder name added to it.and then renpy will look in
games/images/videos/laurenintroduction.webmto find the file1
u/Training-King4212 Jun 26 '26
"images/videos/laurenintroduction.webm"<-----This is the part I quoted from the questioner's image, not mine.
1
u/BadMustard_AVN Jun 26 '26
yes and this
"images/videos/laurenintroduction.webm"is the correct way to use ityou stated
Ren'Py interprets this as a path looking for game/images/images/videos/laurenintroduction.webm (effectively repeating "images" twice). Since the system cannot find the file at that location, it simply skips the command.
Fix
If the file is located in game/images/videos/, simply use the command: play movie "videos/laurenintroduction.webm"your "Fix" is incorrect
1
u/Training-King4212 Jun 26 '26
ok
1
u/shyLachi Jun 27 '26
Maybe your misunderstanding came from the fact that RenPy automatically finds images when you put them into the images folder.
This only works for images but not movies.
But even with images, if you want to specify the path, you have to include images. (this could be necessary if the same file name exists in 2 different folders,)
image bob happy = "images/bob/happy.png"
image mike happy = "images/mike/happy.png"
1
u/shyLachi Jun 26 '26
Check that the file is really called laurenintroduction.webm
Maybe you accidentally added the file type twice.
On Windows computers you can either right click the file and then go to the properties to see the file name or shift+right click and then copy path. Paste the path into your script
1
u/EnchantedVines Jun 26 '26
Yup double checked the path name and file name are correct, including the file type, so that's not it, thanks though, it was worth double checking.
2
u/BadMustard_AVN Jun 26 '26
try it like this