FIX 降低压缩率
This commit is contained in:
@@ -276,7 +276,7 @@ class VideoChangeFPS:
|
|||||||
ff = ffmpy.FFmpeg(
|
ff = ffmpy.FFmpeg(
|
||||||
inputs={input_video: None},
|
inputs={input_video: None},
|
||||||
outputs={
|
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)
|
print("调整FPS命令:", ff.cmd)
|
||||||
@@ -307,7 +307,7 @@ class VideoChangeFPS:
|
|||||||
[0:a]{filter_audio}[a]
|
[0:a]{filter_audio}[a]
|
||||||
"
|
"
|
||||||
-map "[v]" -map "[a]"
|
-map "[v]" -map "[a]"
|
||||||
-c:v libx264 -c:a aac
|
-c:v libx264 -c:a aac -preset slow -crf 16
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user