Difference between revisions of "Linux streaming"
From QWiki
*>Raket (New page: Linux Streaming Guide Requirements, SBLive, gtx 600, 700 or 900 series, FFmpeg compiled with nvenc [x264 works as well, but needs more power], Twitch account. [to be done later] (other c...) |
|||
| Line 1: | Line 1: | ||
| − | + | This is how you do it, should work on both Geforce GTX >= 6xx series (needs special build) or amd, i use Xcomposite because anything else invades PRIVACY. It's possible to record everything, see gpu-screen-recorder. | |
| − | + | You need: | |
| + | gpu-screen-recoder | ||
| + | wmctrl | ||
| + | xdotool | ||
| − | + | Use vid_fullscreen 1 and vid_minimize_on_focus_loss 1 | |
| − | + | This will unminimize the ezquake window before starting capture, it will still capture a blank window when it's minimized. | |
| − | + | wmctrl -ia $(xdotool search --pid $(pgrep ezquake)) && gpu-screen-recorder -c flv -w $(xdotool search --pid $(pgrep ezquake)) -f 60 -a "app:ezquake-linux-x86_64" -bm cbr -q 6000 -o tmp_recording.mkv | |
| − | + | Obviously you can do the same thing to stream to twitch, | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | "rtmp://live.twitch.tv/app/$KEY" | |
Latest revision as of 21:07, 10 December 2025
This is how you do it, should work on both Geforce GTX >= 6xx series (needs special build) or amd, i use Xcomposite because anything else invades PRIVACY. It's possible to record everything, see gpu-screen-recorder.
You need: gpu-screen-recoder wmctrl xdotool
Use vid_fullscreen 1 and vid_minimize_on_focus_loss 1
This will unminimize the ezquake window before starting capture, it will still capture a blank window when it's minimized.
wmctrl -ia $(xdotool search --pid $(pgrep ezquake)) && gpu-screen-recorder -c flv -w $(xdotool search --pid $(pgrep ezquake)) -f 60 -a "app:ezquake-linux-x86_64" -bm cbr -q 6000 -o tmp_recording.mkv
Obviously you can do the same thing to stream to twitch,
"rtmp://live.twitch.tv/app/$KEY"