PR #26027 opened by luoye-cpu
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26027
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26027.patch

This is a follow-up to PR #25632 and is intended to be merged after it.

In comment 80664 on that PR I wrote that I would rather send the missing IAMF 
gates for the older MOV registrations separately "once this series settles". 
The review there has converged since (Fairy approval, CI green), so this is 
being posted now to parallelize the review and to avoid a rebase window for 
this patch after that series is merged.

WHAT IT FIXES

Seven older MOV/IAMF transcode tests in tests/fate/mov.mak list their codec 
dependencies but omit IAMFENC and IAMFDEC. When FFmpeg is built with 
--disable-iamf these tests are still selected and fail, because the generated 
MP4 has no iacb sample entry.

configure ties iamfdec_deps and iamfenc_deps to "iamf", and movenc.c compiles 
its IAMF code under CONFIG_IAMFENC, so adding both symbols to the dependency 
lists makes test selection follow the real build configuration.

No reference output changes.

TESTING

With the patch applied, a build configured with --disable-iamf selects zero 
MOV/IAMF tests; without the patch, seven are still selected and are exactly the 
seven fixed here. This was checked by substituting the ffbuild/config.mak 
produced by a real --disable-iamf configure into an existing build tree and 
comparing the selected FATE test names. On the normal build nothing changes: 
the patch alters no test command, no test count and no reference output.

git diff --check is clean.


>From 116a5c2aa4cc8566ad22d119a76409db0e86578d Mon Sep 17 00:00:00 2001
From: luoye-cpu <[email protected]>
Date: Wed, 4 Nov 2026 23:58:32 +0800
Subject: [PATCH] tests/fate/mov: add missing IAMF gates to MOV tests

Seven older MOV/IAMF transcode tests list their codec dependencies
but omit IAMFENC and IAMFDEC.  With --disable-iamf these tests are
still selected, and they fail because the generated MP4 has no iacb
sample entry.

configure ties iamfdec_deps and iamfenc_deps to "iamf", and movenc.c
compiles its IAMF code under CONFIG_IAMFENC, so adding both symbols
to the dependency lists makes test selection follow the real build
configuration.  The two already-gated tests, stereo-id-collision and
obu-larger-than-descriptors, are left unchanged.

No reference output changes.

Signed-off-by: luoye-cpu <[email protected]>
---
 tests/fate/mov.mak | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/tests/fate/mov.mak b/tests/fate/mov.mak
index bb94f66f67d..4abecc02314 100644
--- a/tests/fate/mov.mak
+++ b/tests/fate/mov.mak
@@ -531,7 +531,7 @@ tests/data/mov-vfr-bframes-derived-duration.mov: 
ffmpeg$(PROGSSUF)$(EXESUF) | te
 fate-mov-vfr-bframes-derived-duration: 
tests/data/mov-vfr-bframes-derived-duration.mov
 fate-mov-vfr-bframes-derived-duration: CMD = run ffprobe$(PROGSSUF)$(EXESUF) 
-show_packets -show_entries packet=pts,dts,duration -print_format compact 
-select_streams v -v 0 
$(TARGET_PATH)/tests/data/mov-vfr-bframes-derived-duration.mov
 
-FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, FLAC, MP4 MOV, WAV_DEMUXER 
PCM_S16LE_DECODER) += fate-mov-mp4-iamf-stereo
+FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, FLAC, MP4 MOV, WAV_DEMUXER 
PCM_S16LE_DECODER IAMFENC IAMFDEC) += fate-mov-mp4-iamf-stereo
 fate-mov-mp4-iamf-stereo: tests/data/asynth-44100-2.wav 
tests/data/streamgroups/audio_element-stereo 
tests/data/streamgroups/mix_presentation-stereo
 fate-mov-mp4-iamf-stereo: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
 fate-mov-mp4-iamf-stereo: CMD = transcode wav $(SRC) mp4 " \
@@ -551,7 +551,7 @@ fate-mov-mp4-iamf-stereo-id-collision: CMD = transcode wav 
$(SRC) mp4 " \
   -map 0:a -map 0:a -streamid 0:0 -streamid 1:1 -c:a flac -t 1" "-c:a copy 
