Quick shareable videos using ffmpeg
Unproofread notes
ffmpeg
is great!
If you want to compress a video without visible loss in the quality, here's the command:
ffmpeg -i input.mp4 -vcodec libx264 -crf 28 output.mp4
And if you want to speed the video up by, say, 1.33x
, you can just run the below command:
ffmpeg -i input.mp4 -filter:v "setpts=0.75*PTS" -filter:a "atempo=1.33333" -r 60 output.mp4
And you can also combine both above commands into one, just run the below command and your video will be compressed as well as become 1.33x faster in seconds:
ffmpeg -i input.mov -vcodec libx264 -crf 28 -filter:v "setpts=0.75*PTS" -filter:a "atempo=1.33333" -r 60 output.mp4
Make sure to
cd
into the folder where your video file is, and replaceinput.mp4
with the actual video filename you have.
- ← Previous
Changed fonts - Next →
Cool AI games
Comment via email