Skip to content

Instantly share code, notes, and snippets.

@waleedsamy
Created October 2, 2017 14:38
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 waleedsamy/3ab21251e8f2a261cefe33722e9d4f59 to your computer and use it in GitHub Desktop.
Save waleedsamy/3ab21251e8f2a261cefe33722e9d4f59 to your computer and use it in GitHub Desktop.
update my mp3's to have only the artist information
l=Bob\ Marley
d=/songs/$l
find "$d" -type f -iname "*.mp3" -exec ls '{}' +
find "$d" -type f -iname "*.mp3" -exec mid3v2 -D '{}' +
find "$d" -type f -iname "*.mp3" -exec mid3v2 --delete-frames=TALB,TCON,TPE1,TDRC,TIT2,AENC,ASPI,COMM,COMR,ENCR,EQU2,ETCO,GEOB,GRID,LINK,MCDI,MLLT,OWNE,PRIV,PCNT,POPM,POSS,RBUF,RVA2,RVRB,SEEK,SIGN,SYLT,SYTC,TBPM,TCOM,TCOP,TDEN,TDLY,TDOR,TDRL,TDTG,TENC,TEXT,TFLT,TIPL,TIT3,TKEY,TLAN,TLEN,TMCL,TMED,TMOO,TOAL,TOFN,TOLY,TOPE,TOWN,TPE3,TPE4,TPOS,TPRO,TPUB,TRSN,TRSO,TSOA,TSOP,TSOT,TSRC,TSSE,TSST,TXXX,UFID,USER,USLT,WCOM,WCOP,WOAF,WOAR,WOAS,WORS,WPAY,WPUB,WXXX '{}' +
find "$d" -type f -iname "*.mp3" -exec mid3v2 -l '{}' +
find "$d" -type f -iname "*.mp3" -exec id3tag --artist="$l" '{}' +
for file in *.wma; do ffmpeg -i "${file}" -acodec libmp3lame -ab 320k -y "${file/.wma/.mp3}"; done
for file in *.rm; do ffmpeg -i "${file}" -acodec libmp3lame -ab 320k -y "${file/.rm/.mp3}"; done
for file in *.flv; do ffmpeg -i "${file}" -acodec libmp3lame -ab 320k -y "${file/.flv/.mp3}"; done
for file in *; do ffmpeg -i "${file}" -acodec libmp3lame -ab 320k -y "${file/.flv/.mp3}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment