Properly handle AAC/MP4 encoder delay
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
People
(Reporter: jya, Assigned: padenot)
References
Details
Attachments
(1 file)
| Reporter | ||
Comment 2•9 years ago
|
||
Updated•9 years ago
|
Comment 4•4 years ago
|
||
This is a duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=1703812#c18
Comment 5•3 years ago
|
||
AAC has traditionally had a default encoder delay set at 2112 frames.
For apple. FFmpeg native encoder uses 1024 samples. HE-AAC and v2 of it use again different amount of samples. There is also a problem with samples in the end.
There are two boxes to handle such information: sample group description box (sgpd) and sample-to-group (sbgp)
No, those signal how many samples should decoded to correctly decode further samples. In case of aac it is 1 samples, so 1024 samples cannot be just removed.
Please note a key commit in ffmpeg that fixed wrong intial priming removal for HE-AAC. https://github.com/FFmpeg/FFmpeg/commit/5114ce1e2a4c71ddf4971ad3cf9bd43ae16571c3
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 6•3 years ago
|
||
Depends on D168277
FWIW bug 1703812 landed.
| Assignee | ||
Comment 8•9 months ago
|
||
Ah yes we can close this, thanks. There is still remaining work to do (iirc, AAC in ADTS), but this is on file and/or there are comments in the code.
Description
•