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] Video files visibly frozen when used inside Browsersource on macOS #213

Closed
PatTheMav opened this issue Mar 31, 2020 · 26 comments
Closed

Comments

@PatTheMav
Copy link
Member

Platform

Operating system and version: macOS 10.15.4
OBS Studio version: 24.0.6

Expected Behavior

Video files contained in HTML pages inside browser sources should play back visibly.

Current Behavior

Only audio part of video files is played back, the video is frozen on first frame.

Steps to Reproduce

  1. Create local HTML file with embedded video:
<html>
<body>
<video autoplay controls>
<source src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4">
</video>
</body>
</html>
  1. Add browser source to a scene
  2. Setup local HTML file in browser source
  3. Observe video being stuck on first frame
  4. Hear the music/audio part of the video played back normally

Additional information

  • When debugging the browser source using the remote-debugging-port the video can be seen playing in the debugger's preview window.
  • The video does not visibly play in recordings either
@vexir
Copy link

vexir commented Mar 31, 2020

Discovered this when trying to use an animated overlay from StreamElements. Am stuck with locally driven or static overlays until a fix. Thanks @PatTheMav for the help!

Sample URL connected to a dummy tester Twitch account of mine: https://streamelements.com/overlay/5e836c888daa3380563ad5a1/ZCaYBHOwehJpEB6-Z1zjHpgO284X26NUPBeP9ZTGXPuSzipQ

@pkviet
Copy link
Member

pkviet commented Mar 31, 2020

can you test on previous releases ? v24 and v23 ? so that we spot when regression occured. Thanks

@vexir
Copy link

vexir commented Mar 31, 2020

can you test on previous releases ? v24 and v23 ? so that we spot when regression occured. Thanks

Happy to test, @pkviet. What subversions of either? Just 24.0.0 and 23.0.0?

@pkviet
Copy link
Member

pkviet commented Mar 31, 2020

last subversions will do

@vexir
Copy link

vexir commented Mar 31, 2020

last subversions will do

@pkviet Since we know it on the latest subversion of Mac (24.0.6) I'll try 24.0.2 and 23.2.1? Will the latter work on Catalina?

@pkviet
Copy link
Member

pkviet commented Mar 31, 2020

oh sorry, yeah try these

@PatTheMav
Copy link
Member Author

Here are the results of a quick check:

  • v23.2.1 - Video plays back as expected
  • v24.0.2 - Video is frozen

@pkviet
Copy link
Member

pkviet commented Mar 31, 2020

ah f... So it's a regression. Thanks

@vexir
Copy link

vexir commented Mar 31, 2020

@pkviet any dangers in using 23.2.1 for now (on Catalina)?

@PatTheMav
Copy link
Member Author

@pkviet Yeah I'm currently trying to build some other tags between 24.0.2 and 23.2.1 on macOS and check those as well.

@pkviet
Copy link
Member

pkviet commented Mar 31, 2020

@PatTheMav no need; i know the main change. We upgraded cef betwwen v23 and v24. But I was pretty sure video was working. I'll have to confirm.
Does https://html5test.com/ display video support for h264 ?

@PatTheMav
Copy link
Member Author

@pkviet Got it, would need to find and punch in the macOS 10.14 platform SDK anyway as otherwise the code doesn't compile on Catalina.

The test results are not readable at all inside the browser source, but I copied the results from the HTML:

video element Yes
Subtitles Yes
Audio track selection No
Video track selection No
Poster images Yes
Codec detection Yes

Video codecs
------------
MPEG-4 ASP support No
H.264 support Yes
H.265 support No
Ogg Theora support Yes
WebM with VP8 support Yes
WebM with VP9 support Yes

@vexir
Copy link

vexir commented Apr 2, 2020

@PatTheMav no need; i know the main change. We upgraded cef betwwen v23 and v24. But I was pretty sure video was working. I'll have to confirm.
Does https://html5test.com/ display video support for h264 ?

How likely is it that it’s a CEF bug vs an OBS implementation bug?

@pkviet
Copy link
Member

pkviet commented Apr 2, 2020

99% cef bug
edit: 99.99%

@vexir
Copy link

vexir commented Apr 2, 2020

Sad. So a fix is dependent on a CEF fix? Is it tracked in their issues as well? Or is this more of a rollback situation

@vexir
Copy link

vexir commented Apr 4, 2020

@PatTheMav @pkviet I'm not sure if this is the same bug or just related, but I can't play local .webm files either. Doesn't work through the drag/drop method, doesn't work as a media source. Can someone confirm this happens to them as well?

@pkviet
Copy link
Member

pkviet commented Apr 4, 2020 via email

@vexir
Copy link

vexir commented Apr 4, 2020

That was an unexpected answer, but saves me from trying to find another alpha supported video channel to export my overlay files to. Assuming I can figure out why it doesn't work. Sent you an email, @pkviet !

@dkonopka
Copy link

I have similar issues on MacOS - adding for example http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4 or http://dl5.webmfiles.org/big-buck-bunny_trailer.webm as browser source makes them freezed.

OBS: 25.0.7
MacOS Catalina: 10.15.3

It's iMac Late 2015:

  • Graphics: AMD Radeon R9 M380 2 GB
  • Processor: 3,2 GHz Quad-Core Intel Core i5`

@nathanlejeune
Copy link

Hey everyone!

A lot this over my head and I am learning as I go, but I have a brand new mac, Catalina 10.15.4 and I can not play Webm files through Streamelements. They just show a black shape the shape of the webm file but nothing is there. The webm file does play if you drag and drop but not if you use browser source. It also messes up the browser source on Streamelements which has to be resaved before it works.

@pkviet
Copy link
Member

pkviet commented May 16, 2020

@nathanlejeune for issues with streamelements, check their support. They replace our browser source with their own ...
edit: apologies, SE don't ship their own plugin for mac it seems.

@julijane
Copy link

julijane commented Nov 2, 2020

@pkviet

I would like to add to this issue that it happens on Linux as well. Not exactly the same, the video does not fully stop (e.g. when playing youtube), but it is very choppy. On the other hand, the third-party obs-linuxbrowser plugin (which is now considered a dead project though) does not have the issue. obs-linuxbrowser uses CEF 3440, which appears to be the version used by this project before as well, so this makes it likely that the issue is really with the use of a newer (but also already quite old) CEF version. On the obs-linuxbrowser plugin repos I read before that he had major issues with using new CEF versions, but i do not remember if it was with video or in general but it was the reason he stayed at 3440.

@camalot
Copy link

camalot commented Nov 11, 2020

I experience this in OBS 26.0.2 on Windows.

The audio plays but video stuck on first frame. tried webm and mp4.

I have not tried prior version of OBS yet.

@MisterCommand
Copy link

Hello,
I am experiencing something similar in OBS 26.0.2, I tried several previous versions and it is finally working in OBS 23.2.1. I tried launching YouTube embed video, and when the progress bar is hidden, frames stated to be skipped and became frozen. It returned to normal once I got into interaction mode and hovered above to show the progress bar. I also tested Twitch, normal Twitch worked fine but Twitch embed worked liked YouTube embed. Hope this helps.

My Machine:
i7-8750H
GTX 1070 MaxQ
Latest version of Windows and graphics drivers
Clean install of OBS

My PC's OBS works perfectly fine under the same scenario.

@PatTheMav
Copy link
Member Author

As was mentioned this is a known issue with CEF 3770 that we ship with in 26.0.2. An update is in the works, but there are other issues we'd like to hammer out first before updating.

@WizardCM
Copy link
Member

WizardCM commented Jan 9, 2021

@WizardCM WizardCM closed this as completed Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants