Skip to content

Instantly share code, notes, and snippets.

View install-docker-ubuntu.sh
#!/bin/bash
apt-get update
apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
View bitnami-nginx-pm2.sh
set -x
# Install Node.js for Debian
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs
sudo apt-get install gcc g++ make
# Install yarn
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
@paulkre
paulkre / mov-to-mp4.md
Last active Nov 19, 2020
FFmpeg command for converting MOV files to MP4
View mov-to-mp4.md
ffmpeg -i input.mov -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.
View png-to-mp4.sh
ffmpeg -r 60 -f image2 -i %05d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p out.mp4