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

StreamlinkSource doesn't play for AfreecaTV live streams #44

Open
duclepham opened this issue May 2, 2024 · 5 comments
Open

StreamlinkSource doesn't play for AfreecaTV live streams #44

duclepham opened this issue May 2, 2024 · 5 comments

Comments

@duclepham
Copy link

I've installed this plugin. In Obs I right-click inside Scenes and added a StreamlinkSource. I indicated a URL like https://play.afreecatv.com/xxx and hit OK. But nothing plays.

With Windows Terminal and VLC player, I can play the same stream with this command
streamlink --player-args="--file-caching=99999" https://play.afreecatv.com/xxx "original, 720p"

What is the issue? Thanks so much for your help.

I'm using Windows 11.
Obs Studio 30.1.2 64-bit
Streamlink for Python installed in Windows

@duclepham
Copy link
Author

Bumped. Any advice on this? What is the format of the URL that I must enter for AfreecaTV livestreams? Thanks!

@duclepham duclepham changed the title StreamlinkSource doesn't play StreamlinkSource doesn't play for AfreecaTV live streams May 27, 2024
@cqjjjzr
Copy link
Member

cqjjjzr commented May 27, 2024

This project is rather not very active maintained because I don't currently have time for that...

The problem is that the current approach to streamlink and call ffmpeg is fragile across OBS versions. The latest OBS-Streamlink is only tested on OBS 28 and every major OBS update breaks the plugin because of the design issue in the plugin.

A rewrite of the plugin may be required, but if you want to use the plugin right now, try install OBS 28 or use a portable OBS 28 installation.

Additionally, if the bundled Streamlink is too old to use AfreecaTV, you can try to update it by navigating to data/obs-plugins/obs-streamlink/python38 and execute ./python -m pip --upgrade streamlink.

@duclepham
Copy link
Author

Thanks for the reply. My Streamlink version can run AfreecaTV streams just fine on VLC player, so maybe the problem isn't the Streamlink version.

Before I attempt something crazy, could you confirm what is the format of the URL that should be put? There is no guide as to what to type...

For example, for AfreecaTV I am watching the livestream in Chrome using this URL:
https://play.afreecatv.com/daarinaaa/269951812
Where daarinaaa is the username, and 269951812 is the video/stream ID (!?)
Should I put this link into Obs Studio? Or another format is needed?

Thanks!

@cqjjjzr
Copy link
Member

cqjjjzr commented May 27, 2024

The URL format is correct accord to Streamlink docs, but I doubt the bundled streamlink is new enough to pull stream for AfreecatTV. The plugins is calling streamlink within its bundled Python, not the one you installed in your own Python installation or installed standalonely.

Sorry for the inconvenience, but you can maybe try the following:

  1. Find a portable OBS 28 installation(download the -Full.zip one): https://github.com/obsproject/obs-studio/releases/tag/28.1.2
  2. Unzip the file and put it into a desired place.
  3. Install OBS-Streamlink into the portable OBS folder.
  4. Navigate to your-portable-OBS-folder/data/obs-plugins/obs-streamlink/python38 and execute ./python -m pip --upgrade streamlink.

@duclepham
Copy link
Author

Ah isee...OK let me try it some time. Thanks!

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

2 participants