Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound normalization?
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
Sastraxi
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 258

PostPosted: Thu Jan 15, 2004 1:33 pm    Post subject: Sound normalization? Reply with quote

I've build a mythtv pvr box, and it's doing great. There's one thing we'd like to see though... real-time volumen normalization. Is there something that can do this? It's a pain watching movies or TV shows and having to adjust the volume every 10 seconds (for example, the Indiana Jones DVD has parts where it's fine at "volume 10" and too quiet at "volume 30"!)... maybe some sound server can do this?
Back to top
View user's profile Send private message
Kristleifur
n00b
n00b


Joined: 04 Jan 2004
Posts: 41
Location: Iceland

PostPosted: Thu Jan 15, 2004 10:44 pm    Post subject: Reply with quote

Have you seen ReplayGain?

foobar2000 for Windows uses it. Maybe there's a media player that does, too.
Back to top
View user's profile Send private message
Sastraxi
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 258

PostPosted: Fri Jan 16, 2004 4:49 am    Post subject: Reply with quote

The problem is, I'm looking to normalize live input.
Back to top
View user's profile Send private message
Woody
Guru
Guru


Joined: 30 Nov 2002
Posts: 592
Location: Milwaukee

PostPosted: Fri Jan 16, 2004 9:00 am    Post subject: Reply with quote

Normalisation only makes sense on the whole...i.e. you normalise
a complete wav by analysing the whole thing. What you really want
is very agressive compression.
Back to top
View user's profile Send private message
Sastraxi
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 258

PostPosted: Fri Jan 16, 2004 10:51 pm    Post subject: Reply with quote

I'm looking for something that will analyse the output from /dev/dsp. If it goes above a certain decibel level (after volume controls are changed) for too long, it will adjust the volume controls.

Perhaps I could use C++ to do this; seems like an interesting project!
Back to top
View user's profile Send private message
Kristleifur
n00b
n00b


Joined: 04 Jan 2004
Posts: 41
Location: Iceland

PostPosted: Sat Jan 17, 2004 3:12 am    Post subject: Reply with quote

You just reinvented the compressor, basically :)

While there is a subtle and useful difference what you're talking about and a classical compressor, I really encourage reading about the techniques of compression and limiting.

Good places to start might be http://sospubs.co.uk, http://em411.com and maybe http://futureproducers.com. There are probably others. Actually, http://hydrogenaudio.org probably has something, too.

If you'd describe what you want to a sound engineer, he'd probably give you a compressor with really long attack / release times.

There is a good chance that something useful might be available for Jack (ebuild: jack-audio-connection-kit).
Back to top
View user's profile Send private message
Sastraxi
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 258

PostPosted: Sat Jan 17, 2004 5:21 am    Post subject: Reply with quote

Thanks for the reply Kristleifur :)

I figured that I'd probably stumbled onto something that had been done before, and having done a few (not many mind you) recording sessions with my brother's band, I've got a fair idea of where I could be headed with this.

I'll look up Jack; perhaps I can get it to fit my needs.
Back to top
View user's profile Send private message
Sastraxi
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 258

PostPosted: Sat Jan 17, 2004 5:46 am    Post subject: Reply with quote

Okay, I'm going to get jack audio connection kit, jack rack, the plugins from "Steve Harris" (which includes several low-CPU configurable compressors :D), and libjackasyn to allow MythTv to become a Jack source....

Heh, this is gonna be great :D
Back to top
View user's profile Send private message
Kristleifur
n00b
n00b


Joined: 04 Jan 2004
Posts: 41
Location: Iceland

PostPosted: Thu Jan 22, 2004 1:03 am    Post subject: Reply with quote

Please keep us posted. I never get around to playing with jack, as I intend to. Stories would be appreciated.
Back to top
View user's profile Send private message
Sastraxi
Apprentice
Apprentice


Joined: 25 Feb 2003
Posts: 258

PostPosted: Fri Feb 27, 2004 12:11 am    Post subject: Reply with quote

If you guys are still interested:

MythTv supports ALSA now :lol: Which means that it should be working with the standard alsa-lib output to JACK bit. However, I haven't taken many more steps with it. Before I had used jacklaunch (from ebuild: libjackasyn) to connect; it wouldn't be able to do the TV bit (it crashed), and music would go through just fine (although the compressors did get very low quality on the output from jacklaunch... who knows).

However it should be completely doable at this point!
Back to top
View user's profile Send private message
Kristleifur
n00b
n00b


Joined: 04 Jan 2004
Posts: 41
Location: Iceland

PostPosted: Fri Feb 27, 2004 11:40 am    Post subject: Reply with quote

Cool. I have got to get around to setting up Jack and all that nice audio stuff on my machine.
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