The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+2 votes

I have a 5 minute 720p video in the OGV format, with a bitrate 1411 kbps (also I have tried the same video with a higher 7mbps but to the same effect but more laggy).

Which I'm using with Godot's videoplayer, but when I run it, the video and audio skips. With big framerate drops (can vary from 60 to 2fps)

Any idea why or what I can do to solve this?

Thank you :)

in Engine by (57 points)

I would assume either the video format isn't ideal, or VideoPlayer needs improvements.
Have you tried with the WebM format?
Can you share that video? (or whatever small video you have which produces the issue)

Hi, Zylann.

I have uploaded the video here - https://youtu.be/BMVoKuEZBLo

I have tried again with this much shorter video, but still the same issues.

I will try with the webM format and get back to you.

Thank you.

Sorry I meant uploading the video file as is. YouTube transforms it anyways so it's not suitable for bug reproduction.

How would you like me to share it? Can it be done here? Appreciate the help.

Outputted the video into the WebM format, audio seems fine but the video is fully black.

OGV playing in Godot isn't great indeed, I get stuttering too even though I have a Ryzen 5 and nVidia 1060. However I'm told OGV isn't the best format to use in games in terms of performance.
VP9 might be considered in the future.
For now, given what your video contains, I would recommend to do the animation in Godot with AnimationPlayer. It will run way better than using 1920x1080 video.

Thanks for all your help. Would I be able to position the audio correctly, if I use the AnimationPlayer? And would you suggest I file this as a bug report?

Thanks again, you should put this as an answer :)

Update: Good News! VP8 WebM seems to run much better and smoothly. The video has to be in VP8 format as a WebM.

I'm having issues as well with a .webm format video on Android. It starts out normal but slows down as time progresses to an incomprehensible stutter in both video and audio.
How do I check if the webm video is using VP8? :-)

Hello fhireman,

A way to check is using the free VLC Player to open the video and selecting the codec infomation, which should give you the desired infomation. Other media players should work too. While exporting the video into the webm video, it gave me the option to select between VP8 & VP9.

Hopefully it has solved your issue and been helpful.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.