Useful ffmpeg commands

  • Trim/Cut/Splitt Video
    ffmpeg -i input.mp4 -c copy -ss 00:05:00 -to 00:10:00 output.mp4

  • (re)encode Video with h.254 and AAC
    ffmpeg -i input.mp4 -vcodec h264 -acodec aac output.mp4

  • Resize Video to 1280×720 with high quality settings
    ffmpeg -i input.mp4 -vf scale=1280:720 -preset slow -crf 18 output.mp4

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.