aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-07-24 18:21:21 +0200
committerdec05eba <dec05eba@protonmail.com>2022-07-24 18:21:21 +0200
commit061f885fc6e5d3a4f44e52dfb398dc7829c4479a (patch)
treeca7058bf395cd695a501a56d5a690666c31bd875
parentbe69d51f25189dba52f0c0d97906e9d1af3986fd (diff)
Add info about flatpak
-rw-r--r--README.md1
-rwxr-xr-xtwitch-stream.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 81d2893..6d87cd1 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,7 @@ If you are running an Arch Linux based distro, then you can find gpu screen reco
If you are running an Ubuntu based distro then run `install_ubuntu.sh` as root: `sudo ./install_ubuntu.sh`.\
On other distros you need to install dependencies manually and run `build.sh`. Dependencies: `glew glfw3 cuda ffmpeg libx11 libxcomposite libpulse-simple`.\
+If you use a distro that isn't user friendly, such as fedora, then you can also install gpu-screen-recorder-gtk with flatpak here: [gpu-screen-recorder-flatpak](https://git.dec05eba.com/gpu-screen-recorder-flatpak/about/) (Note: this install method is slow).\
Recording monitors requires a gpu with NvFBC support (note: this is not required when recording a single window!). Normally only tesla and quadro gpus support this, but by using [nvidia-patch](https://github.com/keylase/nvidia-patch) or [nvlax](https://github.com/illnyang/nvlax) you can do this on all gpus that support nvenc as well (gpus as old as the nvidia 600 series), provided you are not using outdated gpu drivers.
# How to use
diff --git a/twitch-stream.sh b/twitch-stream.sh
index 28d0eb1..12928c9 100755
--- a/twitch-stream.sh
+++ b/twitch-stream.sh
@@ -2,4 +2,4 @@
[ "$#" -ne 3 ] && echo "usage: twitch-stream.sh <window_id> <fps> <livestream_key>" && exit 1
active_sink="$(pactl get-default-sink).monitor"
-./gpu-screen-recorder -w "$1" -c flv -f "$2" -a "$active_sink" | ffmpeg -i pipe:0 -c:v copy -f flv -- "rtmp://live.twitch.tv/app/$3"
+./gpu-screen-recorder -w "$1" -c flv -f "$2" -a "$active_sink" "rtmp://live.twitch.tv/app/$3"