The best way to compress video using Termux via a special script. Note that this method is much better than any existing application or website because it maintains the quality of the video and compresses it greatly.
Adjust the Constant Rate Factor (CRF) method with the following command:
| Put the video path and video name |
Code:
apt update && apt upgrade && pkg install ffmpeg
cd /Path video && ffmpeg -i VideoName.mp4 -vcodec libx264 -crf 28 output.mp4
Adjust the Constant Rate Factor (CRF) method with the following command:
Code:
CRF 45 to Optimize 90%
CRF 41 to Optimize 80%
CRF 38 to Optimize 75%
CRF 30 to Optimize 60%
CRF 25 to Optimize 50%




