-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwavMp3RemoveMetadata.sh
More file actions
34 lines (27 loc) · 1.13 KB
/
wavMp3RemoveMetadata.sh
File metadata and controls
34 lines (27 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
source @includes.sh
echo '###################################################'
echo '# Description: Removes metadata from a wav file'
echo '# Usage: $ ./wavRemoveMetadata.sh /path/to/audio.wav'
echo '# Param 1: Audio file'
echo '# Requires: ffmpeg'
echo '###################################################'
echoNewline
################################################################################
################################################################################
# check parameters
if [[ $1 == "" ]] ; then
echoError "1st arg must be an audio file"
exit 1
fi
################################################################################
################################################################################
# get filename
filename=$1
outputFile="$filename"
# do conversion
ffmpeg -y -i $filename -map_metadata -1 -vn -codec:a copy -write_xing 0 -id3v2_version 0 "$outputFile"
################################################################################
################################################################################
# complete
echoSuccess "Removed metadata from: $outputFile"