Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] mp3 to ogg
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mistake25
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2008
Posts: 144

PostPosted: Wed Jan 06, 2010 2:25 pm    Post subject: [solved] mp3 to ogg Reply with quote

hi,
is there for linux some program that allows batch mp3 to ogg conversion with making some edits, i want to output ogg file have have 320kbps birtate and 48000 sampling rate (input mp3 is everytime higher, or at least at the same parameters)
thanks


Last edited by mistake25 on Sun Jul 11, 2010 7:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Wed Jan 06, 2010 8:35 pm    Post subject: Reply with quote

Converting a set of files on the command line (using vorbis-tools and mpg123) could be done with:
Code:
for FILE in *; do
  mpg123 -w- "$FILE" | oggenc -b320 --resample 48000 -o"$(echo "$FILE" | sed -e 's/\.mp3$/.ogg/i')" -
done
Not tested!

When you say "making some edits", are you refering to tags?
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Wed Jan 06, 2010 8:37 pm    Post subject: Reply with quote

Oh, and by the way, this is still variable bit rate. If you need it to be exactly 320 kbps for some reason, you need to add the --managed option to oggenc (though that would be a bad idea unless you're streaming or something).
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
mistake25
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2008
Posts: 144

PostPosted: Wed Jan 06, 2010 9:53 pm    Post subject: Reply with quote

i want to all my output ogg files to be with the same parameters (because input files have diferent), means 320kbps and 48000 bitrate, i'll try command you posted and get you know if it worked
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sat Jan 09, 2010 2:45 pm    Post subject: Reply with quote

Why would you want to do that tho? If you're worried about quality you shouldn't transcode from mp3. If you're not, why not use a quality setting for ogg vorbis like -q5 instead?
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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