Skip to content

Instantly share code, notes, and snippets.

apt-get update
apt-get install \
ca-certificates \
curl \
gnupg \
set -x
# Install Node.js for Debian
curl -sL | bash -
apt-get install -y nodejs
sudo apt-get install gcc g++ make
# Install yarn
curl -sL | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
paulkre /
Last active Nov 19, 2020
FFmpeg command for converting MOV files to MP4
ffmpeg -i -c:v libx264 -crf 23 -maxrate 6M -bufsize 2M -x264-params colormatrix=bt709 -c:a aac -b:a 160k output.mp4
Flag Description
-crf 23 Constant Rate Factor – ranges from 0 (no compression) to 51 (maximum compression).
-maxrate 6M -bufsize 2M Limits the output file size.
-x264-params colormatrix=bt709 Prevents colors from being washed out during compression.
-c:a aac -b:a 160k Sets the audio compression.
ffmpeg -r 60 -f image2 -i %05d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p out.mp4