-map 0" \
   "-show_entries 
stream_group=index,id,nb_streams,type:stream_group_stream=index,id:stream=index,id,duration_ts"
 
-FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, FLAC, MP4 MOV, WAV_DEMUXER 
PCM_S16LE_DECODER ARESAMPLE_FILTER) += fate-mov-mp4-iamf-5_1_4
+FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, FLAC, MP4 MOV, WAV_DEMUXER 
PCM_S16LE_DECODER ARESAMPLE_FILTER IAMFENC IAMFDEC) += fate-mov-mp4-iamf-5_1_4
 fate-mov-mp4-iamf-5_1_4: tests/data/asynth-44100-10.wav 
tests/data/filtergraphs/iamf_5_1_4 tests/data/streamgroups/audio_element-5_1_4 
tests/data/streamgroups/mix_presentation-5_1_4
 fate-mov-mp4-iamf-5_1_4: SRC = $(TARGET_PATH)/tests/data/asynth-44100-10.wav
 fate-mov-mp4-iamf-5_1_4: CMD = transcode wav $(SRC) mp4 
"-auto_conversion_filters \
@@ -575,26 +575,26 @@ tests/data/mov-mp4-iamf-7_1_4-video-first.mp4: 
ffmpeg$(PROGSSUF)$(EXESUF) | test
   -flags +bitexact -c:a flac -idct simple -dct fastint -sws_flags 
+accurate_rnd+bitexact -flags +bitexact -threads 1 -c:v mpeg4 -t 1 -fflags 
+bitexact -f mp4 $(TARGET_PATH)/tests/data/mov-mp4-iamf-7_1_4-video-first.mp4 
-y 2>/dev/null
 
 # Demux everything
-FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, MPEG4, MP4 MOV, WAV_DEMUXER 
FLAC_DECODER RAWVIDEO_DEMUXER PCM_S16LE_DECODER ARESAMPLE_FILTER) += 
fate-mov-mp4-iamf-7_1_4-video-first
+FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, MPEG4, MP4 MOV, WAV_DEMUXER 
FLAC_DECODER RAWVIDEO_DEMUXER PCM_S16LE_DECODER ARESAMPLE_FILTER IAMFENC 
IAMFDEC) += fate-mov-mp4-iamf-7_1_4-video-first
 fate-mov-mp4-iamf-7_1_4-video-first: 
tests/data/mov-mp4-iamf-7_1_4-video-first.mp4
 fate-mov-mp4-iamf-7_1_4-video-first: CMD = stream_demux mp4 
$(TARGET_PATH)/tests/data/mov-mp4-iamf-7_1_4-video-first.mp4 \
   "" "-c:a copy -c:v copy -map 0" \
   "-show_entries 
stream_group=index,id,nb_streams,type:stream_group_components:stream_group_disposition:stream_group_tags:stream_group_stream=index,id:stream_group_stream_disposition:stream=index,id"
 
 # Demux the first stream in the IAMF struct
-FATE_MOV_FFMPEG-$(call TRANSCODE, MPEG4, MP4 MOV, WAV_DEMUXER FLAC_DECODER 
RAWVIDEO_DEMUXER PCM_S16LE_DECODER ARESAMPLE_FILTER) += 
fate-mov-mp4-iamf-7_1_4-video-first-2
+FATE_MOV_FFMPEG-$(call TRANSCODE, MPEG4, MP4 MOV, WAV_DEMUXER FLAC_DECODER 
RAWVIDEO_DEMUXER PCM_S16LE_DECODER ARESAMPLE_FILTER IAMFENC IAMFDEC) += 
fate-mov-mp4-iamf-7_1_4-video-first-2
 fate-mov-mp4-iamf-7_1_4-video-first-2: 
tests/data/mov-mp4-iamf-7_1_4-video-first.mp4
 fate-mov-mp4-iamf-7_1_4-video-first-2: CMD = stream_demux mp4 
$(TARGET_PATH)/tests/data/mov-mp4-iamf-7_1_4-video-first.mp4 \
   "" "-c:a copy -map 0:g:0:0" \
 
 # Demux the fourth stream in the IAMF struct. See 16ee3d8d99a2
