godot-videodecoder
godot-videodecoder copied to clipboard
Crashes on VP9 .webm video that works when converted with bare ffmpeg
Sample reproduction steps (win10, up to date godot) :
- use youtube-dl to download royalty free video :
youtube-dl -o test.webm https://www.youtube.com/watch?v=x1T6QFpd0J4
- Load into godot videoplayer element New VideoStreamGDNative
test.webm. Set autoplay on. - Play scene, boom. No error, just byebye.
Sample workaround (shouldn't be necessary) :
ffmpeg -i test.webm -c:v libvpx -crf 10 -b:v 1M -c:a copy -y fixed.webm
Note that the VideoStreamWebm also crashes instantly, but that might be a vp9 or opus audio not supported. Neither should crash though, and ffmpeg supports vp9 with opus audio fine as can be seen above, so this file should be playable by VideoStreamGDNative.
also, note that the crash also happens with -cv libvpx-vp9 passed to the convert, so it appears to be a vp9 issue :(
dang, it plays on linux, which is where my debugging stuff is set up :)
Is it possible that the latest release of godot doesn't have the latest version of the player?
There's no install instructions so I don't know how to overwrite what's in godot even if I managed to build it.