Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: SetMediaInputCursor not accurate for Media Source #1190

Open
casperboone opened this issue Dec 12, 2023 · 2 comments
Open

Bug: SetMediaInputCursor not accurate for Media Source #1190

casperboone opened this issue Dec 12, 2023 · 2 comments

Comments

@casperboone
Copy link

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
Copy link

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

@jwetzell
Copy link

I see very similar behavior when receiving the mediaCursor time as well as well. I loaded a media source to 1:30 and it is reporting a mediaCursor value of 83500? that seems 3 seconds off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants