Skip to content

Instantly share code, notes, and snippets.

@aakbar5
Last active November 26, 2023 09:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aakbar5/2edcfcff4e8b89f45525a6dff8d85f7c to your computer and use it in GitHub Desktop.
Save aakbar5/2edcfcff4e8b89f45525a6dff8d85f7c to your computer and use it in GitHub Desktop.
Video -- Reduce video size
Using FFMPEG
---
ffmpeg -i input.mp4 -s 320x240 -b 64k -vcodec mpeg1video -acodec copy output.mp4
Change parameters to get tradeoff quality and size
- Resolution via -s 320x240
- Bitrate via -b 64k
Using AVCONV
---
avconv -i input.mp4 -c:v libx264 -crf 18 -c:a copy output.mp4
- CRF @ https://slhck.info/video/2017/02/24/crf-guide.html
- Play with it to see quality vs size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment