ffmpeg视频压缩库相关指令

Compress Videos

  • 使用PowerShell窗口
# 压缩一个视频compress one mp4 video
ffmpeg -y -i test.mp4 -c:v libx264 -crf 25 -an test_compressed.mp4
# 压缩多个视频compress all mp4 videos in this folder
Get-ChildItem . -Filter *.mp4 | ForEach-Object {
    
     ffmpeg -y -i $_ -c:v libx264 -crf 25 -an "$($_.BaseName)_compressed.mp4" }

If the compressed video’s quality is too bad, try to use a lower -crf value.

猜你喜欢

转载自blog.csdn.net/KiTok/article/details/123108518