Installation
Linux
Update system with apt
sudo apt install ffmpeg -yWindows
Usage
# WhatsApp supported video format
arguments=(
-y # Overwrite if exist
-i <source-file>
-bufsize 2M # Buffer size
-codec:v h264 # Video Codec
-codec:a aac # Audio Codec
-b:v 2M # Video bitrate
-b:a 128k # Audio bitrate
-s 960x540 # Resolution
<destination-file>.mp4
)
ffmpeg "${arguments[@]}"