File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ const FFMPEG_RECORD_FRAME_RATE: &str = "30";
4545const FFMPEG_RECORD_DESKTOP_WINDOWS_COMMAND : & str = "{} -f gdigrab -i desktop -r {} -q:v 1 -y {}" ;
4646const FFMPEG_RECORD_DESKTOP_LINUX_COMMAND : & str = "{} -f x11grab -i {} -r {} -vcodec huffyuv -y {}" ;
4747const FFMPEG_RECORD_DESKTOP_MACOS_COMMAND : & str = "{} -f avfoundation -i {} -r {} -y {}" ;
48- const FFMPEG_HELP_COMMAND : & str = "{} -h" ;
4948const FFMPEG_RECORDING_EXTENSION : & str = "avi" ;
5049const FFMPEG_RECORDING_FOLDER : & str = "recordings" ;
5150
@@ -210,7 +209,6 @@ pub fn record_desktop_with_ffmpeg(
210209 "Recording desktop with {} to {}" ,
211210 FFMPEG_NAME , & recording_name
212211 ) ) ;
213- /*
214212 let command = if WINDOWS . is ( os) {
215213 Command :: new_single ( format_three_args (
216214 get_recording_command ( os) ,
@@ -228,11 +226,6 @@ pub fn record_desktop_with_ffmpeg(
228226 & recording_name,
229227 ) )
230228 } ;
231- */
232- let command = Command :: new_single ( format_one_arg (
233- FFMPEG_HELP_COMMAND ,
234- & path_to_string ( & ffmpeg_path) ,
235- ) ) ;
236229 run_shell_command_with_log ( log, os, command) . unwrap ( ) ;
237230 Ok ( ( ) )
238231}
You can’t perform that action at this time.
0 commit comments