Skip to content

Commit 6633fbb

Browse files
committed
[rust] Include audio device in command to record desktop in Linux and macOS
1 parent 8f3d4a1 commit 6633fbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/src/ffmpeg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const FFMPEG_LINUX_RELEASE_URL: &str = "https://github.com/BtbN/FFmpeg-Builds/re
4343
const FFMPEG_MACOS_RELEASE_URL: &str = "https://evermeet.cx/ffmpeg/ffmpeg-{}.zip";
4444
const FFMPEG_RECORD_FRAME_RATE: &str = "30";
4545
const FFMPEG_RECORD_DESKTOP_WINDOWS_COMMAND: &str = "{} -f gdigrab -i desktop -r {} -q:v 1 -y {}";
46-
const FFMPEG_RECORD_DESKTOP_LINUX_COMMAND: &str = "{} -f x11grab -i {} -r {} -vcodec huffyuv -y {}";
47-
const FFMPEG_RECORD_DESKTOP_MACOS_COMMAND: &str = r#"{} -f avfoundation -i "{}" -r {} -y {}"#;
46+
const FFMPEG_RECORD_DESKTOP_LINUX_COMMAND: &str = "{} -f x11grab -i {}:0 -r {} -vcodec huffyuv -y {}";
47+
const FFMPEG_RECORD_DESKTOP_MACOS_COMMAND: &str = r#"{} -f avfoundation -i "{}:0" -r {} -y {}"#;
4848
const FFMPEG_RECORDING_EXTENSION: &str = "avi";
4949
const FFMPEG_RECORDING_FOLDER: &str = "recordings";
5050

0 commit comments

Comments
 (0)