FFMPEG

Compess Videos

Compess huge videos to smaller (400MB to 87MB)

ffmpeg -i $1 -vcodec h264 -b:v 1000k -acodec mp3 $2
  • $1 = Input File

  • $2 = Output File

Bulk Update Metadata

find . -type f -iname '*.$1'  -exec ffmpeg   -i "{}"   -codec copy   -metadata artist="$2"   -metadata album="$3" -metadata date=$4   "{}.u.$1" \;  -exec mv   "{}.u.$1" "{}" \;
  • $1 = File Extension (e.g. mp3, mp4)

  • $2 = Artist (Example)

  • $3 = Album (Example)

  • $4 = Year (Example)

  1. All Example noted above can be changed to any “-metadata <name>=<value>”