Question / Help Stream with FFMPEG from linux terminal

c4logan

New Member
Hello. I want to stream with amd rx560 video with proc fx-8300. I try obs on my debian buster and it works fine with x264. But i dont need many features from obs, i need simple stream. So i create 2 scripts. One of them start streaming and another stop streaming. But i have pixelate on my stream and video have micro freezes. With obs i dont have those issues. Below 2 scripts used by me:
1)start_streaming.sh
#!/bin/bash
ffmpeg -f x11grab -s 1920x1080 -r 30 -i :0.0 -f pulse -i 0 -f flv -ac 2 -ar 44100
-vcodec libx264 -g 60 -keyint_min 30 -b:v 5000k -minrate 5000k -maxrate 5000k -pix_fmt yuv420p
-s 1920x1080 -preset ultrafast -tune film -acodec aac -threads 0 -strict normal
-bufsize 5000k "rtmp://live.restream.io/live/mystreamkey"
2)stop_stream.sh
#!/bin/bash
pkill ffmpeg
I use 2 keybshortcut for those scripts to run stream and stop stream. Can you help me please to fix this issues and how i can use amd vaapi for streaming from linux terminal?
 

TheDarthTux

New Member
I think the issue is with ffmpeg. I am using OBS with the ffmpeg-vaapi option with a Radeon VII instead of x264 and the pixelation and choppiness is a nightmare.
I have spent hours playing with bitrates, and keyframe intervals, downscale filter, but nothing works. I have had better luck with x264 in the past aside from the dropped frames. I am using a Decklink Quad HDMI Recorder and when I use the software (media express) that comes with that, there is no pixelation however, the issue with that is dropped frames and audio.
I technically should not be having issues since I am running a Ryzen 9 3950X on an X570 chipset, SSD, and 32GB of RAM.
 
Top