File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ 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" ;
4849const FFMPEG_RECORDING_EXTENSION : & str = "avi" ;
4950const FFMPEG_RECORDING_FOLDER : & str = "recordings" ;
5051
@@ -209,6 +210,7 @@ pub fn record_desktop_with_ffmpeg(
209210 "Recording desktop with {} to {}" ,
210211 FFMPEG_NAME , & recording_name
211212 ) ) ;
213+ /*
212214 let command = if WINDOWS.is(os) {
213215 Command::new_single(format_three_args(
214216 get_recording_command(os),
@@ -226,6 +228,11 @@ pub fn record_desktop_with_ffmpeg(
226228 &recording_name,
227229 ))
228230 };
231+ */
232+ let command = Command :: new_single ( format_one_arg (
233+ FFMPEG_HELP_COMMAND ,
234+ & path_to_string ( & ffmpeg_path) ,
235+ ) ) ;
229236 run_shell_command_with_log ( log, os, command) . unwrap ( ) ;
230237 Ok ( ( ) )
231238}
You can’t perform that action at this time.
0 commit comments