From: Lynne <dev@lynne.ee>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 2/2] aacdec: correctly skip padding at the start of frames and during seeking
Date: Mon, 30 Oct 2023 18:03:32 +0100 (CET)
Message-ID: <Ni0XaL_--3-9@lynne.ee> (raw)
In-Reply-To: <7e230234-7cc6-4c31-ae7b-fd86ef616f7a@betaapp.fastmail.com-NhzWMs9----9>
Oct 30, 2023, 08:38 by jb@videolan.org:
> Hello,
>
> Does this fix #2325 #9667?
>
It fully fixes the following:
- Decoding of MP4/M4A HE-AAC streams is delayed by 3009 samples
- Decoding of standalone ADTS AAC files generated by libavcodec's AAC encoder is delayed by 1024 samples
It partially fixes the following:
- Standalone ADTS AAC files generated by fdk-aac is delayed by 2048 samples (we cut 1024 with this patch)
- Standalone ADTS AAC files generated by apple's encoders is delayed by 2112 samples (we cut 1024 with this patch)
We cannot fix raw ADTS AAC in any way - with this patch, the decoder cuts off exactly the amount of samples demanded by the standard - 1024 for AAC-LC, and 4034 for HE-AAC. If the encoder adds more than this, it's the encoder's fault.
Does it fix "MP4 AAC Audio is delayed by 2ms when converted to PCM"?
Well, first of all, the title is wrong, 00:00:00.02 seconds is not 2 milliseconds, it is 20 milliseconds.
Second of all, it was not broken before? We strip off exactly what the MP4 editlist tells us to.
If the encoder or muxer's editlist is incorrect - we're going to cut off the wrong amount.
We also parse both editlists and itunes SMPB.
Does it fix "HE-AAC (not in mp4) decode samples off by one sample-time"
Yes, through this mechanism, I add a sample back in, which I forgot to do for this patch, but I've fixed it locally, and we're in sync:
Before: https://files.lynne.ee/aache_before.png
After: https://files.lynne.ee/aache_after.png
Original: https://files.lynne.ee/aache_orig.png
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2023-10-30 17:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-30 5:09 [FFmpeg-devel] [PATCH 1/2] decode: add ff_decode_skip_samples function Lynne
[not found] ` <Nhyz9MY--3-9@lynne.ee-NhyzDNG----9>
2023-10-30 5:10 ` [FFmpeg-devel] [PATCH 2/2] aacdec: correctly skip padding at the start of frames and during seeking Lynne
2023-10-30 7:38 ` Jean-Baptiste Kempf
[not found] ` <7e230234-7cc6-4c31-ae7b-fd86ef616f7a@betaapp.fastmail.com-NhzWMs9----9>
2023-10-30 17:03 ` Lynne [this message]
2023-11-04 10:41 ` [FFmpeg-devel] [PATCH 1/2] decode: add ff_decode_skip_samples function Anton Khirnov
2023-11-04 16:22 ` Derek Buitenhuis
2023-11-04 17:32 ` Derek Buitenhuis
2023-11-04 17:41 ` Michael Niedermayer
2023-11-04 20:33 ` Lynne
2023-11-04 23:02 ` Martin Storsjö
2023-11-04 23:27 ` Lynne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Ni0XaL_--3-9@lynne.ee \
--to=dev@lynne.ee \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git