Skip to content

Commit 0c0899e

Browse files
committed
[rust] Temporal command to see ffmpeg help
1 parent 967721d commit 0c0899e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rust/src/ffmpeg.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const FFMPEG_RECORD_FRAME_RATE: &str = "30";
4545
const FFMPEG_RECORD_DESKTOP_WINDOWS_COMMAND: &str = "{} -f gdigrab -i desktop -r {} -q:v 1 -y {}";
4646
const FFMPEG_RECORD_DESKTOP_LINUX_COMMAND: &str = "{} -f x11grab -i {} -r {} -vcodec huffyuv -y {}";
4747
const FFMPEG_RECORD_DESKTOP_MACOS_COMMAND: &str = "{} -f avfoundation -i {} -r {} -y {}";
48+
const FFMPEG_HELP_COMMAND: &str = "{} -h";
4849
const FFMPEG_RECORDING_EXTENSION: &str = "avi";
4950
const 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
}

0 commit comments

Comments
 (0)