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

The five raw-side IAMF transcode tests for 5.1.4, 7.1.4, 9.1.6, ambisonic_1
and ambisonic_1-projection build their filtergraph with the channelmap
filter: the mono source streams are split and routed into the individual
layout channels before encoding to IAMF. Their FATE registration,
however, only gated on FLAC (encoder), IAMF (muxer), the WAV demuxer,
the PCM_S16LE decoder and the aresample filter.

When the channelmap filter is disabled, these five tests are still
selected by `make fate-list` and then fail, because the filtergraph
cannot be built without the channelmap filter.

Gate all five registrations on CHANNELMAP_FILTER, matching the other
graph-using IAMF tests. With the default configuration all six raw-side
IAMF tests remain selected; with `--disable-filter=channelmap` only
fate-iamf-stereo (which does not use a filtergraph) stays in the list.

This was found as a pre-existing finding by the Fairy review 86275
(first review of PR #26090).

Verification (registration-level selection check, make-internal
evaluation of FATE_IAMF-yes against ffbuild/config.mak):

- default configuration: fate-iamf-stereo, fate-iamf-5_1_4,
  fate-iamf-7_1_4, fate-iamf-9_1_6, fate-iamf-ambisonic_1,
  fate-iamf-ambisonic_1-projection — all selected;
- `--disable-filter=channelmap`: only fate-iamf-stereo selected, the
  five graph-using tests drop out;
- default configuration restored: all six selected again.

Signed-off-by: luoye-cpu <[email protected]>


From effdee01e4aa38d7879e6f9969c37763dfec76a8 Mon Sep 17 00:00:00 2001
From: luoye-cpu <[email protected]>
Date: Wed, 18 Nov 2026 07:03:30 +0800
Subject: [PATCH] tests/fate/iamf: add missing channelmap dependency gates to
 IAMF tests

The five raw IAMF transcode tests for 5.1.4, 7.1.4, 9.1.6, ambisonic_1
and ambisonic_1-projection build their filtergraph with the channelmap
filter to route the mono source streams into the layout channels, but
their FATE_IAMF registration only gated on FLAC/IAMF, the WAV demuxer,
PCM_S16LE decoder and the aresample filter. Without a CHANNELMAP_FILTER
term they are still selected when the channelmap filter is disabled and
then fail because the filtergraph cannot be built.

Gate all five registrations on CHANNELMAP_FILTER, matching the other
graph-using IAMF tests.

Found as a pre-existing finding by the Fairy review 86275 (first review
of PR #26090). Verified with make fate-list: with the default
configuration all six raw-side IAMF tests remain selected; with
--disable-filter=channelmap the five graph-using tests drop out of the
list.

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

diff --git a/tests/fate/iamf.mak b/tests/fate/iamf.mak
index fd51e09e5d5..f702dfb5667 100644
--- a/tests/fate/iamf.mak
+++ b/tests/fate/iamf.mak
@@ -7,7 +7,7 @@ fate-iamf-stereo: CMD = transcode wav $(SRC) iamf " \
   -streamid 0:0 -c:a flac -t 1" "-c:a copy -map 0" \
   "-show_entries 
stream_group=index,id,nb_streams,type:stream_group_components:stream_group_stream=index,id:stream_group_stream_disposition"
 
-FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER 
ARESAMPLE_FILTER) += fate-iamf-5_1_4
+FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER 
ARESAMPLE_FILTER CHANNELMAP_FILTER) += fate-iamf-5_1_4
 fate-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-iamf-5_1_4: SRC = $(TARGET_PATH)/tests/data/asynth-44100-10.wav
 fate-iamf-5_1_4: CMD = transcode wav $(SRC) iamf "-auto_conversion_filters \
@@ -17,7 +17,7 @@ fate-iamf-5_1_4: CMD = transcode wav $(SRC) iamf 
"-auto_conversion_filters \
   -streamid 0:0 -streamid 1:1 -streamid 2:2 -streamid 3:3 -streamid 4:4 
-streamid 5:5 -map [FRONT] -map [SIDE] -map [CENTER] -map [LFE] -map 
[TOP_FRONT] -map [TOP_BACK] -c:a flac -t 1" "-c:a copy -map 0" \
   "-show_entries 
stream_group=index,id,nb_streams,type:stream_group_components:stream_group_stream=index,id:stream_group_stream_disposition"
 
-FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER 
ARESAMPLE_FILTER) += fate-iamf-7_1_4
+FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER 
ARESAMPLE_FILTER CHANNELMAP_FILTER) += fate-iamf-7_1_4
 fate-iamf-7_1_4: tests/data/asynth-44100-12.wav 
