mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Workaround teamspeak crashing when recording app audio
This commit is contained in:
5
TODO
5
TODO
@@ -215,4 +215,7 @@ Always disable prime run/dri prime and list all monitors to record from from all
|
||||
Use randr to list all monitors and always record and encode with the primary gpu.
|
||||
On Wayland each gpu will have its own list of monitors with framebuffers.
|
||||
Iterate through all cards with drm and list all monitors with associated framebuffers and when choosing a monitor to record
|
||||
automatically use the associated gpu card.
|
||||
automatically use the associated gpu card.
|
||||
|
||||
Allow flv av1 if recent ffmpeg version and streaming to youtube (and twitch?) and for custom services.
|
||||
Use explicit sync in pipewire video code: https://docs.pipewire.org/page_dma_buf.html.
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/poll.h>
|
||||
#include <poll.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/capability.h>
|
||||
|
||||
|
||||
@@ -371,7 +371,7 @@ void gsr_pipewire_audio_deinit(gsr_pipewire_audio *self) {
|
||||
|
||||
static struct pw_properties* gsr_pipewire_create_null_audio_sink(const char *name) {
|
||||
char props_str[512];
|
||||
snprintf(props_str, sizeof(props_str), "{ factory.name=support.null-audio-sink node.name=\"%s\" media.class=Audio/Sink object.linger=false audio.position=[FL FR] monitor.channel-volumes=true monitor.passthrough=true adjust_time=0 slaves=\"\" }", name);
|
||||
snprintf(props_str, sizeof(props_str), "{ factory.name=support.null-audio-sink node.name=\"%s\" media.class=Audio/Sink object.linger=false audio.position=[FL FR] monitor.channel-volumes=true monitor.passthrough=true adjust_time=0 node.description=gsr-app-sink slaves=\"\" }", name);
|
||||
struct pw_properties *props = pw_properties_new_string(props_str);
|
||||
if(!props) {
|
||||
fprintf(stderr, "gsr error: gsr_pipewire_create_null_audio_sink: failed to create virtual sink properties\n");
|
||||
|
||||
Reference in New Issue
Block a user