It is currently Mon May 21, 2018 12:56 pm

need to modify my scripts to nuke bad mp3s& rm mp3s 20sec r<

All times are UTC - 6 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 PostPosted: Fri Feb 18, 2011 8:12 am   

Joined: Tue Aug 21, 2007 3:40 pm
Posts: 3
i am wondering if this script could be easily modified to delete all songs under 20 seconds ? i was told mp3info could do that. apparently i have some way chopped off songs that are still passing with few errors :

i hear its very poorly written too, so i rewrite would be just fine as well. this only works with mp3info. if there is anything better at finding bad guys that are .mp3 files then i'm open to trying new scripts.

i have one other addition to make -- nuke all songs that are 20 seconds are less. occasionally you get a song that small, but most of the time, it never happens, and i've got bunches of cut off songs with few seconds. i may adjust that 20 seconds to a higher number once i see them in banshee.

i want to thank any and all of you for your help. you may pastebinit (app name) the fixed or redone script for all to use.

here is my masterblaster script which should delete all marked bad entries in the log file

thank you. bet this could help bunches of people out.

everyone and you, have a nice day. :)

 PostPosted: Mon Feb 28, 2011 1:51 pm   

Joined: Mon May 31, 2010 7:40 pm
Posts: 25
I don't think anything beats Exiftool for command-line metadata power and versatility. Works in Linux, Windows**, Mac, etc (anything that can run Perl). Works for all kinds of image (very extensive output for digital camera images), video, audio, and other media files.

I was able to install it using the yum repositories but you can read and download it from the link below.

I would work on a script, but would rather finish cooking my wild rice vegetable soup.

As you can see from the output below, it gives you the duration if this is solely what you're basing your script on for deletion.

Here is sample output for OGG, MP3, and MPC

exiftool "Stone Sour-Stone Sour-Bother.mp3"
ExifTool Version Number         : 6.93
File Name                       : Stone Sour-Stone Sour-Bother.mp3
Directory                       : .
File Size                       : 6 MB
File Modification Date/Time     : 2006:05:15 19:09:52
File Type                       : MP3
MIME Type                       : audio/mpeg
MPEG Audio Version              : 1
Audio Layer                     : 3
Audio Bitrate                   : 128000
Sample Rate                     : 44100
Channel Mode                    : Joint Stereo
MS Stereo                       : On
Intensity Stereo                : Off
Copyright Flag                  : False
Original Media                  : True
Emphasis                        : None
Album                           : Stone Sour
Artist                          : Stone Sour
Comment                         : *** / Foobar2000: MPC->MP3
Genre                           : Rock
Title                           : Bother
Track                           : 08
Recording Time                  : 2002
User Defined Text               : (sub-genre) Alt Metal
Year                            : 2002
Duration                        : 0:06:03.67 (approx)

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours

Who is online

Users browsing this forum: No registered users and 9 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group