Menu

#16 Fix MP3 encoding

open
8
2003-02-28
2003-02-28
No

Was having problems with the lumps of encoded MP3 data coming out of lame coming in unpredictable sizes...

Discussion

  • Jozef Hatala

    Jozef Hatala - 2003-03-03

    Logged In: YES
    user_id=300564

    This would probably fix the FAAC encoding, too. Support for
    encoding variable-frame-length compressed audio is currently a
    mess. FAAC's additional problem is that the encoder introduces
    delay: first 5 or so frames result in zero-length output from the
    encoder.

     
  • Stuart Espey

    Stuart Espey - 2003-03-03

    Logged In: YES
    user_id=206022

    i believe that really is a necessary evil of the encoder, it has to prime its forwards and backwards buffers.

    Essentially, you need to have some way of chunking the incoming audio on frame boundaries.

    The decoder also has to prime its buffers (faad1 outputs 2 empty frames before it starts outputting... but its not such a problem when decoding)

    What about just dropping the first 5 blank frames from FAAC? That would be the solution with a b-frame encoding codec...

    The further problem is you will have to encode an extra number of frames of silence (equal to initially dropped frames) at the end of the process to get the final compressed frames... I think :)

     

Log in to post a comment.

MongoDB Logo MongoDB