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

Support for streaming to Twitch or Youtube #67

Open
hholst80 opened this issue Apr 2, 2024 · 12 comments
Open

Support for streaming to Twitch or Youtube #67

hholst80 opened this issue Apr 2, 2024 · 12 comments

Comments

@hholst80
Copy link
Contributor

hholst80 commented Apr 2, 2024

Would it be possible to stream directly to a streaming service like Twitch or Youtube?

Would it be possible with just wl-screenrec or are there any additional tooling required on the client side?

@hholst80 hholst80 changed the title Support for streaming to Twitch or Youtube direcet Support for streaming to Twitch or Youtube Apr 2, 2024
@russelltg
Copy link
Owner

It may already work with something like

wl-screenrec --ffmpeg-muxer flv rtmp://iad05.contribute.live-video.net/app/{stream_key}

source https://consultwithgriff.com/streaming-mp4-to-twitch-youtube-with-ffmpeg/

@russelltg
Copy link
Owner

Also be careful about bitrate settings

@pparaxan
Copy link
Contributor

not sure but this doesn't work for me
does it work for y'all?

@hholst80
Copy link
Contributor Author

not sure but this doesn't work for me does it work for y'all?

I could not get it to work. However, I still have my daytime job ;-) so I have not invested the right amount of time into this to say for sure if it works or not.

@pparaxan
Copy link
Contributor

pparaxan commented Jul 11, 2024

removed

@hholst80
Copy link
Contributor Author

That won't work on my low-end computers. I cannot afford a live transcode. :-)

@pparaxan
Copy link
Contributor

pparaxan commented Sep 1, 2024

That won't work on my low-end computers. I cannot afford a live transcode. :-)

oof, I didn't even remember me making this guide, this is a stupid idea anywho.

@poweredbypie
Copy link

poweredbypie commented Oct 21, 2024

This works fine for me on YouTube with the following command:

wl-screenrec --ffmpeg-muxer flv -f rtmp://a.rtmp.youtube.com/live2/<stream key>

However it seems that flv encoding is not supported by my GPU and so wl-screenrec takes more CPU usage than I'd like. The following warning is shown:
image

@russelltg
Copy link
Owner

So flv is a container not a codec. I let ffmpeg choose a default codec for a given container. All you should have to do to make this work with hw Accel is pass --codec avc

@pparaxan
Copy link
Contributor

pparaxan commented Nov 2, 2024

during my last live stream with wl-screenrec, I noticed that about 10 minutes in, the audio began to get ahead of the video. Maybe it's due to my bad internet because my ping was going haywire.

@russelltg
Copy link
Owner

#75 known issue unfortunately.

@pparaxan
Copy link
Contributor

pparaxan commented Nov 2, 2024

#75 known issue unfortunately.

ah, forgot about that issue

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

4 participants