[FFmpeg-devel] [PATCH 0/6] add PCM in mp4 support

Zhao Zhili quinkblack at foxmail.com
Fri Feb 24 14:25:17 EET 2023


From: Zhao Zhili <zhilizhao at tencent.com>

This patchset adds support of demux/mux PCM in mp4, and related channel
layout information. PCM in mp4 is defined by ISO/IEC 23003-5. The channel
layout tag 'chn' is defined by ISO/IEC 14496-12 with reference to ISO/IEC
23001-8.

We have partially support of demux PCM in mp4 with 1c42fd932. It's an
incorrect implementation by adding tag to movaudio_tags. This has been
fixed by patch 2/6 and 3/6.

Zhao Zhili (6):
  avformat/movenc: add PCM in mp4 support
  avformat/mov: fix ISO/IEC 23003-5 support
  avformat/isom_tags: remove ipcm from movaudio_tags
  avformat/mov: parse ISO-14496-12 ChannelLayout
  avformat/movenc: write ChannelLayout box for PCM
  fate/mov: add PCM in mp4 test

 libavformat/isom_tags.c          |   2 -
 libavformat/mov.c                | 111 ++++++++++++-
 libavformat/mov_chan.c           | 265 +++++++++++++++++++++++++++++++
 libavformat/mov_chan.h           |  26 +++
 libavformat/movenc.c             | 106 ++++++++++++-
 tests/fate/mov.mak               |  12 ++
 tests/filtergraphs/mov-mp4-pcm   |   5 +
 tests/ref/fate/mov-mp4-pcm       |  27 ++++
 tests/ref/fate/mov-mp4-pcm-float |   7 +
 9 files changed, 557 insertions(+), 4 deletions(-)
 create mode 100644 tests/filtergraphs/mov-mp4-pcm
 create mode 100644 tests/ref/fate/mov-mp4-pcm
 create mode 100644 tests/ref/fate/mov-mp4-pcm-float

-- 
2.25.1



More information about the ffmpeg-devel mailing list