Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ogg/vorbis files have noise, mp3s don't [SOLVED]
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
Penguin of Wonder
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 280
Location: West Virginia

PostPosted: Thu Sep 14, 2006 4:16 am    Post subject: ogg/vorbis files have noise, mp3s don't [SOLVED] Reply with quote

I just grip installed (which was a struggle), so I ripped a CD or two to my hard drive to test it out. I ripped them all in ogg. At first I just thought it was the ultra crappy laptop speakers my DELL came with, but I get the same noise with my Bose headphones as well. I thought perhaps it was a hardware problem, but the noise isn't there when I rip the same songs in MP3. It sounds like the tracks in ogg were doubled over, except the background track (the noise) sounds like a bad midget choir from the Wizard of Oz. I found another thread about noise and they fixed that by switching from XMMS to another player, so I downloaded Rhythmbox, but it produces the same results. Any suggestions?

Any help is always appreciated! Thanks.
_________________
My Linux Blog

AMD64 3700+
2G DDR 3200 Ram
320G HDD


Last edited by Penguin of Wonder on Sat Sep 16, 2006 3:04 am; edited 1 time in total
Back to top
View user's profile Send private message
flazz
Guru
Guru


Joined: 22 Nov 2003
Posts: 496
Location: Florida

PostPosted: Thu Sep 14, 2006 4:40 am    Post subject: Reply with quote

one of two things is happening, the encoding went wrong OR the decoding is going wrong (OR both)

which codecs/apps are you using to rip, encode, and decode. XMMS and Rhythmbox could be using the same coDEC(oder) so the results will be the same.

to test the playback grab an ogg file that you can trus was encoded properly. play it with ogg123 (man ogg123), then if xmms or rhythmbox still sounds bad its the playback method for those apps, decoder.

to test the encoding find a wav file and encode it with oggenc (man oggenc) and then play it with ogg123.

i'd assume the ripping stage isnt the problem because mp3s are ripped properly.

basically use oggenc and ogg123 to test if your apps are messed up.

also could you not be hooked up to alsa properly, are you using esd or arts and its not configured properly?
Back to top
View user's profile Send private message
Penguin of Wonder
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 280
Location: West Virginia

PostPosted: Thu Sep 14, 2006 5:08 am    Post subject: Reply with quote

I'm using Grip to rip my audio. The codec it says its using to rip the .wav file is "Grip (cdparanoia)", regular old cparanoia is listed as well, I don't know the difference. But I've only used to grip version so far. The encoder for my ogg files is "oggenec". I'm not real sure about this, but xmms uses the Ogg Vorbis Player 1.2.10 [libvorbis.so] plugin. I assume thats my decoder. I don't know what rhythm box uses, and I honestly don't know how to find out. Its not listed anywhere I can see, not like xmms' was.

I "trust" all of my rips I suppose, I don't know why I wouldn't. But playing

Code:
steveno@oliver-1 ~/mp3/black label society/1919 eternal $ ogg123 america\ the\ beautiful.ogg

Audio Device:   Advanced Linux Sound Architecture (ALSA) output

Playing: america the beautiful.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
Title: America The Beautiful
Artist: Black Label Society
Genre: Metal
Date: 2002
Album: 1919 Eternal
Track number: 14

and
Code:
steveno@oliver-1 ~/mp3/luciano pavarotti/nessun dorma  arien  duette $ ogg123 la\ traviata\ \ libiamo\ nelllieti\ calici.ogg

Audio Device:   Advanced Linux Sound Architecture (ALSA) output

Playing: la traviata  libiamo nelllieti calici.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
Title: La Traviata - Libiamo nell'lieti calici
Artist: Luciano Pavarotti
Genre: Classical
Date: 1995
Album: Nessun dorma - Arien & Duette
Track number: 01

Produced the "noise" as well. Thats two different tracks, from two different CDs, ripped at different times during the day, not all in one sitting.

Uh, my guess is I'm using arts. How do I tell?

Hoped that helped some! Thanks for the quick reply!
_________________
My Linux Blog

AMD64 3700+
2G DDR 3200 Ram
320G HDD
Back to top
View user's profile Send private message
flazz
Guru
Guru


Joined: 22 Nov 2003
Posts: 496
Location: Florida

PostPosted: Thu Sep 14, 2006 1:33 pm    Post subject: Reply with quote

chances are if you are using kde you have arts, i cant think of another reason you would tho, but f you are using gnome, i think you could have a better chance of using esd.

determine if you have a sound daemon:
Code:
ps -e|grep arts
or
Code:
ps -e|grep esd

btw having a sound daemon does not mean you have to use it, i believe even if a sound deamon is running you can access alsa directly, and it looks like you are.

btw to "trust" the rips, just use cdparanoia on the command line, and play the wav file directly. its allways good to get down to the minimal system to eliminate variables. also i'm assuming you have alsa setup properly because your mp3s play fine.

there are many sample ogg files here: http://www.xiph.org/vorbis/listen.html you could use to see if they play fine. if they do play fine, you know your decoder is the problem, if they dont, you can still have a bad decoder, but you have proof that the encoder is messed up.
Back to top
View user's profile Send private message
Penguin of Wonder
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 280
Location: West Virginia

PostPosted: Thu Sep 14, 2006 3:11 pm    Post subject: Reply with quote

I'm actually using Fluxbox with a random array of Gnome/Gnome based and KDE/KDE based programs

Code:
steveno@oliver-1 ~ $ ps -e|grep arts
 6392 ?        00:02:14 artsd


The same code for esd returned nothing. A sample ogg file from website plays without any noise, so I guess that means something is wrong with my encoder. So any suggestions on how to fix a en/decoder?
_________________
My Linux Blog

AMD64 3700+
2G DDR 3200 Ram
320G HDD
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: Thu Sep 14, 2006 3:21 pm    Post subject: Reply with quote

Which version of media-sound/vorbis-tools do you use?
_________________
"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
Penguin of Wonder
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 280
Location: West Virginia

PostPosted: Thu Sep 14, 2006 4:11 pm    Post subject: Reply with quote

Code:
oliver-1 steveno # emerge media-sound/vorbis-tools

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-sound/vorbis-tools-1.0.1  USE="nls -flac -speex" 0 kB

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] no

Quitting.

_________________
My Linux Blog

AMD64 3700+
2G DDR 3200 Ram
320G HDD
Back to top
View user's profile Send private message
Kabuto
l33t
l33t


Joined: 01 Aug 2002
Posts: 701

PostPosted: Thu Sep 14, 2006 4:53 pm    Post subject: Reply with quote

You might try to filter you CFLAGS down if possible. Also another option might be to filter out MMX and SSE by building with MCPU=
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: Thu Sep 14, 2006 6:17 pm    Post subject: Reply with quote

Try the ~arch versions of libogg, libvorbis and vorbis-tools. Also, instead of grip, I recommend RubyRipper. https://forums.gentoo.org/viewtopic-p-3575223.html#3575223
_________________
"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
yngwin
Retired Dev
Retired Dev


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

PostPosted: Sat Sep 16, 2006 1:35 am    Post subject: Reply with quote

Rubyripper is in portage now, so no need to check out my overlay for that.
_________________
"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
Penguin of Wonder
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 280
Location: West Virginia

PostPosted: Sat Sep 16, 2006 2:28 am    Post subject: Reply with quote

I have updated the given lib files to the testing versions. After syncing I found rubyripper in Portage, but I cannot for the life of me emerge it. I have even gone as far as putting

ACCEPT_KEYWORDS="~x86"

in my /etc/make.conf file. Yet I still cannot install it. Any ideas on whats up with that? I haven't tested the new libs with grip yet though, I will report back. Thanks for the help so far.
_________________
My Linux Blog

AMD64 3700+
2G DDR 3200 Ram
320G HDD
Back to top
View user's profile Send private message
Penguin of Wonder
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 280
Location: West Virginia

PostPosted: Sat Sep 16, 2006 3:04 am    Post subject: Reply with quote

For some reason I couldn't get Grip to work, but after using cdparinoia and oggenc through the CLI my single track no longer has noise. So I suppose there must of been something wrong with vorbis encoder. I'll mark this thread fixed. If anyone can emerge rubyripper let me know!

Once again thanks for the help!
_________________
My Linux Blog

AMD64 3700+
2G DDR 3200 Ram
320G HDD
Back to top
View user's profile Send private message
Nate_S
Guru
Guru


Joined: 18 Mar 2004
Posts: 414

PostPosted: Fri Sep 22, 2006 3:10 am    Post subject: Reply with quote

Looks to me like the rubyripper ebuild is marked ~amd64 only. just copy the ebuild to your overlay and add ~x86 to the keywords. I did that and it worked just fine

-Nate
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