Godot: VideoPlayer set_stream_position not work

Created on 8 Dec 2017  路  19Comments  路  Source: godotengine/godot

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Ubuntu 16.04, Godot 3.0 beta 1

Steps to reproduce:
set_stream_position(20.0)

bug confirmed hero wanted! gui

Most helpful comment

All 19 comments

What kind of VideoStream are you playing? This bug report doesn't provide enough information, please try to be more specific.

i am just looking around to see how to add seek to ogg.

looks pretty complicated

http://blog.pearce.org.nz/2009/05/video-seeking-improvements.html

i am debating whether or not to try to fix it since i kinda want to understand how ogg works

@hungrymonkey would it be easier to implement for webm?

@blurymind probably somewhat the same difficulty.

you have to seek to find keyframes. The code doesnt really separate grabbing frames and finding the keyframe.

I would like to give this problem a push.
It would be really great if the seek function could be implemented.
Godot 3.1 ?

godot 3.1.1 same bug

I do not think libsimplewebm supports seeking.

@akien-mga I attempted to implement ogg theora seek support but I do not understand why the video just waits for the full seek as if the player wants to catch up although I submitted zero frames.
https://github.com/hungrymonkey/godot/tree/seek_theora
Can somebody tell me why?
Nevermind, I found it. Play() resets the time

I never realize force pushing would lead to such spam. Opps.

set_stream_position method is still not functioning in Godot 3.2 beta 4

@CrimsonZA Godot already have a ffmpeg decoder for all codecs
https://github.com/kidrigger/godot-videodecoder

seems like Godot isn't ready to play video on Android, at least not on an Oculus Go, definitely not for immersive vide using the built in vide player node or godot-videodecoder

@CrimsonZA You can try my seek theora branch which might end up in Godot 4.0. You have to compile in support for it. Tell me if I have any bugs.

@CrimsonZA Godot already have a ffmpeg decoder for all codecs
https://github.com/kidrigger/godot-videodecoder

Does it support seek function?

How about removing this property until the seek functions are implemented?

@Tooniis Removing properties is technically a breaking change (even if they were never working well in the first place), so we can't do it in the 3.2 branch. For properties, we can hide them from the editor (like for contact shadows), but we can't do that for methods.

Was this page helpful?
0 / 5 - 0 ratings