LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-09-2017, 02:49 PM   #16
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 129

Original Poster
Rep: Reputation: 25
Thumbs up


Quote:
Originally Posted by BW-userx View Post
here is something that may help you make a list of all the files at whatever bit rate you want to find out, and store the names or yo could mod it and make it move the files to a location so you can have them in one place to work on.
Code:
#!/bin/bash


mp3_path="path to mp3s"

while read FILENAME
do


		f=$FILENAME
		path=${f%/*}
		xfile=${f##*/}
		title=${xfile%.*}
		ext=${xfile##*.}

rateis="$(mp3info -r m -p "%r\n" "${FILENAME}")"

if [[ "$rateis" -eq '320' ]] ; then

  printf "$rateis - $title\n"

  echo '$rateis - $FILENAME" >> /pathTOList/ListName


done < <(find "$mp3_path" -type f -name "*.mp3")
you could also just write a script to re sample or do whatever it is you want done to them while in the directory they are in. Leaving them all in the order you created and organized them.
I had no idea a script was this powerful. I could literally do whatever I wanted with the files if I knew how. It's mindblowing. Like you said I can move the files that aren't 320kbps into their own folder so I would automatically know which ones were which. It's mental. The possibilities are endless as they say. It is literally like writing a program in C. I also have found a few albums whose tags aren't quite right so I could technically write a script to check through the files for incomplete tags too! Wow.
 
Old 03-09-2017, 04:40 PM   #17
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,608

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
Quote:
Originally Posted by breadbin View Post
I had no idea - I could technically write a script to check through the files for incomplete tags too! Wow.
yep I got scripts for all of that mp3 stuff re sampling and moving into another directory structure and or just keeping them where they are at and re-sampling them in place, removing the old one and putting the new on in its place.

you can use that as a template to get you started - just build off of it. Use that exiftool snippet to get more details off of your mp3's to use. That is a good template to use for exiftool also.

Last edited by BW-userx; 03-09-2017 at 04:42 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I find out the bitrate of an mp3? redhatman Linux - Newbie 4 11-22-2013 06:30 PM
Same mp3 but bitrate changes on different distro farmerdave Linux - Software 1 01-30-2011 03:19 AM
Reduce MP3 bitrate lumpfish Linux - Software 5 10-26-2009 06:17 AM
mp3 bitrate converter bird603568 Slackware 10 08-13-2006 11:56 PM
Covert Bitrate of MP3's DiZASTiX Linux - Software 5 05-19-2003 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration