From 510a1e5fa3984a072313b48074b2e7d59e342c6a Mon Sep 17 00:00:00 2001 From: Salem Yaslem Date: Sun, 22 Oct 2023 00:16:28 +0300 Subject: [PATCH] enable recording of window or screen --- src/ffmpeg_interface.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ffmpeg_interface.rs b/src/ffmpeg_interface.rs index 5fd2046..2473fbc 100644 --- a/src/ffmpeg_interface.rs +++ b/src/ffmpeg_interface.rs @@ -255,7 +255,7 @@ impl Ffmpeg { let is_audio_record = std::path::Path::new(audio_filename.as_str()).exists(); if is_video_record { - if !is_wayland() { + if is_wayland() { // convert webm to specified format Command::new("ffmpeg") .args([ @@ -286,6 +286,7 @@ impl Ffmpeg { ]); move_command.output().unwrap(); } + // if audio record, then merge video and audio if is_audio_record { Command::new("ffmpeg")