Author Topic: Live Streaming games  (Read 834 times)

andy_5995

  • Moderator
  • Ornithopter
  • ********
  • Posts: 457
  • Debian Linux user
    • View Profile
    • Andy Alt's home page
Live Streaming games
« on: 8 February 2019, 23:19:03 »
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

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

Streaming Guide

Code: [Select]
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

  • Moderator
  • Ornithopter
  • ********
  • Posts: 457
  • Debian Linux user
    • View Profile
    • Andy Alt's home page
Re: Live Streaming games
« Reply #1 on: 11 February 2019, 06:14:06 »
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!).
« Last Edit: 16 February 2019, 04:01:28 by andy_5995 »

HonzaCZ

  • Swordman
  • *
  • Posts: 17
    • View Profile
Re: Live Streaming games
« Reply #2 on: 12 February 2019, 23:59:06 »
pogchamp

 

anything