fix(ffmpeg): prevent terminal window flash on Windows during media conversion
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
docs/source
|
docs/source
|
||||||
|
vs_code/
|
||||||
|
|
||||||
# From https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore
|
# From https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore
|
||||||
|
|
||||||
|
|||||||
@@ -1692,6 +1692,8 @@ class Download:
|
|||||||
ffmpeg = (
|
ffmpeg = (
|
||||||
FFmpeg(executable=self.settings.data.path_binary_ffmpeg)
|
FFmpeg(executable=self.settings.data.path_binary_ffmpeg)
|
||||||
.option("y")
|
.option("y")
|
||||||
|
.option("hide_banner")
|
||||||
|
.option("nostdin")
|
||||||
.input(url=path_file)
|
.input(url=path_file)
|
||||||
.output(url=path_file_out, codec="copy", map=0, loglevel="quiet")
|
.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)
|
path_media_out = path_media_src.with_suffix(AudioExtensions.FLAC)
|
||||||
ffmpeg = (
|
ffmpeg = (
|
||||||
FFmpeg(executable=self.settings.data.path_binary_ffmpeg)
|
FFmpeg(executable=self.settings.data.path_binary_ffmpeg)
|
||||||
|
.option("hide_banner")
|
||||||
|
.option("nostdin")
|
||||||
.input(url=path_media_src)
|
.input(url=path_media_src)
|
||||||
.output(
|
.output(
|
||||||
url=path_media_out,
|
url=path_media_out,
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ class Settings:
|
|||||||
cover_album_file: bool = True
|
cover_album_file: bool = True
|
||||||
extract_flac: bool = True
|
extract_flac: bool = True
|
||||||
downloads_simultaneous_per_track_max: int = 20
|
downloads_simultaneous_per_track_max: int = 20
|
||||||
download_delay_sec_min: float = 3.0
|
download_delay_sec_min: float = 1.0
|
||||||
download_delay_sec_max: float = 5.0
|
download_delay_sec_max: float = 3.0
|
||||||
album_track_num_pad_min: int = 1
|
album_track_num_pad_min: int = 1
|
||||||
downloads_concurrent_max: int = 3
|
downloads_concurrent_max: int = 3
|
||||||
symlink_to_track: bool = False
|
symlink_to_track: bool = False
|
||||||
|
|||||||
Reference in New Issue
Block a user