Strip video metadata
mouse 137 · person cloud · link
Last update
2019-01-28
2019
01-28
« — »
1
2
3
4
5
6
7
8
9
10
11
12
13
# print metadata
exiftool  in.mp4 | grep -iE "title|name"
mediainfo in.mp4 | grep -iE "title|name" # another tool

# remove metadata with ffmpeg/avconv
ffmpeg -i in.mp4 -map_metadata -1 -c:v copy -c:a copy out.mp4

# remove tags from MKV files:
mkvpropedit in.mkv --tags all: --delete title

# massive operations: detect and convert (fish shell)
for i in *.{mp4,avi,mkv}; echo -n "$i -- "; exiftool $i | grep -i title; or echo; end
for i in *.{mp4,avi}; ffmpeg -i $i -map_metadata -1 -c:v copy -c:a copy _$i; and mv _$i $i; end

Source: Superuser