Last active
November 26, 2023 09:51
-
-
Save aakbar5/2edcfcff4e8b89f45525a6dff8d85f7c to your computer and use it in GitHub Desktop.
Video -- Reduce video size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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