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

This is a follow-up to PR #26027 and completes the three dependency gaps
identified in its review (#12305, confirmed in #12410): the six graph-using
registrations omit `CHANNELMAP_FILTER` (tests/fate/mov.mak:554, 578, 585,
591, 597, 609; their filtergraphs are built entirely from channelmap), and
the four video registrations (:578-:597) additionally omit `FLAC_ENCODER`
and `RAWVIDEO_DECODER` while their commands explicitly encode FLAC (:575,
:605) and read rawvideo inputs (:570, :605-607); their `TRANSCODE` codec
argument supplies MPEG4 dependencies, not FLAC encoding or rawvideo
decoding (tests/Makefile:104-107). All three omissions exist in parent
88c46fce27e3 and on current master.

With `--disable-filter=channelmap` the graph-using cases are selected and
fail parsing their graphs; with `--disable-encoder=flac` video-last fails
with `Unknown encoder 'flac'`; with `--disable-decoder=rawvideo` the video
cases fail with `Decoding requested, but no decoder found for: rawvideo`.

Merge order: #26027 lands first and this PR is rebased on it after it
merges - every affected line is also a line #26027 modifies, so the reverse
order conflicts. Posting it early so review can run in parallel; the merge
order is unchanged. The earlier review tested these gate additions on
standalone 116a5c2aa4cc; those runs did not cover the combined follow-up
revision, which will be exercised by this PR's own CI.

TESTING: real reduced configurations confirm the gate effects - with
`--disable-filter=channelmap` exactly the six graph-using cases become
unselected; with `--disable-encoder=flac` and with
`--disable-decoder=rawvideo` exactly the four video cases each. With all
components enabled the selected FATE list is unchanged. `git apply --check`
passes on current master; `git diff --check` is clean.



>From 20f068eca747a2a16443ec80df2969b66d3fb55e Mon Sep 17 00:00:00 2001
From: luoye-cpu <[email protected]>
Date: Mon, 16 Nov 2026 10:40:56 +0800
Subject: [PATCH] tests/fate/mov: complete dependency gates for MOV IAMF tests

---
 tests/fate/mov.mak | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/fate/mov.mak b/tests/fate/mov.mak
index bb94f66f67d..1afd305a038 100644
--- a/tests/fate/mov.mak
+++ b/tests/fate/mov.mak
@@ -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 CHANNELMAP_FILTER) += 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_ENCODER FLAC_DECODER RAWVIDEO_DEMUXER RAWVIDEO_DECODER PCM_S16LE_DECODER 
ARESAMPLE_FILTER CHANNELMAP_FILTER) += 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_ENCODER 
FLAC_DECODER RAWVIDEO_DEMUXER RAWVIDEO_DECODER PCM_S16LE_DECODER 
ARESAMPLE_FILTER CHANNELMAP_FILTER) += 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_ENCODER 
FLAC_DECODER RAWVIDEO_DEMUXER RAWVIDEO_DECODER PCM_S16LE_DECODER 
ARESAMPLE_FILTER CHANNELMAP_FILTER) += 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_ENCODER FLAC_DECODER RAWVIDEO_DEMUXER RAWVIDEO_DECODER PCM_S16LE_DECODER 
ARESAMPLE_FILTER CHANNELMAP_FILTER) += 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 CHANNELMAP_FILTER) += 
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