News:

Check out the latest MegaGlest news on our e-mail newsletter (subscribe), Twitter, Facebook and Google+.

Main Menu

Live Streaming games

Started by andy_5995, 8 February 2019, 23:19:03

andy_5995

I was able to stream a game pretty easily today. Using twitch and installing the OBS Studio flatpak. (OBS Studio was available from the Debian repo but I decided to try it with the flatpak instead.)

OBS Studio is also available for macOS and Windows.

I had to deselect 'hardware record' because I got the error "If you are using the NVENC or AMD encoders, make sure your video drivers are up to date". According to the log, it was because I didn't have nvenc support enabled in ffmpeg.

The way Jammy does it, without using OBS Studio and streaming directly to Youtube with ffmpeg, he gave me a few links

https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

If you have an nvdia card
https://trac.ffmpeg.org/wiki/HWAccelIntro
https://developer.nvidia.com/ffmpeg

Quoteif you use pulseaudio you will need --enable-libpulse https://www.ffmpeg.org/ffmpeg-devices.html#pulse

Streaming Guide


ffmpeg -hwaccel cuvid -f pulse -ac 2 -i 0 -f x11grab -vsync passthrough -framerate 30 -video_size 1920*1080 -i :0.0+0,0 -c:v h264_nvenc -maxrate 1984k -bufsize 3968k -vf "format=yuv420p" -g 60 -c:a aac -b:a 128k -ar 44100 -f flv rtmp://a.rtmp.youtube.com/live2/mystreamkey

andy_5995

#1
My Twitch page; when I stream videos they will show up there.

I see that for regular twitch accounts, videos recorded from streaming are deleted after 14 days. I'll put some on my

PeerTube Channel for permanent storage.

Here is the first ever MG video on PeerTube (yay!).

HonzaCZ