Skip to content

Instantly share code, notes, and snippets.

@kowalcj0
Created January 29, 2017 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kowalcj0/385e3f3b12eae73d428a71c74fab77a2 to your computer and use it in GitHub Desktop.
Save kowalcj0/385e3f3b12eae73d428a71c74fab77a2 to your computer and use it in GitHub Desktop.
Covert and deinterlace mts with ac3 to mp4 with aac
for f in *.MTS
do
ffmpeg -i "${f}" \
-deinterlace \
-acodec aac -b:a 256k -strict -2 \
-metadata album="Trip to ..." \
-metadata title="Aquario Encantado - $(basename ${f} .MTS)" \
-metadata artist="you, me, she and him" \
-metadata year="2017" \
-metadata date="2017-01-04" \
-metadata genre="Documentary" \
-metadata comment="http://www.pousadareinoencantado.com/" \
"$(basename ${f} .MTS).mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment