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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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 :)