b3ed64fbe175b859ffcbe3ba0d46b55e545e82df
[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 tests/data/hls-list.m3u8: TAG = GEN
7 tests/data/hls-list.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
8         $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
9         -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 \
10         -segment_list $(TARGET_PATH)/$@ -y $(TARGET_PATH)/tests/data/hls-out-%03d.ts 2>/dev/null
11
12 FATE_AFILTER-$(call ALLYES, HLS_DEMUXER MPEGTS_MUXER MPEGTS_DEMUXER AEVALSRC_FILTER LAVFI_INDEV MP2FIXED_ENCODER) += fate-filter-hls
13 fate-filter-hls: tests/data/hls-list.m3u8
14 fate-filter-hls: CMD = framecrc -flags +bitexact -i $(TARGET_PATH)/tests/data/hls-list.m3u8
15
16 FATE_AMIX += fate-filter-amix-simple
17 fate-filter-amix-simple: CMD = ffmpeg -filter_complex amix -i $(SRC) -ss 3 -i $(SRC1) -f f32le -
18 fate-filter-amix-simple: REF = $(SAMPLES)/filter/amix_simple.pcm
19
20 FATE_AMIX += fate-filter-amix-first
21 fate-filter-amix-first: CMD = ffmpeg -filter_complex amix=duration=first -ss 4 -i $(SRC) -i $(SRC1) -f f32le -
22 fate-filter-amix-first: REF = $(SAMPLES)/filter/amix_first.pcm
23
24 FATE_AMIX += fate-filter-amix-transition
25 fate-filter-amix-transition: tests/data/asynth-44100-2-3.wav
26 fate-filter-amix-transition: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-2-3.wav
27 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 -
28 fate-filter-amix-transition: REF = $(SAMPLES)/filter/amix_transition.pcm
29
30 FATE_AFILTER_SAMPLES-$(call FILTERDEMDECENCMUX, AMIX, WAV, PCM_S16LE, PCM_F32LE, PCM_F32LE) += $(FATE_AMIX)
31 $(FATE_AMIX): tests/data/asynth-44100-2.wav tests/data/asynth-44100-2-2.wav
32 $(FATE_AMIX): SRC  = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
33 $(FATE_AMIX): SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2-2.wav
34 $(FATE_AMIX): CMP  = oneoff
35 $(FATE_AMIX): CMP_UNIT = f32
36
37 FATE_AFILTER_SAMPLES-$(call FILTERDEMDECMUX, ASYNCTS, FLV, NELLYMOSER, PCM_S16LE) += fate-filter-asyncts
38 fate-filter-asyncts: SRC = $(TARGET_SAMPLES)/nellymoser/nellymoser-discont.flv
39 fate-filter-asyncts: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af asyncts
40 fate-filter-asyncts: CMP = oneoff
41 fate-filter-asyncts: REF = $(SAMPLES)/nellymoser/nellymoser-discont-async-v3.pcm
42
43 FATE_AFILTER_SAMPLES-$(CONFIG_ARESAMPLE_FILTER) += fate-filter-aresample
44 fate-filter-aresample: SRC = $(TARGET_SAMPLES)/nellymoser/nellymoser-discont.flv
45 fate-filter-aresample: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af aresample=min_comp=0.001:min_hard_comp=0.1:first_pts=0
46 fate-filter-aresample: CMP = oneoff
47 fate-filter-aresample: REF = $(SAMPLES)/nellymoser/nellymoser-discont.pcm
48
49 FATE_ATRIM += fate-filter-atrim-duration
50 fate-filter-atrim-duration: CMD = framecrc -i $(SRC) -af atrim=start=0.1:duration=0.01
51 FATE_ATRIM += fate-filter-atrim-mixed
52 fate-filter-atrim-mixed: CMD = framecrc -i $(SRC) -af atrim=start=0.05:start_sample=1025:end=0.1:end_sample=4411
53
54 FATE_ATRIM += fate-filter-atrim-samples
55 fate-filter-atrim-samples: CMD = framecrc -i $(SRC) -af atrim=start_sample=26:end_sample=80
56
57 FATE_ATRIM += fate-filter-atrim-time
58 fate-filter-atrim-time: CMD = framecrc -i $(SRC) -af atrim=0.1:0.2
59
60 $(FATE_ATRIM): tests/data/asynth-44100-2.wav
61 $(FATE_ATRIM): SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
62
63 FATE_AFILTER-$(call FILTERDEMDECENCMUX, ATRIM, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_ATRIM)
64
65 FATE_FILTER_CHANNELMAP += fate-filter-channelmap-one-int
66 fate-filter-channelmap-one-int: tests/data/filtergraphs/channelmap_one_int
67 fate-filter-channelmap-one-int: SRC = $(TARGET_PATH)/tests/data/asynth-44100-6.wav
68 fate-filter-channelmap-one-int: tests/data/asynth-44100-6.wav
69 fate-filter-channelmap-one-int: CMD = md5 -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/channelmap_one_int -f wav -fflags +bitexact
70 fate-filter-channelmap-one-int: CMP = oneline
71 fate-filter-channelmap-one-int: REF = 428b8f9fac6d57147069b97335019ef5
72
73 FATE_FILTER_CHANNELMAP += fate-filter-channelmap-one-str
74 fate-filter-channelmap-one-str: tests/data/filtergraphs/channelmap_one_str
75 fate-filter-channelmap-one-str: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
76 fate-filter-channelmap-one-str: tests/data/asynth-44100-2.wav
77 fate-filter-channelmap-one-str: CMD = md5 -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/channelmap_one_str -f wav -fflags +bitexact
78 fate-filter-channelmap-one-str: CMP = oneline
79 fate-filter-channelmap-one-str: REF = e788890db6a11c2fb29d7c4229072d49
80
81 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELMAP, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_FILTER_CHANNELMAP)
82
83 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELSPLIT, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-channelsplit
84 fate-filter-channelsplit: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
85 fate-filter-channelsplit: tests/data/asynth-44100-2.wav
86 fate-filter-channelsplit: CMD = md5 -i $(SRC) -filter_complex channelsplit -f s16le
87 fate-filter-channelsplit: CMP = oneline
88 fate-filter-channelsplit: REF = d92988d0fe2dd92236763f47b07ab597
89
90 FATE_AFILTER-$(call FILTERDEMDECENCMUX, JOIN, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-join
91 fate-filter-join: SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
92 fate-filter-join: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-3.wav
93 fate-filter-join: tests/data/asynth-44100-2.wav tests/data/asynth-44100-3.wav
94 fate-filter-join: CMD = md5 -i $(SRC1) -i $(SRC2) -filter_complex join=channel_layout=5c -f s16le
95 fate-filter-join: CMP = oneline
96 fate-filter-join: REF = 88b0d24a64717ba8635b29e8dac6ecd8
97
98 FATE_AFILTER-$(call ALLYES, WAV_DEMUXER PCM_S16LE_DECODER PCM_S16LE_ENCODER PCM_S16LE_MUXER APERMS_FILTER VOLUME_FILTER) += fate-filter-volume
99 fate-filter-volume: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
100 fate-filter-volume: tests/data/asynth-44100-2.wav
101 fate-filter-volume: CMD = md5 -i $(SRC) -af aperms=random,volume=precision=fixed:volume=0.5 -f s16le
102 fate-filter-volume: CMP = oneline
103 fate-filter-volume: REF = 4d6ba75ef3e32d305d066b9bc771d6f4
104
105 FATE_AFILTER-yes += fate-filter-formats
106 fate-filter-formats: libavfilter/formats-test$(EXESUF)
107 fate-filter-formats: CMD = run libavfilter/formats-test
108
109 FATE_SAMPLES_AVCONV += $(FATE_AFILTER_SAMPLES-yes)
110 FATE_FFMPEG += $(FATE_AFILTER-yes)
111 fate-afilter: $(FATE_AFILTER-yes) $(FATE_AFILTER_SAMPLES-yes)