mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2025-04-02 07:44:54 +03:00
hide tmp file
This commit is contained in:
parent
9c4d8c6b82
commit
a8d6a48838
@ -104,7 +104,7 @@ impl Ffmpeg {
|
|||||||
} else {
|
} else {
|
||||||
&format!(".{}", &self.output)
|
&format!(".{}", &self.output)
|
||||||
};
|
};
|
||||||
let video_tempfile = tempfile::Builder::new().prefix("ffmpeg-video-")
|
let video_tempfile = tempfile::Builder::new().prefix(".ffmpeg-video-")
|
||||||
.suffix(suffix)
|
.suffix(suffix)
|
||||||
.tempfile()?
|
.tempfile()?
|
||||||
.keep()?;
|
.keep()?;
|
||||||
@ -212,7 +212,7 @@ impl Ffmpeg {
|
|||||||
|
|
||||||
// Start audio input recording
|
// Start audio input recording
|
||||||
pub fn start_input_audio(&mut self) -> Result<()> {
|
pub fn start_input_audio(&mut self) -> Result<()> {
|
||||||
let input_audio_tempfile = tempfile::Builder::new().prefix("ffmpeg-audio-")
|
let input_audio_tempfile = tempfile::Builder::new().prefix(".ffmpeg-audio-")
|
||||||
.suffix(".ogg")
|
.suffix(".ogg")
|
||||||
.tempfile()?
|
.tempfile()?
|
||||||
.keep()?;
|
.keep()?;
|
||||||
@ -259,7 +259,7 @@ impl Ffmpeg {
|
|||||||
|
|
||||||
// Start audio output recording
|
// Start audio output recording
|
||||||
pub fn start_output_audio(&mut self) -> Result<()> {
|
pub fn start_output_audio(&mut self) -> Result<()> {
|
||||||
let output_audio_tempfile = tempfile::Builder::new().prefix("ffmpeg-audio-")
|
let output_audio_tempfile = tempfile::Builder::new().prefix(".ffmpeg-audio-")
|
||||||
.suffix(".ogg")
|
.suffix(".ogg")
|
||||||
.tempfile()?
|
.tempfile()?
|
||||||
.keep()?;
|
.keep()?;
|
||||||
@ -535,7 +535,7 @@ impl Ffmpeg {
|
|||||||
// Record video to tmp if audio record enabled
|
// Record video to tmp if audio record enabled
|
||||||
if self.output == "gif" {
|
if self.output == "gif" {
|
||||||
let suffix = ".mp4";
|
let suffix = ".mp4";
|
||||||
let video_tempfile = tempfile::Builder::new().prefix("ffmpeg-video-")
|
let video_tempfile = tempfile::Builder::new().prefix(".ffmpeg-video-")
|
||||||
.suffix(suffix)
|
.suffix(suffix)
|
||||||
.tempfile()?
|
.tempfile()?
|
||||||
.keep()?;
|
.keep()?;
|
||||||
|
@ -92,7 +92,7 @@ impl Ffmpeg {
|
|||||||
} else {
|
} else {
|
||||||
&format!(".{}", &self.output)
|
&format!(".{}", &self.output)
|
||||||
};
|
};
|
||||||
let video_tempfile = tempfile::Builder::new().prefix("ffmpeg-video-")
|
let video_tempfile = tempfile::Builder::new().prefix(".ffmpeg-video-")
|
||||||
.suffix(suffix)
|
.suffix(suffix)
|
||||||
.tempfile()?
|
.tempfile()?
|
||||||
.keep()?;
|
.keep()?;
|
||||||
@ -188,7 +188,7 @@ impl Ffmpeg {
|
|||||||
|
|
||||||
// Start audio input recording
|
// Start audio input recording
|
||||||
pub fn start_input_audio(&mut self) -> Result<()> {
|
pub fn start_input_audio(&mut self) -> Result<()> {
|
||||||
let input_audio_tempfile = tempfile::Builder::new().prefix("ffmpeg-audio-")
|
let input_audio_tempfile = tempfile::Builder::new().prefix(".ffmpeg-audio-")
|
||||||
.suffix(".ogg")
|
.suffix(".ogg")
|
||||||
.tempfile()?
|
.tempfile()?
|
||||||
.keep()?;
|
.keep()?;
|
||||||
@ -235,7 +235,7 @@ impl Ffmpeg {
|
|||||||
|
|
||||||
// Start audio output recording
|
// Start audio output recording
|
||||||
pub fn start_output_audio(&mut self) -> Result<()> {
|
pub fn start_output_audio(&mut self) -> Result<()> {
|
||||||
let output_audio_tempfile = tempfile::Builder::new().prefix("ffmpeg-audio-")
|
let output_audio_tempfile = tempfile::Builder::new().prefix(".ffmpeg-audio-")
|
||||||
.suffix(".ogg")
|
.suffix(".ogg")
|
||||||
.tempfile()?
|
.tempfile()?
|
||||||
.keep()?;
|
.keep()?;
|
||||||
@ -487,7 +487,7 @@ impl Ffmpeg {
|
|||||||
} else {
|
} else {
|
||||||
&format!(".{}", &self.output)
|
&format!(".{}", &self.output)
|
||||||
};
|
};
|
||||||
let video_tempfile = tempfile::Builder::new().prefix("ffmpeg-video-")
|
let video_tempfile = tempfile::Builder::new().prefix(".ffmpeg-video-")
|
||||||
.suffix(suffix)
|
.suffix(suffix)
|
||||||
.tempfile()?
|
.tempfile()?
|
||||||
.keep()?;
|
.keep()?;
|
||||||
@ -586,7 +586,7 @@ impl Ffmpeg {
|
|||||||
|
|
||||||
// Start audio input recording
|
// Start audio input recording
|
||||||
pub fn start_input_audio(&mut self) -> Result<()> {
|
pub fn start_input_audio(&mut self) -> Result<()> {
|
||||||
let input_audio_tempfile = tempfile::Builder::new().prefix("ffmpeg-audio-")
|
let input_audio_tempfile = tempfile::Builder::new().prefix(".ffmpeg-audio-")
|
||||||
.suffix(".ogg")
|
.suffix(".ogg")
|
||||||
.tempfile()?
|
.tempfile()?
|
||||||
.keep()?;
|
.keep()?;
|
||||||
@ -635,7 +635,7 @@ impl Ffmpeg {
|
|||||||
|
|
||||||
// Start audio output recording
|
// Start audio output recording
|
||||||
pub fn start_output_audio(&mut self) -> Result<()> {
|
pub fn start_output_audio(&mut self) -> Result<()> {
|
||||||
let output_audio_tempfile = tempfile::Builder::new().prefix("ffmpeg-audio-")
|
let output_audio_tempfile = tempfile::Builder::new().prefix(".ffmpeg-audio-")
|
||||||
.suffix(".ogg")
|
.suffix(".ogg")
|
||||||
.tempfile()?
|
.tempfile()?
|
||||||
.keep()?;
|
.keep()?;
|
||||||
|
Loading…
Reference in New Issue
Block a user