tests/data/filtergraphs/iamf_7_1_4 tests/data/streamgroups/audio_element-7_1_4 
tests/data/streamgroups/mix_presentation-7_1_4
 fate-iamf-7_1_4: SRC = $(TARGET_PATH)/tests/data/asynth-44100-12.wav
 fate-iamf-7_1_4: CMD = transcode wav $(SRC) iamf "-auto_conversion_filters \
@@ -27,7 +27,7 @@ fate-iamf-7_1_4: CMD = transcode wav $(SRC) iamf 
"-auto_conversion_filters \
   -streamid 0:0 -streamid 1:1 -streamid 2:2 -streamid 3:3 -streamid 4:4 
-streamid 5:5 -streamid 6:6 -map [FRONT] -map [TOP_FRONT] -map [CENTER] -map 
[LFE] -map [SIDE] -map [BACK] -map [TOP_BACK] -c:a flac -t 1" "-c:a copy -map 
0" \
   "-show_entries 
stream_group=index,id,nb_streams,type:stream_group_components:stream_group_stream=index,id:stream_group_stream_disposition"
 
-FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER 
ARESAMPLE_FILTER) += fate-iamf-9_1_6
+FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER 
ARESAMPLE_FILTER CHANNELMAP_FILTER) += fate-iamf-9_1_6
 fate-iamf-9_1_6: tests/data/asynth-44100-12.wav 
tests/data/filtergraphs/iamf_9_1_6 tests/data/streamgroups/audio_element-9_1_6 
tests/data/streamgroups/audio_element-9_1_6-stereo 
tests/data/streamgroups/mix_presentation-9_1_6
 fate-iamf-9_1_6: SRC = $(TARGET_PATH)/tests/data/asynth-44100-12.wav
 fate-iamf-9_1_6: CMD = transcode wav $(SRC) iamf "-auto_conversion_filters \
@@ -38,7 +38,7 @@ fate-iamf-9_1_6: CMD = transcode wav $(SRC) iamf 
"-auto_conversion_filters \
   -streamid 0:0 -streamid 1:1 -streamid 2:2 -streamid 3:3 -streamid 4:4 
-streamid 5:5 -streamid 6:6 -streamid 7:7 -streamid 8:8 -streamid 9:9 -map 
[FRONT] -map [FRONT_CENTER] -map [SIDE] -map [BACK] -map [TOP_FRONT] -map 
[TOP_SIDE] -map [TOP_BACK] -map [CENTER] -map [LFE] -map [STEREO] -c:a flac -t 
1" "-c:a copy -map 0" \
   "-show_entries 
stream_group=index,id,nb_streams,type:stream_group_components:stream_group_stream=index,id:stream_group_stream_disposition"
 
-FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER 
ARESAMPLE_FILTER) += fate-iamf-ambisonic_1
+FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER 
ARESAMPLE_FILTER CHANNELMAP_FILTER) += fate-iamf-ambisonic_1
 fate-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-iamf-ambisonic_1: SRC = $(TARGET_PATH)/tests/data/asynth-44100-4.wav
 fate-iamf-ambisonic_1: CMD = transcode wav $(SRC) iamf 
"-auto_conversion_filters \
@@ -48,7 +48,7 @@ fate-iamf-ambisonic_1: CMD = transcode wav $(SRC) iamf 
"-auto_conversion_filters
   -streamid 0:0 -streamid 1:1 -streamid 2:2 -streamid 3:3 -map [MONO0] -map 
[MONO1] -map [MONO2] -map [MONO3] -c:a flac -t 1" "-c:a copy -map 0" \
   "-show_entries 
stream_group=index,id,nb_streams,type:stream_group_components:stream_group_stream=index,id:stream_group_stream_disposition"
 
-FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER 
ARESAMPLE_FILTER) += fate-iamf-ambisonic_1-projection
+FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER 
ARESAMPLE_FILTER CHANNELMAP_FILTER) += fate-iamf-ambisonic_1-projection
 fate-iamf-ambisonic_1-projection: tests/data/asynth-44100-4.wav 
tests/data/filtergraphs/iamf_ambisonic_1 
tests/data/streamgroups/audio_element-ambisonic_1-projection 
tests/data/streamgroups/mix_presentation-ambisonic_1
 fate-iamf-ambisonic_1-projection: SRC = 
$(TARGET_PATH)/tests/data/asynth-44100-4.wav
 fate-iamf-ambisonic_1-projection: CMD = transcode wav $(SRC) iamf 
"-auto_conversion_filters \
-- 
2.54.0

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

Reply via email to