Merge commit 'b472938233b98178ed6c1353c37e0dc7ab585902'
[ffmpeg.git] / tests / fate / filter-audio.mak
1 FATE_AMIX += fate-filter-amix-simple
2 fate-filter-amix-simple: CMD = ffmpeg -filter_complex amix -i $(SRC) -ss 3 -i $(SRC1) -f f32le -
3 fate-filter-amix-simple: REF = $(SAMPLES)/filter/amix_simple.pcm
4
5 FATE_AMIX += fate-filter-amix-first
6 fate-filter-amix-first: CMD = ffmpeg -filter_complex amix=duration=first -ss 4 -i $(SRC) -i $(SRC1) -f f32le -
7 fate-filter-amix-first: REF = $(SAMPLES)/filter/amix_first.pcm
8
9 FATE_AMIX += fate-filter-amix-transition
10 fate-filter-amix-transition: tests/data/asynth-44100-2-3.wav
11 fate-filter-amix-transition: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-2-3.wav
12 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 -
13 fate-filter-amix-transition: REF = $(SAMPLES)/filter/amix_transition.pcm
14
15 FATE_AFILTER-$(call FILTERDEMDECENCMUX, AMIX, WAV, PCM_S16LE, PCM_F32LE, PCM_F32LE) += $(FATE_AMIX)
16 $(FATE_AMIX): tests/data/asynth-44100-2.wav tests/data/asynth-44100-2-2.wav
17 $(FATE_AMIX): SRC  = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
18 $(FATE_AMIX): SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2-2.wav
19 $(FATE_AMIX): CMP  = oneoff
20 $(FATE_AMIX): CMP_UNIT = f32
21
22 FATE_AFILTER-$(call FILTERDEMDECMUX, ASYNCTS, FLV, NELLYMOSER, PCM_S16LE) += fate-filter-asyncts
23 fate-filter-asyncts: SRC = $(SAMPLES)/nellymoser/nellymoser-discont.flv
24 fate-filter-asyncts: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af asyncts
25 fate-filter-asyncts: CMP = oneoff
26 fate-filter-asyncts: REF = $(SAMPLES)/nellymoser/nellymoser-discont-async-v2.pcm
27
28 FATE_FILTER-$(CONFIG_ARESAMPLE_FILTER) += fate-filter-aresample
29 fate-filter-aresample: SRC = $(SAMPLES)/nellymoser/nellymoser-discont.flv
30 fate-filter-aresample: CMD = pcm -i $(SRC) -af aresample=min_comp=0.001:min_hard_comp=0.1:first_pts=0
31 fate-filter-aresample: CMP = oneoff
32 fate-filter-aresample: REF = $(SAMPLES)/nellymoser/nellymoser-discont.pcm
33
34 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELMAP, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-channelmap
35 fate-filter-channelmap: SRC = $(TARGET_PATH)/tests/data/asynth-44100-6.wav
36 fate-filter-channelmap: tests/data/asynth-44100-6.wav
37 fate-filter-channelmap: CMD = md5 -i $(SRC) -filter_complex_script $(SRC_PATH)/tests/filtergraphs/channelmap -f wav -flags +bitexact
38 fate-filter-channelmap: CMP = oneline
39 fate-filter-channelmap: REF = 06168d06085e2c0603e4e118ba4cade2
40
41 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELSPLIT, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-channelsplit
42 fate-filter-channelsplit: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
43 fate-filter-channelsplit: tests/data/asynth-44100-2.wav
44 fate-filter-channelsplit: CMD = md5 -i $(SRC) -filter_complex channelsplit -f s16le
45 fate-filter-channelsplit: CMP = oneline
46 fate-filter-channelsplit: REF = d92988d0fe2dd92236763f47b07ab597
47
48 FATE_AFILTER-$(call FILTERDEMDECENCMUX, JOIN, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-join
49 fate-filter-join: SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
50 fate-filter-join: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-3.wav
51 fate-filter-join: tests/data/asynth-44100-2.wav tests/data/asynth-44100-3.wav
52 fate-filter-join: CMD = md5 -i $(SRC1) -i $(SRC2) -filter_complex join=channel_layout=5 -f s16le
53 fate-filter-join: CMP = oneline
54 fate-filter-join: REF = 88b0d24a64717ba8635b29e8dac6ecd8
55
56 FATE_AFILTER-$(call ALLYES, WAV_DEMUXER PCM_S16LE_DECODER PCM_S16LE_ENCODER PCM_S16LE_MUXER APERMS_FILTER VOLUME_FILTER) += fate-filter-volume
57 fate-filter-volume: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
58 fate-filter-volume: tests/data/asynth-44100-2.wav
59 fate-filter-volume: CMD = md5 -i $(SRC) -af aperms=random,volume=precision=fixed:volume=0.5 -f s16le
60 fate-filter-volume: CMP = oneline
61 fate-filter-volume: REF = 4d6ba75ef3e32d305d066b9bc771d6f4
62
63 FATE_SAMPLES_AVCONV += $(FATE_AFILTER-yes)
64 fate-afilter: $(FATE_AFILTER-yes)