mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
ScreenRecorderTab: add no audio option
This commit is contained in:
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "System-Ausgabe + Mikrofon-Eingabe",
|
||||
"microphone-input": "Mikrofon-Eingabe",
|
||||
"none": "Kein Audio",
|
||||
"system-output": "System-Ausgabe"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "System output + microphone input",
|
||||
"microphone-input": "Microphone input",
|
||||
"none": "No audio",
|
||||
"system-output": "System output"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "Salida del sistema + entrada del micrófono",
|
||||
"microphone-input": "Entrada del micrófono",
|
||||
"none": "No audio",
|
||||
"system-output": "Salida del sistema"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "Sortie système + entrée microphone",
|
||||
"microphone-input": "Entrée microphone",
|
||||
"none": "Pas d'audio",
|
||||
"system-output": "Sortie système"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "Rendszerkimenet + mikrofonbemenet",
|
||||
"microphone-input": "Mikrofonbemenet",
|
||||
"none": "No audio",
|
||||
"system-output": "Rendszerkimenet"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "システム出力 + マイク入力",
|
||||
"microphone-input": "マイク入力",
|
||||
"none": "No audio",
|
||||
"system-output": "システム出力"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "Derana pergalê + ketana mîkrofonê",
|
||||
"microphone-input": "Ketana mîkrofonê",
|
||||
"none": "Bê deng.",
|
||||
"system-output": "Derana pergal"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "Systeemuitvoer + microfooninvoer",
|
||||
"microphone-input": "Microfooninvoer",
|
||||
"none": "Geen audio",
|
||||
"system-output": "Systeemuitvoer"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "Wyjście systemowe + mikrofon",
|
||||
"microphone-input": "Wejście mikrofonu",
|
||||
"none": "Brak dźwięku.",
|
||||
"system-output": "Wyjście systemowe"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "Saída do sistema + entrada do microfone",
|
||||
"microphone-input": "Entrada do microfone",
|
||||
"none": "No audio",
|
||||
"system-output": "Saída do sistema"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "Системный вывод + ввод с микрофона",
|
||||
"microphone-input": "Ввод с микрофона",
|
||||
"none": "Нет звука",
|
||||
"system-output": "Системный вывод"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "Sistem çıktısı + mikrofon girişi",
|
||||
"microphone-input": "Mikrofon girişi",
|
||||
"none": "Ses yok.",
|
||||
"system-output": "Sistem çıktısı"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "Системний вихід + вхід мікрофона",
|
||||
"microphone-input": "Вхід мікрофона",
|
||||
"none": "Немає аудіо",
|
||||
"system-output": "Системний вихід"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -756,6 +756,7 @@
|
||||
"audio-sources": {
|
||||
"both": "系统输出 + 麦克风输入",
|
||||
"microphone-input": "麦克风输入",
|
||||
"none": "No audio",
|
||||
"system-output": "系统输出"
|
||||
},
|
||||
"color-range": {
|
||||
|
||||
@@ -276,6 +276,10 @@ ColumnLayout {
|
||||
label: I18n.tr("settings.screen-recorder.audio.audio-source.label")
|
||||
description: I18n.tr("settings.screen-recorder.audio.audio-source.description")
|
||||
model: [
|
||||
{
|
||||
"key": "none",
|
||||
"name": I18n.tr("options.screen-recording.audio-sources.none")
|
||||
},
|
||||
{
|
||||
"key": "default_output",
|
||||
"name": I18n.tr("options.screen-recording.audio-sources.system-output")
|
||||
|
||||
@@ -77,9 +77,17 @@ Singleton {
|
||||
}
|
||||
outputPath = videoDir + filename;
|
||||
|
||||
var audioArg = (settings.audioSource === "both") ? `-a "default_output|default_input"` : `-a ${settings.audioSource}`;
|
||||
const audioFlags = (() => {
|
||||
if (settings.audioSource === "none") {
|
||||
return "";
|
||||
}
|
||||
if (settings.audioSource === "both") {
|
||||
return `-ac ${settings.audioCodec} -a "default_output|default_input"`;
|
||||
}
|
||||
return `-ac ${settings.audioCodec} -a ${settings.audioSource}`;
|
||||
})();
|
||||
|
||||
var flags = `-w ${settings.videoSource} -f ${settings.frameRate} -ac ${settings.audioCodec} -k ${settings.videoCodec} ${audioArg} -q ${settings.quality} -cursor ${settings.showCursor ? "yes" : "no"} -cr ${settings.colorRange} -o "${outputPath}"`;
|
||||
var flags = `-w ${settings.videoSource} -f ${settings.frameRate} -k ${settings.videoCodec} ${audioFlags} -q ${settings.quality} -cursor ${settings.showCursor ? "yes" : "no"} -cr ${settings.colorRange} -o "${outputPath}"`;
|
||||
var command = `
|
||||
_gpuscreenrecorder_flatpak_installed() {
|
||||
flatpak list --app | grep -q "com.dec05eba.gpu_screen_recorder"
|
||||
|
||||
Reference in New Issue
Block a user