Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: MP3's that end Loudly

by mikelieman (Friar)
on Nov 20, 2008 at 21:57 UTC ( [id://725000]=note: print w/replies, xml ) Need Help??


in reply to MP3's that end Loudly

Plug the output from the PC into an outboard audio limiter, and adjust that to your desired peak-level, before it hits your amplifier?

Replies are listed 'Best First'.
Re^2: MP3's that end Loudly
by jeffa (Bishop) on Nov 20, 2008 at 22:05 UTC

    Just to elaborate: this is called dynamic range compression ... not to be confused with audio data compression. The former is what makes the MP3's in the first place -- but the latter actually limits the output audio and prevents it from "being too loud."

    This can be done in Perl, i am quite sure ... but the problem is how does one attach a "virtual filter" to the output of the program playing their MP3 files? This is why so many people just solve the problem with hardware instead.

    UPDATE: drats -- I had it right the first time, sasdrtx. :) I used to be a janitor but I don't do that no more. Someone else can fix it. ;)

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)
    

      You have your latter and former mixed up.

      sas
Re^2: MP3's that end Loudly
by ALDUMAS (Initiate) on Nov 20, 2008 at 23:15 UTC
    I'm very appreciative of the reply, but I guess I didn't say clearly what I want to program... Let us say that you buy an audio CD and you want to listen to your favorite song. You look at the track listings and see that it's divided into TWO tracks, #1 and #2! The division is at a logical point, yes, but at a point where there is plenty of sound activity. If you tell your player to play just #1, the song will end suddenly. I want to avoid exactly that! Thus if i have a track whose last frames are not silence, I want to flag it to avoid playing that track by itself. So, how can I use a perl module to seek to the end of the MP3 track and check the volume level? Thank you so much. Please don't make me have to ask the C-Monk(ey)s Regards, ADUMAS
        I think your suggestion is a good one, as it is, after all, a very audio-mp3-centric issue. Thanks!

      I would just merge the files then:

      cat 1-05 Another_Brick_In_The_Wall >> 1-04_Happiest_Days_Of_Our_Lives
      Is one that works. Remember, some songs merge directly into the next song even though they are completely unrelated. These days I only deal with lossless files and appropriately merge them first before making my MP3 collection.

      I do think your idea is a good one however -- but how will it work for iTunes or XMMS users?

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)
      

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://725000]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-28 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found