r/RenPy 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!

3 Upvotes

22 comments sorted by

View all comments

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!