File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ const FFMPEG_MACOS_RELEASE_URL: &str = "https://evermeet.cx/ffmpeg/ffmpeg-{}.zip
4141const FFMPEG_RECORD_FRAME_RATE : & str = "30" ;
4242const FFMPEG_RECORD_DESKTOP_WINDOWS_COMMAND : & str = "{} -f gdigrab -i desktop -r {} -y {}" ;
4343const 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 " ;
4646const FFMPEG_RECORDING_FOLDER : & str = "recordings" ;
4747const FFMPEG_DEFAULT_DISPLAY : & str = ":0" ;
4848
@@ -183,7 +183,7 @@ pub fn uncompress_ffmpeg(
183183
184184fn 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
189189pub fn record_desktop_with_ffmpeg (
You can’t perform that action at this time.
0 commit comments