[FFmpeg-devel] [PATCH 1/1] avformat/movenc: fix HEVC fmp4 HLS init segment for Apple playback
Michael Niedermayer
michael at niedermayer.cc
Mon Jul 28 18:29:29 EEST 2025
On Mon, Jul 21, 2025 at 05:01:47PM -0400, David McElroy wrote:
> HEVC fmp4 HLS video produced by ffmpeg is currently unplayable on Apple
> software (Safari, QuickTime, AVFoundation).
>
> This is caused by an empty sdtp atom being erroneously written to the
> fmp4 init segment. The `has_disposable` flag can be set for a track
> with B-frames, but the init segment contains no actual frames
> (track->entry == 0). Writing an sdtp atom in this case is incorrect
> and causes Apple's parsers to reject the file.
>
> This patch fixes the issue by ensuring the sdtp atom is only written
> if track->entry is non-zero.
>
> A similar patch was proposed in November 2023 by Jay Zhang,
> but it was never merged.
>
> Link: https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2023-November/317173.html
> Co-authored-by: Jay Zhang <wangyoucao577 at gmail.com>
> Signed-off-by: David McElroy <david at mcelroy.online>
> ---
> libavformat/movenc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
will apply
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
What is kyc? Its a tool that makes you give out your real ID, while criminals
give out a forged ID card.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250728/c039462e/attachment.sig>
More information about the ffmpeg-devel
mailing list