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.