dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

ffmpeg-encode (219B)


      1 #!/bin/sh
      2 
      3 encode() {
      4 	ffmpeg -y -i "$1" \
      5 		-c:v libx264 -threads 0 -preset faster -pix_fmt yuv420p \
      6 		-c:a aac -crf 23 \
      7 		-max_muxing_queue_size 1024 \
      8 		"${1%.*}_encoded.mp4"
      9 }
     10 
     11 for f in "$@"; do
     12 	encode "$f"
     13 done