-
Star
(473)
You must be signed in to star a gist -
Fork
(79)
You must be signed in to fork a gist
-
-
Save lukehedger/277d136f68b028e22bed to your computer and use it in GitHub Desktop.
| $ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
Wouldn't it be much easier to use video compressor software? There are quite a few wonderful and high quality video compressors out there.
ffmpeg is video compression software (among many other things), as far as I can tell the only difference is that you run it from a command line instead of a GUI, and it's free.
Agreed. But for those who are not skillful in coding and programming, a software with simple GUI, especially when it's free, would be much easier to use.
But you will learn way more from using ffmpeg (which you would anyways with the GUI, just with extra steps, and probably some adware, or a paywall too).
Agreed, from the aspect of learning.
./ffmpeg -i input.mp4 -c:v libx265 -preset ultrafast -crf 28 -c:a aac -b:a 250k output.mp4This is better for h265, it's fast and should reduce the file size by 50-70% if you want better video, change the ultrafast to fast or change the -crf to a lower number like 24
If you want to change from 4K to 1080P, add
-s 1920x1080after the-i input.mp4
h256 does not seem to work in ios safari
But you will learn way more from using ffmpeg (which you would anyways with the GUI, just with extra steps, and probably some adware, or a paywall too).