-FATE_MOV_FFMPEG-$(call TRANSCODE, MPEG4, MP4 MOV, WAV_DEMUXER FLAC_DECODER 
RAWVIDEO_DEMUXER PCM_S16LE_DECODER ARESAMPLE_FILTER) += 
fate-mov-mp4-iamf-7_1_4-video-first-3
+FATE_MOV_FFMPEG-$(call TRANSCODE, MPEG4, MP4 MOV, WAV_DEMUXER FLAC_DECODER 
RAWVIDEO_DEMUXER PCM_S16LE_DECODER ARESAMPLE_FILTER IAMFENC IAMFDEC) += 
fate-mov-mp4-iamf-7_1_4-video-first-3
 fate-mov-mp4-iamf-7_1_4-video-first-3: 
tests/data/mov-mp4-iamf-7_1_4-video-first.mp4
 fate-mov-mp4-iamf-7_1_4-video-first-3: CMD = stream_demux mp4 
$(TARGET_PATH)/tests/data/mov-mp4-iamf-7_1_4-video-first.mp4 \
   "" "-c:a copy -map 0:g:0:3" \
 
 # Test muxing an IAMF track alongside a video one, with video as the last 
track. Also, use stream ids as track ids.
-FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, MPEG4, MP4 MOV, WAV_DEMUXER 
FLAC_DECODER RAWVIDEO_DEMUXER PCM_S16LE_DECODER ARESAMPLE_FILTER) += 
fate-mov-mp4-iamf-7_1_4-video-last
+FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, MPEG4, MP4 MOV, WAV_DEMUXER 
FLAC_DECODER RAWVIDEO_DEMUXER PCM_S16LE_DECODER ARESAMPLE_FILTER IAMFENC 
IAMFDEC) += fate-mov-mp4-iamf-7_1_4-video-last
 fate-mov-mp4-iamf-7_1_4-video-last: tests/data/asynth-44100-12.wav 
tests/data/vsynth1.yuv tests/data/filtergraphs/iamf_7_1_4 
tests/data/streamgroups/audio_element-7_1_4 
tests/data/streamgroups/mix_presentation-7_1_4
 fate-mov-mp4-iamf-7_1_4-video-last: SRC = 
$(TARGET_PATH)/tests/data/asynth-44100-12.wav
 fate-mov-mp4-iamf-7_1_4-video-last: SRC2 = 
$(TARGET_PATH)/tests/data/vsynth1.yuv
@@ -606,7 +606,7 @@ fate-mov-mp4-iamf-7_1_4-video-last: CMD = transcode wav 
$(SRC) mp4 "-auto_conver
   "-show_entries 
stream_group=index,id,nb_streams,type:stream_group_components:stream_group_disposition:stream_group_tags:stream_group_stream=index,id:stream_group_stream_disposition:stream=index,id"
 \
   "-f rawvideo -s 352x288 -pix_fmt yuv420p -i $(SRC2)"
 
-FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, FLAC, MP4 MOV, WAV_DEMUXER 
PCM_S16LE_DECODER ARESAMPLE_FILTER) += fate-mov-mp4-iamf-ambisonic_1
+FATE_MOV_FFMPEG_FFPROBE-$(call TRANSCODE, FLAC, MP4 MOV, WAV_DEMUXER 
PCM_S16LE_DECODER ARESAMPLE_FILTER IAMFENC IAMFDEC) += 
fate-mov-mp4-iamf-ambisonic_1
 fate-mov-mp4-iamf-ambisonic_1: tests/data/asynth-44100-4.wav 
tests/data/filtergraphs/iamf_ambisonic_1 
tests/data/streamgroups/audio_element-ambisonic_1 
tests/data/streamgroups/mix_presentation-ambisonic_1
 fate-mov-mp4-iamf-ambisonic_1: SRC = 
$(TARGET_PATH)/tests/data/asynth-44100-4.wav
 fate-mov-mp4-iamf-ambisonic_1: CMD = transcode wav $(SRC) mp4 
"-auto_conversion_filters \
-- 
2.54.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to