This commit is contained in:
itqop 2025-02-23 20:11:36 +03:00
parent 6c6b03a324
commit 7686adbaa3
1 changed files with 2 additions and 2 deletions

View File

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