Skip to content

Instantly share code, notes, and snippets.

@kowalcj0
Created January 29, 2017 14:08
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/964fdd07d28314e0a48e9613531fbce0 to your computer and use it in GitHub Desktop.
Save kowalcj0/964fdd07d28314e0a48e9613531fbce0 to your computer and use it in GitHub Desktop.
Convert and deinterlace MTS to mp4 with ffmpeg and metadata
for f in *.MTS
do
ffmpeg -i "${f}" \
-deinterlace \
-acodec copy \
-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