LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-16-2005, 07:49 PM   #1
Gonto
Member
 
Registered: Apr 2005
Posts: 55

Rep: Reputation: 15
Enconding MP3 to lower bitrate


Hi,

I've al my MP3 in 128 or 192 KBPS and i need to encode them to 32 KBPS (better if it's MP3PRO. If it's MP3 that's fine too) to play them in My MP3 Player.
In windows i used to use DBowerAmp or something like that. I want a GUI to do so if it existrs. My player doesn0t support OGG
I have the Lame library installed but i want a GUI

Thanks
 
Old 06-16-2005, 09:47 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
I think transcode should be able to do that, it's mainly for video but it might help you.

Why not just use LAME though? It's really easy I use it to convert MP3s to 24kpbs to listen to on my mobile phone. This bash script takes a directory as an argument (where the MP3 files are) and it'll create a directory in there called output and chuck your files there. Couldn't be any easier if you wanted it to be
Code:
#/bin/bash

IFS='
'
FILES=`ls $1`

for file in $FILES
do

	echo "$file"
	mkdir $1/output &>/dev/null
	lame -b 32 -f -m m "$1/$file" "$1/output/$file"

done

echo
echo "FINISHED!"

exit 0
 
Old 07-20-2005, 04:50 AM   #3
Skrid
LQ Newbie
 
Registered: Jul 2002
Posts: 10

Rep: Reputation: 0
first at all thank you cs-cam this was exact that what i needed.

If you want to copy your ID3-Tags to the new file, just add a id3cp to the script (by using the id3-lib)

Code:
#/bin/bash

IFS='
'
FILES=`ls $1`

for file in $FILES
do

        echo "$file"
        mkdir $1/output &>/dev/null
        lame -b 32 -f -m m "$1/$file" "$1/output/$file"
        id3cp "$1/$file" "$1/output/$file"

done

echo
echo "FINISHED!"

exit 0

here is my script, it converts all files in a directory to 96kbit-joint-stereo
Code:
#/bin/bash

IFS='
'
FILES=`ls $1`

for file in $FILES
do

        echo "$file"

        mkdir $1/output &>/dev/null
        lame -b 96 -h -m j "$1/$file" "$1/output/$file"
        id3cp "$1/$file" "$1/output/$file"
done

mv $1/output/* $1
rm -Rf $1/output

echo
echo "FINISHED!"

exit 0
 
  


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 05:30 PM
Reduce MP3 bitrate lumpfish Linux - Software 5 10-26-2009 05:17 AM
Selecting bitrate in Kaudiocreator neranjana Linux - Software 0 10-06-2004 03:21 AM
Gaim font enconding solferino Debian 2 10-04-2004 02:55 AM
Covert Bitrate of MP3's DiZASTiX Linux - Software 5 05-19-2003 06:24 PM


All times are GMT -5. The time now is 03:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration