Add application audio option

This commit is contained in:
dec05eba
2024-11-13 22:18:30 +01:00
parent 590428425e
commit 4ba1e814b7
20 changed files with 441 additions and 137 deletions

27
TODO
View File

@@ -52,3 +52,30 @@ Add profiles and hotkey to switch between profiles (show notification when switc
Fix first frame being black.
Add support for systray.
Add option to take screenshot.
Move event callbacks to a global list instead of std::function object in each widget. This reduces the size of widgets,
since most widgets wont have the event callback set.
This event callback would pass the widget as an argument.
This could be done transparently by having a function in the widget to set a callback function
and that could add a wrapper that checks if the callback received _this_, and that would call the callback set by the user.
Make save-video-in-game-folder.sh and notify-saved-name.sh run ~/.config/gpu-screen-recorder/on-save.sh if it exists.
This could for example be used to automatically convert the video to a different format or to upload it to a server.
Before this script is called gsr-ui should define an environment variable GSR_PROFILE that specifies the name of the profile.
This profile name can be used to decide which action the users script should do, for example to convert the video to a 4chan friendly webm file
if the profile is called 4chan.
Create a directory of such example scripts, including 4chan webm one.
On nvidia check if suspend fix is applied. If not, show a popup asking the user to apply it (and apply it automatically).
Show warning when using steam deck or when trying to capture hevc/av1 on amd (the same warnings as gpu screen recorder gtk).
Add option to capture application audio. This should show a popup where you can use one of the available applications or a custom one and choose to record that application or all applications except that one.
Add profile option. Convert view to profile, add an option at the bottom that says "Edit profiles..." which should show a popup where you can create/remove profiles. New profiles should always be in advanced view.
Verify monitor/audio when starting recording. Give an error if the options are no longer valid.
Add option to record focused monitor. This is less error prone when plugging in monitors, etc.