mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2025-03-31 23:04:55 +03:00
fix windows video record
This commit is contained in:
parent
79ab58bd0a
commit
3810fe470d
@ -451,6 +451,10 @@ impl Ffmpeg {
|
||||
};
|
||||
let mut ffmpeg_command = FfmpegCommand::new();
|
||||
let format = "gdigrab";
|
||||
let filename = self.saved_filename.clone();
|
||||
self.output = Path::new(&filename).extension()
|
||||
.ok_or_else(|| anyhow!("Failed to get file extension."))?
|
||||
.to_string_lossy().to_string();
|
||||
|
||||
// Record video to tmp if audio record enabled
|
||||
if !self.audio_input_id.active_id().ok_or_else(|| anyhow!("Failed to get audio input device ID."))?
|
||||
|
Loading…
Reference in New Issue
Block a user