Skip to content

Instantly share code, notes, and snippets.

@melastmohican
Created January 4, 2017 19:11
Show Gist options
  • Save melastmohican/6f9ec66b3b9898a557ca3bfcea70a19f to your computer and use it in GitHub Desktop.
Save melastmohican/6f9ec66b3b9898a557ca3bfcea70a19f to your computer and use it in GitHub Desktop.
Script for removing sound from 360 degree video and copying metadata from original
#!/bin/bash
rm -f *-0.mp4*
rm -f *.xm*
for i in *.{MP4,mp4}
do
ffmpeg -i "$i" -vcodec copy -an "${i%.mp4}-0.mp4"
exiftool -xmp:all -X -w! xml "$i"
exiftool -TagsFromFile "${i%.mp4}.xml" "${i%.mp4}-0.mp4"
exiftool -o "${i%.mp4}.xmp" -xmp:all "$i"
exiftool -TagsFromFile "${i%.mp4}.xmp" "${i%.mp4}-0.mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment