acm-uiuc / beats

Beats by ACM
11 stars 19 forks source link

Add volume normalization #29

Open colegleason opened 10 years ago

ajmadsen commented 10 years ago

How would this work for youtube videos?

colegleason commented 10 years ago

It would have to sample the volume for the beginning of the song and adjust to keep amplitude within some range.

On Wed, Sep 17, 2014 at 12:28 PM, Adam Madsen notifications@github.com wrote:

How would this work for youtube videos?

— Reply to this email directly or view it on GitHub https://github.com/acm-uiuc/beats/issues/29#issuecomment-55929661.

Cole Gleason

Student, University of Illinois at Urbana-Champaign Email: cg@colegleason.com Website: colegleason.com

colegleason commented 10 years ago

average amplitude, perhaps

Acoustics used to do this live, not modifying the files.

On Wed, Sep 17, 2014 at 12:29 PM, Cole colewashere@gmail.com wrote:

It would have to sample the volume for the beginning of the song and adjust to keep amplitude within some range.

On Wed, Sep 17, 2014 at 12:28 PM, Adam Madsen notifications@github.com wrote:

How would this work for youtube videos?

— Reply to this email directly or view it on GitHub https://github.com/acm-uiuc/beats/issues/29#issuecomment-55929661.

Cole Gleason

Student, University of Illinois at Urbana-Champaign Email: cg@colegleason.com Website: colegleason.com

Cole Gleason

Student, University of Illinois at Urbana-Champaign Email: cg@colegleason.com Website: colegleason.com

colegleason commented 10 years ago

How is beats playing youtube videos? Mplayer already supports this: http://www.commandlinefu.com/commands/view/8893/normalize-volume-output-in-mplayer

On Wed, Sep 17, 2014 at 12:30 PM, Cole colewashere@gmail.com wrote:

average amplitude, perhaps

Acoustics used to do this live, not modifying the files.

On Wed, Sep 17, 2014 at 12:29 PM, Cole colewashere@gmail.com wrote:

It would have to sample the volume for the beginning of the song and adjust to keep amplitude within some range.

On Wed, Sep 17, 2014 at 12:28 PM, Adam Madsen notifications@github.com wrote:

How would this work for youtube videos?

— Reply to this email directly or view it on GitHub https://github.com/acm-uiuc/beats/issues/29#issuecomment-55929661.

Cole Gleason

Student, University of Illinois at Urbana-Champaign Email: cg@colegleason.com Website: colegleason.com

Cole Gleason

Student, University of Illinois at Urbana-Champaign Email: cg@colegleason.com Website: colegleason.com

Cole Gleason

Student, University of Illinois at Urbana-Champaign Email: cg@colegleason.com Website: colegleason.com

ajmadsen commented 10 years ago

For actual audio files, you can use something like replaygain and store the values in the database no problem.

For audio sources you can't scan entirely before playing, you can do some sort of adaptive scaling/compressing, but that will destroy any sort of dynamic range in a song.

colegleason commented 10 years ago

I would rather have the adaptive scaling than constantly have to adjust the sound level in beats.

On Wed, Sep 17, 2014 at 12:34 PM, Adam Madsen notifications@github.com wrote:

For actual audio files, you can use something like replaygain and store the values in the database no problem.

For audio sources you can't scan entirely before playing, you can do some sort of adaptive scaling/compressing, but that will destroy any sort of dynamic range in a song.

— Reply to this email directly or view it on GitHub https://github.com/acm-uiuc/beats/issues/29#issuecomment-55930587.

Cole Gleason

Student, University of Illinois at Urbana-Champaign Email: cg@colegleason.com Website: colegleason.com