👷 Silence ffmpeg output. Fixes #103
This commit is contained in:
@@ -477,7 +477,7 @@ class Download:
|
|||||||
|
|
||||||
def _video_convert(self, path_file: str) -> str:
|
def _video_convert(self, path_file: str) -> str:
|
||||||
path_file_out = path_file + AudioExtensions.MP4
|
path_file_out = path_file + AudioExtensions.MP4
|
||||||
result, _ = ffmpeg.input(path_file).output(path_file_out, map=0, c="copy").run()
|
result, _ = ffmpeg.input(path_file).output(path_file_out, map=0, c="copy", loglevel="quiet").run()
|
||||||
|
|
||||||
return path_file_out
|
return path_file_out
|
||||||
|
|
||||||
@@ -485,7 +485,9 @@ class Download:
|
|||||||
path_media_out = path_media_src + AudioExtensions.FLAC
|
path_media_out = path_media_src + AudioExtensions.FLAC
|
||||||
result, _ = (
|
result, _ = (
|
||||||
ffmpeg.input(path_media_src)
|
ffmpeg.input(path_media_src)
|
||||||
.output(path_media_out, map=0, movflags="use_metadata_tags", acodec="copy", map_metadata="0:g")
|
.output(
|
||||||
|
path_media_out, map=0, movflags="use_metadata_tags", acodec="copy", map_metadata="0:g", loglevel="quiet"
|
||||||
|
)
|
||||||
.run()
|
.run()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user