obs-websocket
obs-websocket copied to clipboard
Bug: `SetMediaInputCursor` not accurate for Media Source
Operating System Info
Other
Other OS
macOS 14.1.1
OBS Studio Version
Other
OBS Studio Version (Other)
30.0.2
obs-websocket Version
5.1.0
OBS Studio Log URL
https://obsproject.com/logs/JsPbzqbyrpKDSjQQ
OBS Studio Crash Log URL
No response
Expected Behavior
I would like to seek to very specific positions in a video. For instance 28442 ms (possibly rounded to a frame).
I would to play out video with alpha so I cannot use the VLC video source.
Current Behavior
Using a Media Source, the following happens:
Seeking to 20000
-> Result: 20040
Seeking to 20210
-> Result: 20040
Seeking to 20290
-> Result: 20040
Seeking to 20450
-> Result: 20040
Seeking to 28242
-> Result: 26600
Seeking to 32242
-> Result: 32280
Seeking to 36242
-> Result: 36280
Using a VLC Video Source, the following correct behavior happens:
Seeking to 20000
-> Result: 20000
Seeking to 20210
-> Result: 20210
Seeking to 20290
-> Result: 20290
Seeking to 20450
-> Result: 20450
Seeking to 28242
-> Result: 28242
Seeking to 32242
-> Result: 32242
Seeking to 36242
-> Result: 36242
Steps to Reproduce
- Create a video source
- Call
SetMediaInputCursorwith a position (with milisecond precision) - Call
GetMediaInputStatusto verify the result by readingmediaCursor
Anything else we should know?
Not sure if this an OBS websocket issue or that OBS has an inaccurate implementation of setting the input cursor.
Hello,has this problem been resolved? I have also experienced this situation