godot-videodecoder icon indicating copy to clipboard operation
godot-videodecoder copied to clipboard

Crashes on VP9 .webm video that works when converted with bare ffmpeg

Open iMartyn opened this issue 5 years ago • 2 comments

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 :(

iMartyn avatar Sep 18 '20 12:09 iMartyn

dang, it plays on linux, which is where my debugging stuff is set up :)

jamie-pate avatar Sep 21 '20 16:09 jamie-pate

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.

iMartyn avatar Sep 23 '20 19:09 iMartyn