Forums
New posts
Search forums
What's new
New posts
Latest activity
Members
Registered members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Audio and Video Talk
Digital
Standardising tag metadata across a large library
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Help Support AVForums:
This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Message
<blockquote data-quote="Now Playing" data-source="post: 658902" data-attributes="member: 2381"><p>Identify all FLAC files with ID3 tags embedded and remove them:</p><p>[code]SELECT __path</p><p> FROM audio</p><p> WHERE (__filetype = 'FLAC' AND </p><p> __tag != 'VorbisComment') </p><p> ORDER BY __path;</p><p>[/code]</p><p></p><p>Export that query to a text file named id3inFLAC.list, place it in a folder along with this bash script, install id3v2:</p><p>[code]#!/bin/bash</p><p></p><p>id3v2=/bin/id3v2</p><p>cwd=$(pwd)</p><p>filelist=./id3inFLAC.list</p><p></p><p># set the number of seconds to run</p><p># multiply by 3600 for each hour</p><p>(( seconds_to_run= 24 * 3600 ))</p><p></p><p>echo "Run duration: $seconds_to_run seconds"</p><p>echo "Albums to process: " $(wc -l $filelist)</p><p></p><p>while [ -s $filelist -a $SECONDS -lt $seconds_to_run ] ; do</p><p> file=$(head -1 $filelist)</p><p> echo .</p><p> echo .</p><p> echo Removing ID3 tags from: "$file"</p><p> echo .</p><p> echo .</p><p> cd "$file"</p><p> find . -name "*.flac" -exec $id3v2 --delete-all {} \;</p><p> # flac -f -8 *.flac</p><p> cd $cwd</p><p> # remove current file from list</p><p> sed -i.prev '1d' $filelist</p><p>done[/code]</p></blockquote><p></p>
[QUOTE="Now Playing, post: 658902, member: 2381"] Identify all FLAC files with ID3 tags embedded and remove them: [code]SELECT __path FROM audio WHERE (__filetype = 'FLAC' AND __tag != 'VorbisComment') ORDER BY __path; [/code] Export that query to a text file named id3inFLAC.list, place it in a folder along with this bash script, install id3v2: [code]#!/bin/bash id3v2=/bin/id3v2 cwd=$(pwd) filelist=./id3inFLAC.list # set the number of seconds to run # multiply by 3600 for each hour (( seconds_to_run= 24 * 3600 )) echo "Run duration: $seconds_to_run seconds" echo "Albums to process: " $(wc -l $filelist) while [ -s $filelist -a $SECONDS -lt $seconds_to_run ] ; do file=$(head -1 $filelist) echo . echo . echo Removing ID3 tags from: "$file" echo . echo . cd "$file" find . -name "*.flac" -exec $id3v2 --delete-all {} \; # flac -f -8 *.flac cd $cwd # remove current file from list sed -i.prev '1d' $filelist done[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Audio and Video Talk
Digital
Standardising tag metadata across a large library
Top