housekeeping

This commit is contained in:
Somdev Sangwan
2023-08-22 02:34:20 +05:30
committed by GitHub
parent 1a449b7d89
commit da1ef285f1

View File

@@ -63,7 +63,7 @@ def create_video(target_path: str, fps: float = 30) -> bool:
def restore_audio(target_path: str, output_path: str) -> None:
temp_output_path = get_temp_output_path(target_path)
done = run_ffmpeg(['-hwaccel', 'auto', '-i', temp_output_path, '-i', target_path, '-c:v', 'copy', '-map', '0:v:0', '-map', '1:a:0', '-y', output_path])
done = run_ffmpeg(['-i', temp_output_path, '-i', target_path, '-c:v', 'copy', '-map', '0:v:0', '-map', '1:a:0', '-y', output_path])
if not done:
move_temp(target_path, output_path)