FIX 降低压缩率

This commit is contained in:
kyj@bowong.ai 2025-04-25 18:09:50 +08:00
parent d12f6599f1
commit c7fed29a5c
1 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ class VideoChangeFPS:
ff = ffmpy.FFmpeg(
inputs={input_video: None},
outputs={
output_temp: f"-y -vf fps={target_fps} -c:v libx264 -c:a aac"
output_temp: f"-y -vf fps={target_fps} -c:v libx264 -c:a aac -preset slow -crf 16"
}
)
print("调整FPS命令:", ff.cmd)
@ -307,7 +307,7 @@ class VideoChangeFPS:
[0:a]{filter_audio}[a]
"
-map "[v]" -map "[a]"
-c:v libx264 -c:a aac
-c:v libx264 -c:a aac -preset slow -crf 16
"""
}
)