obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.79k stars 701 forks source link

Bug: `SetMediaInputCursor` not accurate for Media Source #1190

Open casperboone opened 7 months ago

casperboone commented 7 months ago

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

  1. Create a video source
  2. Call SetMediaInputCursor with a position (with milisecond precision)
  3. Call GetMediaInputStatus to verify the result by reading mediaCursor

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.

lrq51678 commented 3 months ago

Hello,has this problem been resolved? I have also experienced this situation