fate: fate-filter-acrossfade needs samples
[ffmpeg.git] / tests / fate / filter-audio.mak
1 FATE_AFILTER-$(call FILTERDEMDECENCMUX, ADELAY, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-adelay
2 fate-filter-adelay: tests/data/asynth-44100-2.wav
3 fate-filter-adelay: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
4 fate-filter-adelay: CMD = framecrc -i $(SRC) -af adelay=42
5
6 FATE_AFILTER-$(call FILTERDEMDECENCMUX, AECHO, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-aecho
7 fate-filter-aecho: tests/data/asynth-44100-2.wav
8 fate-filter-aecho: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
9 fate-filter-aecho: CMD = framecrc -i $(SRC) -af aecho=0.5:0.5:32:0.5
10
11 FATE_FILTER_AEMPHASIS += fate-filter-aemphasis-50fm
12 fate-filter-aemphasis-50fm: tests/data/asynth-44100-2.wav
13 fate-filter-aemphasis-50fm: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
14 fate-filter-aemphasis-50fm: CMD = framecrc -i $(SRC) -af aemphasis=1:5:reproduction:50fm
15
16 FATE_FILTER_AEMPHASIS += fate-filter-aemphasis-75kf
17 fate-filter-aemphasis-75kf: tests/data/asynth-44100-2.wav
18 fate-filter-aemphasis-75kf: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
19 fate-filter-aemphasis-75kf: CMD = framecrc -i $(SRC) -af aemphasis=2:8:reproduction:75kf
20
21 FATE_AFILTER-$(call FILTERDEMDECENCMUX, AEMPHASIS, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_FILTER_AEMPHASIS)
22
23 FATE_FILTER_AFADE += fate-filter-afade-qsin
24 fate-filter-afade-qsin: tests/data/asynth-44100-2.wav
25 fate-filter-afade-qsin: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
26 fate-filter-afade-qsin: CMD = framecrc -i $(SRC) -af afade=t=in:ss=0:d=2:curve=qsin
27
28 FATE_FILTER_AFADE += fate-filter-afade-iqsin
29 fate-filter-afade-iqsin: tests/data/asynth-44100-2.wav
30 fate-filter-afade-iqsin: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
31 fate-filter-afade-iqsin: CMD = framecrc -i $(SRC) -af afade=t=in:ss=0:d=2:curve=iqsin
32
33 FATE_FILTER_AFADE += fate-filter-afade-esin
34 fate-filter-afade-esin: tests/data/asynth-44100-2.wav
35 fate-filter-afade-esin: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
36 fate-filter-afade-esin: CMD = framecrc -i $(SRC) -af afade=t=in:ss=0:d=2:curve=esin
37
38 FATE_FILTER_AFADE += fate-filter-afade-hsin
39 fate-filter-afade-hsin: tests/data/asynth-44100-2.wav
40 fate-filter-afade-hsin: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
41 fate-filter-afade-hsin: CMD = framecrc -i $(SRC) -af afade=t=in:ss=0:d=2:curve=hsin
42
43 FATE_FILTER_AFADE += fate-filter-afade-exp
44 fate-filter-afade-exp: tests/data/asynth-44100-2.wav
45 fate-filter-afade-exp: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
46 fate-filter-afade-exp: CMD = framecrc -i $(SRC) -af afade=t=in:ss=0:d=2:curve=exp
47
48 FATE_FILTER_AFADE += fate-filter-afade-log
49 fate-filter-afade-log: tests/data/asynth-44100-2.wav
50 fate-filter-afade-log: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
51 fate-filter-afade-log: CMD = framecrc -i $(SRC) -af afade=t=in:ss=1:d=2.5:curve=log
52
53 FATE_AFILTER-$(call FILTERDEMDECENCMUX, AFADE, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_FILTER_AFADE)
54
55 FATE_AFILTER_SAMPLES-$(call FILTERDEMDECENCMUX, ACROSSFADE, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-acrossfade
56 fate-filter-acrossfade: tests/data/asynth-44100-2.wav
57 fate-filter-acrossfade: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
58 fate-filter-acrossfade: SRC2 = $(TARGET_SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
59 fate-filter-acrossfade: CMD = framecrc -i $(SRC) -i $(SRC2) -filter_complex acrossfade=d=2:c1=log:c2=exp
60
61 tests/data/hls-list.m3u8: TAG = GEN
62 tests/data/hls-list.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
63         $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
64         -f lavfi -i "aevalsrc=cos(2*PI*t)*sin(2*PI*(440+4*t)*t)::d=20" -f segment -segment_time 10 -map 0 -flags +bitexact -codec:a mp2fixed \
65         -segment_list $(TARGET_PATH)/$@ -y $(TARGET_PATH)/tests/data/hls-out-%03d.ts 2>/dev/null
66
67 FATE_AFILTER-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILTER LAVFI_INDEV MP2FIXED_ENCODER) += fate-filter-hls
68 fate-filter-hls: tests/data/hls-list.m3u8
69 fate-filter-hls: CMD = framecrc -flags +bitexact -i $(TARGET_PATH)/tests/data/hls-list.m3u8
70
71 FATE_AMIX += fate-filter-amix-simple
72 fate-filter-amix-simple: CMD = ffmpeg -filter_complex amix -i $(SRC) -ss 3 -i $(SRC1) -f f32le -
73 fate-filter-amix-simple: REF = $(SAMPLES)/filter/amix_simple.pcm
74
75 FATE_AMIX += fate-filter-amix-first
76 fate-filter-amix-first: CMD = ffmpeg -filter_complex amix=duration=first -ss 4 -i $(SRC) -i $(SRC1) -f f32le -
77 fate-filter-amix-first: REF = $(SAMPLES)/filter/amix_first.pcm
78
79 FATE_AMIX += fate-filter-amix-transition
80 fate-filter-amix-transition: tests/data/asynth-44100-2-3.wav
81 fate-filter-amix-transition: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-2-3.wav
82 fate-filter-amix-transition: CMD = ffmpeg -filter_complex amix=inputs=3:dropout_transition=0.5 -i $(SRC) -ss 2 -i $(SRC1) -ss 4 -i $(SRC2) -f f32le -
83 fate-filter-amix-transition: REF = $(SAMPLES)/filter/amix_transition.pcm
84
85 FATE_AFILTER_SAMPLES-$(call FILTERDEMDECENCMUX, AMIX, WAV, PCM_S16LE, PCM_F32LE, PCM_F32LE) += $(FATE_AMIX)
86 $(FATE_AMIX): tests/data/asynth-44100-2.wav tests/data/asynth-44100-2-2.wav
87 $(FATE_AMIX): SRC  = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
88 $(FATE_AMIX): SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2-2.wav
89 $(FATE_AMIX): CMP  = oneoff
90 $(FATE_AMIX): CMP_UNIT = f32
91
92 FATE_AFILTER_SAMPLES-$(call FILTERDEMDECMUX, ASYNCTS, FLV, NELLYMOSER, PCM_S16LE) += fate-filter-asyncts
93 fate-filter-asyncts: SRC = $(TARGET_SAMPLES)/nellymoser/nellymoser-discont.flv
94 fate-filter-asyncts: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af asyncts
95 fate-filter-asyncts: CMP = oneoff
96 fate-filter-asyncts: REF = $(SAMPLES)/nellymoser/nellymoser-discont-async-v3.pcm
97
98 FATE_AFILTER_SAMPLES-$(CONFIG_ARESAMPLE_FILTER) += fate-filter-aresample
99 fate-filter-aresample: SRC = $(TARGET_SAMPLES)/nellymoser/nellymoser-discont.flv
100 fate-filter-aresample: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af aresample=min_comp=0.001:min_hard_comp=0.1:first_pts=0
101 fate-filter-aresample: CMP = oneoff
102 fate-filter-aresample: REF = $(SAMPLES)/nellymoser/nellymoser-discont.pcm
103
104 FATE_ATRIM += fate-filter-atrim-duration
105 fate-filter-atrim-duration: CMD = framecrc -i $(SRC) -af atrim=start=0.1:duration=0.01
106 FATE_ATRIM += fate-filter-atrim-mixed
107 fate-filter-atrim-mixed: CMD = framecrc -i $(SRC) -af atrim=start=0.05:start_sample=1025:end=0.1:end_sample=4411
108
109 FATE_ATRIM += fate-filter-atrim-samples
110 fate-filter-atrim-samples: CMD = framecrc -i $(SRC) -af atrim=start_sample=26:end_sample=80
111
112 FATE_ATRIM += fate-filter-atrim-time
113 fate-filter-atrim-time: CMD = framecrc -i $(SRC) -af atrim=0.1:0.2
114
115 $(FATE_ATRIM): tests/data/asynth-44100-2.wav
116 $(FATE_ATRIM): SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
117
118 FATE_AFILTER-$(call FILTERDEMDECENCMUX, ATRIM, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_ATRIM)
119
120 FATE_FILTER_CHANNELMAP += fate-filter-channelmap-one-int
121 fate-filter-channelmap-one-int: tests/data/filtergraphs/channelmap_one_int
122 fate-filter-channelmap-one-int: SRC = $(TARGET_PATH)/tests/data/asynth-44100-6.wav
123 fate-filter-channelmap-one-int: tests/data/asynth-44100-6.wav
124 fate-filter-channelmap-one-int: CMD = md5 -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/channelmap_one_int -f wav -fflags +bitexact
125 fate-filter-channelmap-one-int: CMP = oneline
126 fate-filter-channelmap-one-int: REF = 428b8f9fac6d57147069b97335019ef5
127
128 FATE_FILTER_CHANNELMAP += fate-filter-channelmap-one-str
129 fate-filter-channelmap-one-str: tests/data/filtergraphs/channelmap_one_str
130 fate-filter-channelmap-one-str: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
131 fate-filter-channelmap-one-str: tests/data/asynth-44100-2.wav
132 fate-filter-channelmap-one-str: CMD = md5 -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/channelmap_one_str -f wav -fflags +bitexact
133 fate-filter-channelmap-one-str: CMP = oneline
134 fate-filter-channelmap-one-str: REF = e788890db6a11c2fb29d7c4229072d49
135
136 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELMAP, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_FILTER_CHANNELMAP)
137
138 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELSPLIT, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-channelsplit
139 fate-filter-channelsplit: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
140 fate-filter-channelsplit: tests/data/asynth-44100-2.wav
141 fate-filter-channelsplit: CMD = md5 -i $(SRC) -filter_complex channelsplit -f s16le
142 fate-filter-channelsplit: CMP = oneline
143 fate-filter-channelsplit: REF = d92988d0fe2dd92236763f47b07ab597
144
145 FATE_AFILTER-$(call FILTERDEMDECENCMUX, JOIN, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-join
146 fate-filter-join: SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
147 fate-filter-join: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-3.wav
148 fate-filter-join: tests/data/asynth-44100-2.wav tests/data/asynth-44100-3.wav
149 fate-filter-join: CMD = md5 -i $(SRC1) -i $(SRC2) -filter_complex join=channel_layout=5c -f s16le
150 fate-filter-join: CMP = oneline
151 fate-filter-join: REF = 88b0d24a64717ba8635b29e8dac6ecd8
152
153 FATE_AFILTER-$(call ALLYES, WAV_DEMUXER PCM_S16LE_DECODER PCM_S16LE_ENCODER PCM_S16LE_MUXER APERMS_FILTER VOLUME_FILTER) += fate-filter-volume
154 fate-filter-volume: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
155 fate-filter-volume: tests/data/asynth-44100-2.wav
156 fate-filter-volume: CMD = md5 -i $(SRC) -af aperms=random,volume=precision=fixed:volume=0.5 -f s16le
157 fate-filter-volume: CMP = oneline
158 fate-filter-volume: REF = 4d6ba75ef3e32d305d066b9bc771d6f4
159
160 FATE_AFILTER_SAMPLES-$(call FILTERDEMDECENCMUX, HDCD, FLAC, FLAC, PCM_S24LE, PCM_S24LE) += fate-filter-hdcd
161 fate-filter-hdcd: SRC = $(TARGET_SAMPLES)/filter/hdcd.flac
162 fate-filter-hdcd: CMD = md5 -i $(SRC) -af hdcd -f s24le
163 fate-filter-hdcd: CMP = oneline
164 fate-filter-hdcd: REF = 5db465a58d2fd0d06ca944b883b33476
165
166 FATE_AFILTER-yes += fate-filter-formats
167 fate-filter-formats: libavfilter/formats-test$(EXESUF)
168 fate-filter-formats: CMD = run libavfilter/formats-test
169
170 FATE_SAMPLES_AVCONV += $(FATE_AFILTER_SAMPLES-yes)
171 FATE_FFMPEG += $(FATE_AFILTER-yes)
172 fate-afilter: $(FATE_AFILTER-yes) $(FATE_AFILTER_SAMPLES-yes)