mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2024-11-23 17:13:11 +03:00
enable recording of window or screen
This commit is contained in:
parent
6c049e4280
commit
510a1e5fa3
@ -255,7 +255,7 @@ impl Ffmpeg {
|
|||||||
let is_audio_record = std::path::Path::new(audio_filename.as_str()).exists();
|
let is_audio_record = std::path::Path::new(audio_filename.as_str()).exists();
|
||||||
|
|
||||||
if is_video_record {
|
if is_video_record {
|
||||||
if !is_wayland() {
|
if is_wayland() {
|
||||||
// convert webm to specified format
|
// convert webm to specified format
|
||||||
Command::new("ffmpeg")
|
Command::new("ffmpeg")
|
||||||
.args([
|
.args([
|
||||||
@ -286,6 +286,7 @@ impl Ffmpeg {
|
|||||||
]);
|
]);
|
||||||
move_command.output().unwrap();
|
move_command.output().unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
// if audio record, then merge video and audio
|
// if audio record, then merge video and audio
|
||||||
if is_audio_record {
|
if is_audio_record {
|
||||||
Command::new("ffmpeg")
|
Command::new("ffmpeg")
|
||||||
|
Loading…
Reference in New Issue
Block a user