From owner-freebsd-questions Fri Oct 25 9:45:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5679F37B59E for ; Fri, 25 Oct 2002 09:45:22 -0700 (PDT) Received: from johnson.mail.mindspring.net (johnson.mail.mindspring.net [207.69.200.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC3E843E3B for ; Fri, 25 Oct 2002 09:45:21 -0700 (PDT) (envelope-from jayyness@mindspring.com) Received: from smui04.slb.mindspring.net ([199.174.114.26]) by johnson.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1857aF-0007xg-00 for freebsd-questions@freebsd.org; Fri, 25 Oct 2002 12:45:15 -0400 Received: by smui04.slb.mindspring.net id MAA0000028629; Fri, 25 Oct 2002 12:45:14 -0400 (EDT) Date: Fri, 25 Oct 2002 12:45:14 -0400 From: "Totally Jayyness" To: freebsd-questions@freebsd.org Reply-To: jayyness@mindspring.com Subject: Script to change bitrates of mp3s Message-ID: X-Originating-IP: 12.159.71.202 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hopefully this mail will get through. If the groups get flooded by several similar e-mails in the next day or two, I apologize in advance there are several e-mails hung in my works e-mail server for some reason :( I was trying to figure out how to find out the bitrates and then reduce the bitrates of my mp3s on my freebsd 4.4-stable server. I found MP3:Info which will display bitrate and other information about an mp3. I also found that I can convert mp3 -> mp3 using LAME. So this is what I am trying to do now. I would like to write a script to read the bitrate of an mp3 and then if the bitrate is higher then 192 to dump the path/filename to a text file. When I run MP3::Info, the output looks like this. Track = zong_-_ugly_world_-money_mix-.mp3 BITRATE = 160 Is there a simple shell script string that would be something like this? If BITRATE > 192 then add path/filename to textfile.txt Thanks for any help. Oh, if you do reply, please also reply directly as I am also unable to get signed up for the mailing lists either for some reason. :( J To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message