mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-04-05 02:56:37 +09:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
630c504241 | ||
|
|
0528bc6f31 | ||
|
|
a8b3e38082 |
@@ -78,7 +78,6 @@ GPU Screen Recorder uses meson build system so you need to install `meson` to bu
|
||||
## Build dependencies
|
||||
These are the dependencies needed to build GPU Screen Recorder:
|
||||
|
||||
* libglvnd (which provides libgl, libglx and libegl)
|
||||
* vulkan-headers
|
||||
* ffmpeg (libavcodec, libavformat, libavutil, libswresample, libavfilter)
|
||||
* x11 (libx11, libxcomposite, libxrandr, libxfixes, libxdamage)
|
||||
@@ -89,6 +88,8 @@ These are the dependencies needed to build GPU Screen Recorder:
|
||||
* wayland (wayland-client, wayland-egl, wayland-scanner)
|
||||
|
||||
## Runtime dependencies
|
||||
* libglvnd (which provides libgl, libglx and libegl) is needed. Your system needs to support at least OpenGL ES 3.1
|
||||
|
||||
There are also additional dependencies needed at runtime depending on your GPU vendor:
|
||||
|
||||
### AMD
|
||||
|
||||
2
TODO
2
TODO
@@ -302,3 +302,5 @@ Allow medium, high, very_high and ultra quality for -bm cbr. If that is used the
|
||||
Maybe do this in the ui instead (or both?), to show estimated file size.
|
||||
|
||||
Maybe remove shader compute code. It doesn't seem necessary anymore now that glSwapBuffer/glFinish isn't used. dbus server isn't needed anymore either, the code can be moved back to the gpu screen recorder process.
|
||||
|
||||
Add proper check if opengl functions are supported. dlsym for the symbol will return a no-op function if it's not supported, so it silently fails if used.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
project('gpu-screen-recorder', ['c', 'cpp'], version : '5.5.8', default_options : ['warning_level=2'])
|
||||
project('gpu-screen-recorder', ['c', 'cpp'], version : '5.5.9', default_options : ['warning_level=2'])
|
||||
|
||||
add_project_arguments('-Wshadow', language : ['c', 'cpp'])
|
||||
if get_option('buildtype') == 'debug'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "gpu-screen-recorder"
|
||||
type = "executable"
|
||||
version = "5.5.8"
|
||||
version = "5.5.9"
|
||||
platforms = ["posix"]
|
||||
|
||||
[config]
|
||||
|
||||
6
scripts/toggle-recording.sh
Executable file
6
scripts/toggle-recording.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
killall -SIGINT gpu-screen-recorder && sleep 0.5 && notify-send -t 1500 -u low 'GPU Screen Recorder' 'Stopped recording' && exit 0;
|
||||
video="$HOME/Videos/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")"
|
||||
notify-send -t 1500 -u low 'GPU Screen Recorder' "Started recording video to $video"
|
||||
gpu-screen-recorder -w screen -f 60 -a "default_output" -o "$video"
|
||||
@@ -459,9 +459,9 @@ bool gsr_egl_load(gsr_egl *self, gsr_window *window, bool is_monitor_capture, bo
|
||||
/* This fixes nvenc codecs unable to load on openSUSE tumbleweed because of a cuda error. Don't ask me why */
|
||||
const bool inside_flatpak = getenv("FLATPAK_ID") != NULL;
|
||||
if(inside_flatpak)
|
||||
system("flatpak-spawn --host -- nvidia-smi -f /dev/null");
|
||||
system("flatpak-spawn --host -- sh -c 'grep -q openSUSE /etc/os-release && nvidia-smi -f /dev/null'");
|
||||
else
|
||||
system("nvidia-smi -f /dev/null");
|
||||
system("sh -c 'grep -q openSUSE /etc/os-release && nvidia-smi -f /dev/null'");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user