[FFmpeg-devel] [PATCH] avformat/movenc: allow Apple Lossless inside mp4

Leo Izen leo.izen at gmail.com
Fri Nov 20 18:38:31 EET 2020


MP4 already supports Apple Lossless, and it can be put inside by using
muxer=ipod, but it's not tagged as supported in mp4. The mp4ra lists
alac as a valid fourcc inside mp4, so it should be supported by spec.

See: https://mp4ra.org/#/codecs
---
 libavformat/movenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index fea8a86192..18fa3f9b5e 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -7128,6 +7128,7 @@ static const AVCodecTag codec_mp4_tags[] = {
     { AV_CODEC_ID_VP9,             MKTAG('v', 'p', '0', '9') },
     { AV_CODEC_ID_AV1,             MKTAG('a', 'v', '0', '1') },
     { AV_CODEC_ID_AAC,             MKTAG('m', 'p', '4', 'a') },
+    { AV_CODEC_ID_ALAC,            MKTAG('a', 'l', 'a', 'c') },
     { AV_CODEC_ID_MP4ALS,          MKTAG('m', 'p', '4', 'a') },
     { AV_CODEC_ID_MP3,             MKTAG('m', 'p', '4', 'a') },
     { AV_CODEC_ID_MP2,             MKTAG('m', 'p', '4', 'a') },
-- 
2.29.2



More information about the ffmpeg-devel mailing list