Skip to content

Commit 733f227

Browse files
committed
[rust] Revert default video format to avi
1 parent 7cd6f33 commit 733f227

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/src/ffmpeg.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ const FFMPEG_MACOS_RELEASE_URL: &str = "https://evermeet.cx/ffmpeg/ffmpeg-{}.zip
4141
const FFMPEG_RECORD_FRAME_RATE: &str = "30";
4242
const FFMPEG_RECORD_DESKTOP_WINDOWS_COMMAND: &str = "{} -f gdigrab -i desktop -r {} -y {}";
4343
const FFMPEG_RECORD_DESKTOP_LINUX_COMMAND: &str = "{} -f x11grab -i {} -r {} -y {}";
44-
const FFMPEG_RECORD_DESKTOP_MACOS_COMMAND: &str = r#"{} -f avfoundation -i 0 -r {} -y {}"#;
45-
const FFMPEG_RECORDING_EXTENSION_MKV: &str = "mkv";
44+
const FFMPEG_RECORD_DESKTOP_MACOS_COMMAND: &str = "{} -f avfoundation -i 0 -r {} -y {}";
45+
const FFMPEG_RECORDING_EXTENSION: &str = "avi";
4646
const FFMPEG_RECORDING_FOLDER: &str = "recordings";
4747
const FFMPEG_DEFAULT_DISPLAY: &str = ":0";
4848

@@ -183,7 +183,7 @@ pub fn uncompress_ffmpeg(
183183

184184
fn get_recording_name() -> String {
185185
let now = chrono::Local::now();
186-
now.format("%Y-%m-%d_%H-%M-%S").to_string() + "." + FFMPEG_RECORDING_EXTENSION_MKV
186+
now.format("%Y-%m-%d_%H-%M-%S").to_string() + "." + FFMPEG_RECORDING_EXTENSION
187187
}
188188

189189
pub fn record_desktop_with_ffmpeg(

0 commit comments

Comments
 (0)