diff --git a/lbry/file_analysis.py b/lbry/file_analysis.py index 75d119647..baf62b499 100644 --- a/lbry/file_analysis.py +++ b/lbry/file_analysis.py @@ -14,6 +14,12 @@ log = logging.getLogger(__name__) class VideoFileAnalyzer: + def __init__(self, conf: TranscodeConfig): + self._conf = conf + self._available_encoders = "" + self._ffmpeg_installed = False + self._which = None + async def _execute(self, command, arguments): args = shlex.split(arguments) process = await asyncio.create_subprocess_exec(self._conf.ffmpeg_folder + command, *args, @@ -42,12 +48,6 @@ class VideoFileAnalyzer: self._ffmpeg_installed = True log.debug("Using %s at %s", version.splitlines()[0].split(" Copyright")[0], self._which) - def __init__(self, conf: TranscodeConfig): - self._conf = conf - self._available_encoders = "" - self._ffmpeg_installed = False - self._which = None - async def status(self, reset=False): if reset: self._available_encoders = ""