USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

need to encode mp3 from flac? so did i

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Audio and Video Applications
View previous topic :: View next topic  
Author Message
jbsnake
Moderator


Joined: 02 Dec 2024
Posts: 1551
Location: Georgia

PostPosted: Sun May 01, 2024 5:59 am    Post subject: need to encode mp3 from flac? so did i Reply with quote

first...go to the directory you want to convert from (i.e. the directory with the flac files in it)
Code:

cd /home/jbsnake/music/flac

and ofcourse we have to make sure we have a directory to put the mp3's
Code:

mkdir ../mp3

now let's convert Smile
Code:

for file in *.flac
do
     flac -d -o - "$file" | lame -b 320 -h - > "../mp3/${file:0:${#file}-5}".mp3
done

the above should take every file that ends in .flac and convert it to mp3, and rename it to whatever.mp3
hope this helps someone...i know it took me awhile to figure out how Smile



_________________
laptop: Arch 0.7.2 (Gimmick) - Kernel 2.6.17-ARCH
laptop: Suse 10.1 - Kernel 2.6.15
server: Arch 0.7.2 (Gimmick) - Kernel 2.6.17-ARCH
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Audio and Video Applications All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
All content © 2024 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2006 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse