obs-websocket icon indicating copy to clipboard operation
obs-websocket copied to clipboard

Bug: `SetMediaInputCursor` not accurate for Media Source

Open casperboone opened this issue 2 years ago • 4 comments

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.

casperboone avatar Dec 12 '23 11:12 casperboone

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

lrq51678 avatar Mar 30 '24 08:03 lrq51678