fix(ffmpeg): prevent terminal window flash on Windows during media conversion

This commit is contained in:
E.J. Talevi
2025-11-26 04:42:29 -03:00
parent 28a6fe5a7d
commit adfa0c6bb3
3 changed files with 7 additions and 2 deletions
+1
View File
@@ -1,4 +1,5 @@
docs/source
vs_code/
# From https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore
+4
View File
@@ -1692,6 +1692,8 @@ class Download:
ffmpeg = (
FFmpeg(executable=self.settings.data.path_binary_ffmpeg)
.option("y")
.option("hide_banner")
.option("nostdin")
.input(url=path_file)
.output(url=path_file_out, codec="copy", map=0, loglevel="quiet")
)
@@ -1712,6 +1714,8 @@ class Download:
path_media_out = path_media_src.with_suffix(AudioExtensions.FLAC)
ffmpeg = (
FFmpeg(executable=self.settings.data.path_binary_ffmpeg)
.option("hide_banner")
.option("nostdin")
.input(url=path_media_src)
.output(
url=path_media_out,
+2 -2
View File
@@ -43,8 +43,8 @@ class Settings:
cover_album_file: bool = True
extract_flac: bool = True
downloads_simultaneous_per_track_max: int = 20
download_delay_sec_min: float = 3.0
download_delay_sec_max: float = 5.0
download_delay_sec_min: float = 1.0
download_delay_sec_max: float = 3.0
album_track_num_pad_min: int = 1
downloads_concurrent_max: int = 3
symlink_to_track: bool = False