ef5121623c87ea4eb93429ba0996b3160c90d61f
[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_AMIX += fate-filter-amix-simple
7 fate-filter-amix-simple: CMD = ffmpeg -filter_complex amix -i $(SRC) -ss 3 -i $(SRC1) -f f32le -
8 fate-filter-amix-simple: REF = $(SAMPLES)/filter/amix_simple.pcm
9
10 FATE_AMIX += fate-filter-amix-first
11 fate-filter-amix-first: CMD = ffmpeg -filter_complex amix=duration=first -ss 4 -i $(SRC) -i $(SRC1) -f f32le -
12 fate-filter-amix-first: REF = $(SAMPLES)/filter/amix_first.pcm
13
14 FATE_AMIX += fate-filter-amix-transition
15 fate-filter-amix-transition: tests/data/asynth-44100-2-3.wav
16 fate-filter-amix-transition: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-2-3.wav
17 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 -
18 fate-filter-amix-transition: REF = $(SAMPLES)/filter/amix_transition.pcm
19
20 FATE_AFILTER-$(call FILTERDEMDECENCMUX, AMIX, WAV, PCM_S16LE, PCM_F32LE, PCM_F32LE) += $(FATE_AMIX)
21 $(FATE_AMIX): tests/data/asynth-44100-2.wav tests/data/asynth-44100-2-2.wav
22 $(FATE_AMIX): SRC  = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
23 $(FATE_AMIX): SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2-2.wav
24 $(FATE_AMIX): CMP  = oneoff
25 $(FATE_AMIX): CMP_UNIT = f32
26
27 FATE_AFILTER-$(call FILTERDEMDECMUX, ASYNCTS, FLV, NELLYMOSER, PCM_S16LE) += fate-filter-asyncts
28 fate-filter-asyncts: SRC = $(TARGET_SAMPLES)/nellymoser/nellymoser-discont.flv
29 fate-filter-asyncts: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af asyncts
30 fate-filter-asyncts: CMP = oneoff
31 fate-filter-asyncts: REF = $(SAMPLES)/nellymoser/nellymoser-discont-async-v3.pcm
32
33 FATE_FILTER-$(CONFIG_ARESAMPLE_FILTER) += fate-filter-aresample
34 fate-filter-aresample: SRC = $(TARGET_SAMPLES)/nellymoser/nellymoser-discont.flv
35 fate-filter-aresample: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af aresample=min_comp=0.001:min_hard_comp=0.1:first_pts=0
36 fate-filter-aresample: CMP = oneoff
37 fate-filter-aresample: REF = $(SAMPLES)/nellymoser/nellymoser-discont.pcm
38
39 FATE_ATRIM += fate-filter-atrim-duration
40 fate-filter-atrim-duration: CMD = framecrc -i $(SRC) -af atrim=start=0.1:duration=0.01
41 FATE_ATRIM += fate-filter-atrim-mixed
42 fate-filter-atrim-mixed: CMD = framecrc -i $(SRC) -af atrim=start=0.05:start_sample=1025:end=0.1:end_sample=4411
43
44 FATE_ATRIM += fate-filter-atrim-samples
45 fate-filter-atrim-samples: CMD = framecrc -i $(SRC) -af atrim=start_sample=26:end_sample=80
46
47 FATE_ATRIM += fate-filter-atrim-time
48 fate-filter-atrim-time: CMD = framecrc -i $(SRC) -af atrim=0.1:0.2
49
50 $(FATE_ATRIM): tests/data/asynth-44100-2.wav
51 $(FATE_ATRIM): SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
52
53 FATE_FILTER-$(call FILTERDEMDECENCMUX, ATRIM, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_ATRIM)
54
55 FATE_FILTER_CHANNELMAP += fate-filter-channelmap-one-int
56 fate-filter-channelmap-one-int: tests/data/filtergraphs/channelmap_one_int
57 fate-filter-channelmap-one-int: SRC = $(TARGET_PATH)/tests/data/asynth-44100-6.wav
58 fate-filter-channelmap-one-int: tests/data/asynth-44100-6.wav
59 fate-filter-channelmap-one-int: CMD = md5 -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/channelmap_one_int -f wav -flags +bitexact
60 fate-filter-channelmap-one-int: CMP = oneline
61 fate-filter-channelmap-one-int: REF = 06168d06085e2c0603e4e118ba4cade2
62
63 FATE_FILTER_CHANNELMAP += fate-filter-channelmap-one-str
64 fate-filter-channelmap-one-str: tests/data/filtergraphs/channelmap_one_str
65 fate-filter-channelmap-one-str: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
66 fate-filter-channelmap-one-str: tests/data/asynth-44100-2.wav
67 fate-filter-channelmap-one-str: CMD = md5 -i $(SRC) -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/channelmap_one_str -f wav -flags +bitexact
68 fate-filter-channelmap-one-str: CMP = oneline
69 fate-filter-channelmap-one-str: REF = 49ed4aaec717f1b28137c9e1f01f343b
70
71 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELMAP, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_FILTER_CHANNELMAP)
72
73 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELSPLIT, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-channelsplit
74 fate-filter-channelsplit: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
75 fate-filter-channelsplit: tests/data/asynth-44100-2.wav
76 fate-filter-channelsplit: CMD = md5 -i $(SRC) -filter_complex channelsplit -f s16le
77 fate-filter-channelsplit: CMP = oneline
78 fate-filter-channelsplit: REF = d92988d0fe2dd92236763f47b07ab597
79
80 FATE_AFILTER-$(call FILTERDEMDECENCMUX, JOIN, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-join
81 fate-filter-join: SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
82 fate-filter-join: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-3.wav
83 fate-filter-join: tests/data/asynth-44100-2.wav tests/data/asynth-44100-3.wav
84 fate-filter-join: CMD = md5 -i $(SRC1) -i $(SRC2) -filter_complex join=channel_layout=5 -f s16le
85 fate-filter-join: CMP = oneline
86 fate-filter-join: REF = 88b0d24a64717ba8635b29e8dac6ecd8
87
88 FATE_AFILTER-$(call ALLYES, WAV_DEMUXER PCM_S16LE_DECODER PCM_S16LE_ENCODER PCM_S16LE_MUXER APERMS_FILTER VOLUME_FILTER) += fate-filter-volume
89 fate-filter-volume: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
90 fate-filter-volume: tests/data/asynth-44100-2.wav
91 fate-filter-volume: CMD = md5 -i $(SRC) -af aperms=random,volume=precision=fixed:volume=0.5 -f s16le
92 fate-filter-volume: CMP = oneline
93 fate-filter-volume: REF = 4d6ba75ef3e32d305d066b9bc771d6f4
94
95 FATE_SAMPLES_AVCONV += $(FATE_AFILTER-yes)
96 fate-afilter: $(FATE_AFILTER-yes)