obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
57.22k stars 7.72k forks source link

Media Source not playing AV1 recordings correctly #10876

Closed jenks6797 closed 2 weeks ago

jenks6797 commented 2 weeks ago

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.2.0-beta3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/H5C5q45ZaS9GNkw6

OBS Studio Crash Log URL

No response

Expected Behavior

Recording should play normally inside a Media Source, and also should be able to set the speed.

Current Behavior

Recording is very choppy inside Media Source, but works normally in VLC Source. Also, the speed setting doesn't do anything.

Steps to Reproduce

  1. Record video in AV1
  2. Add video to Media Source
  3. Add same video to VLC Source
  4. Video should play normally in VLC Source, but choppy in Media Source (and speed settings should not work either) ...

Anything else we should know?

Screenshot 2024-06-18 100103

flaeri commented 2 weeks ago

Could you upload a 10sec sample file that has the problem described?

jenks6797 commented 2 weeks ago

It's over 10mb, so I can share a Google Drive link if that works. Here's a video showing the issue: https://drive.google.com/file/d/1hU308mk2jmeCx8h5RXHYE_0LjmeS43ac/view?usp=sharing

And here is the video file that is being played in the clip above: https://drive.google.com/file/d/1RgfiJhTlZXATjWdvRfcC8PnUl5QVwER-/view?usp=sharing

RytoEX commented 2 weeks ago

All of your Media Sources have hardware decoding enabled. This seems like a duplicate of #10213, where hardware decoding does not work for AV1 encoded files due to how FFmpeg (and our code) handles selecting a capable AV1 decoder.

Edit: My mistake, I had skimmed the Issue too quickly. I do see the issue exhibited in OBS now that I have checked the file's playback.

As far as I can tell though, it's the same core issue: hardware decoding is not actually working, so the CPU is being used to decode the file, and it cannot keep up.

RytoEX commented 2 weeks ago

Upon further consideration, I am going to close this as a duplicate of #10213. The core issue is the same: hardware decoding of AV1 files does not currently work, so the CPU is used to decode them.

RytoEX commented 2 weeks ago

Duplicate of #10213