Skip to content

Instantly share code, notes, and snippets.

View paulkre's full-sized avatar

Paul Kretschel paulkre

  • Düsseldorf, Germany
View GitHub Profile

Keybase proof

I hereby claim:

  • I am paulkre on github.
  • I am paulkre (https://keybase.io/paulkre) on keybase.
  • I have a public key ASCGWd_VSKFn8MNfBMoS9I4vEGvKzabCrL45V0MsZW5qbAo

To claim this, I am signing this object:

#!/bin/bash
apt-get update
apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
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 November 19, 2020 15:56
FFmpeg command for converting MOV files to MP4
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.
ffmpeg -r 60 -f image2 -i %05d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p out.mp4