• Godot HelpGUI
  • webm converted by ffmpeg only has sound, no picture in godot video player

I still don't figure out a working webm, but convert it to ogv (from mp4 works in godot:

ffmpeg -i maze2.mp4 -c:v libtheora -q:v 7 -c:a libvorbis -q:a 4 maze2.ogv

Yeah I had issues with WebM on some projects I've worked on too, but converting to ogv fixed it for me as well. I think it might be that WebM playing in Godot is bugged or perhaps it needs a very specific configuration to run.

Thanks for sharing the solution using ffmpeg :smile:

Well, all I can offer as a thought is that webm is a container and not a codec, so the question is what codecs were used in it?

@Megalomaniak said: Well, all I can offer as a thought is that webm is a container and not a codec, so the question is what codecs were used in it?

I used this script from stackoverflow to convert mp4, which keeps reasonable quality at a small size:

#!/bin/bash
# Usage: ./mp4towebm video.mp4
ffmpeg -y -i $1  -b:v 0  -crf 30  -pass 1  -an -f webm /dev/null
ffmpeg  -i $1  -b:v 0  -crf 30  -pass 2  ${1%%.*}.webm

Don't know if it indicate the codec info. If not, maybe you can figure out from above google drive,

Godot only supports the Ogg Theora, VP8 and VP9 video codecs. H.264 is not supported as it's patent-encumbered. You need a license to use H.264 in commercial applications in countries that enforce software patents (which includes the US and many others).

a month later

@jdoohen52 said: I still don't figure out a working webm, but convert it to ogv (from mp4 works in godot:

ffmpeg -i maze2.mp4 -c:v libtheora -q:v 7 -c:a libvorbis -q:a 4 maze2.ogv

Did you convert inside Godot? Using ffmpeg? If yes, could you please explain how to convert media inside Godot?

a year later