godot: VideoPlayer throws error when it loads video without sound

here’s example godot code

var re = ResourceLoader.load("res://video.ogv")
get_node("VideoPlayer").set_stream(re)
get_node("VideoPlayer").play()

if video.ogv do not contains ‘sound’, VideoPlayer throws error. else if it contains any little sound, works well.

image

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments

Btw. isn’t FFmpeg integration a good idea?

@zaps166 oh wow. exactly what I always wanted !!

Btw. isn’t FFmpeg integration a good idea? It can play any container and any codec (audio and video and also a still image). It is well optimized, multithreaded, stable and its API is simple. You can configure FFmpeg and choose only necessary protocols, formats, decoders to reduce library size. What do you think (as a future feature)?