Skip to content

Instantly share code, notes, and snippets.

@csharpforevermore
Created September 21, 2022 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csharpforevermore/5ce17a02bdbfda8278675e217a6ddde5 to your computer and use it in GitHub Desktop.
Save csharpforevermore/5ce17a02bdbfda8278675e217a6ddde5 to your computer and use it in GitHub Desktop.
Encoding mp4 videos using FFMPEG
FFMPEG is used to reduce size of videos and compress
To reduce size
• ffmpeg -i .\inputvideo.mp4 -vcodec libx265 -crf 28 outputvideo.mp4
To compress audio
• ffmpeg -i .\2.mp4 -filter_complex "[0]dynaudnorm[a]" -map 0:v -map "[a]" -map 0:a -c:v copy -c:a:1 copy 3.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment