formatting

This commit is contained in:
evilchili 2024-06-03 00:09:15 -07:00
parent 26aa401bfe
commit ddea04a58d

View File

@ -1,4 +1,5 @@
import logging import logging
import os
import subprocess import subprocess
from dataclasses import dataclass from dataclasses import dataclass
from io import BufferedReader from io import BufferedReader
@ -101,6 +102,8 @@ class FrameAlignedStream:
""" """
Create a FrameAlignedStream instance by transcoding an audio source on disk. Create a FrameAlignedStream instance by transcoding an audio source on disk.
""" """
args = [] if os.environ.get("DEBUG") else ["-hide_banner", "-loglevel", "quiet"]
ffmpeg_args = ( ffmpeg_args = (
ffmpeg.input(str(infile)) ffmpeg.input(str(infile))
.output( .output(
@ -116,7 +119,7 @@ class FrameAlignedStream:
"ar": kwargs.get("sample_rate", cls.sample_rate), "ar": kwargs.get("sample_rate", cls.sample_rate),
}, },
) )
.global_args("-hide_banner", "-vn") .global_args("-vn", *args)
.compile() .compile()
) )