fix
This commit is contained in:
parent
6c6b03a324
commit
7686adbaa3
|
@ -99,7 +99,7 @@ def convert_to_wav(input_file: str, output_file: str):
|
||||||
Логирует ошибки FFmpeg.
|
Логирует ошибки FFmpeg.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
logging.debug(f"🔄 Конвертация: {input_file} -> {output_file}")
|
logging.error(f"🔄 Конвертация: {input_file} -> {output_file}")
|
||||||
|
|
||||||
command = [
|
command = [
|
||||||
"ffmpeg", "-y", "-i", input_file,
|
"ffmpeg", "-y", "-i", input_file,
|
||||||
|
@ -112,7 +112,7 @@ def convert_to_wav(input_file: str, output_file: str):
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
logging.error(f"❌ Ошибка FFmpeg:\n{result.stderr.decode()}")
|
logging.error(f"❌ Ошибка FFmpeg:\n{result.stderr.decode()}")
|
||||||
else:
|
else:
|
||||||
logging.debug(f"✅ FFmpeg успешно создал файл {output_file}")
|
logging.error(f"✅ FFmpeg успешно создал файл {output_file}")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"❌ Исключение при конвертации {input_file}: {e}")
|
logging.error(f"❌ Исключение при конвертации {input_file}: {e}")
|
||||||
|
|
Loading…
Reference in New Issue