Merge commit 'a1e05b0487a1939334c2920fc7f9936bc9efe876'
[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_ATRIM += fate-filter-atrim-duration
35 fate-filter-atrim-duration: CMD = framecrc -i $(SRC) -af atrim=start=0.1:duration=0.01
36 FATE_ATRIM += fate-filter-atrim-mixed
37 fate-filter-atrim-mixed: CMD = framecrc -i $(SRC) -af atrim=start=0.05:start_sample=1025:end=0.1:end_sample=4411
38
39 FATE_ATRIM += fate-filter-atrim-samples
40 fate-filter-atrim-samples: CMD = framecrc -i $(SRC) -af atrim=start_sample=26:end_sample=80
41
42 FATE_ATRIM += fate-filter-atrim-time
43 fate-filter-atrim-time: CMD = framecrc -i $(SRC) -af atrim=0.1:0.2
44
45 $(FATE_ATRIM): tests/data/asynth-44100-2.wav
46 $(FATE_ATRIM): SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
47
48 FATE_FILTER-$(call FILTERDEMDECENCMUX, ATRIM, WAV, PCM_S16LE, PCM_S16LE, WAV) += $(FATE_ATRIM)
49
50 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELMAP, WAV, PCM_S16LE, PCM_S16LE, WAV) += fate-filter-channelmap
51 fate-filter-channelmap: SRC = $(TARGET_PATH)/tests/data/asynth-44100-6.wav
52 fate-filter-channelmap: tests/data/asynth-44100-6.wav
53 fate-filter-channelmap: CMD = md5 -i $(SRC) -filter_complex_script $(SRC_PATH)/tests/filtergraphs/channelmap -f wav -flags +bitexact
54 fate-filter-channelmap: CMP = oneline
55 fate-filter-channelmap: REF = 06168d06085e2c0603e4e118ba4cade2
56
57 FATE_AFILTER-$(call FILTERDEMDECENCMUX, CHANNELSPLIT, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-channelsplit
58 fate-filter-channelsplit: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
59 fate-filter-channelsplit: tests/data/asynth-44100-2.wav
60 fate-filter-channelsplit: CMD = md5 -i $(SRC) -filter_complex channelsplit -f s16le
61 fate-filter-channelsplit: CMP = oneline
62 fate-filter-channelsplit: REF = d92988d0fe2dd92236763f47b07ab597
63
64 FATE_AFILTER-$(call FILTERDEMDECENCMUX, JOIN, WAV, PCM_S16LE, PCM_S16LE, PCM_S16LE) += fate-filter-join
65 fate-filter-join: SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
66 fate-filter-join: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-3.wav
67 fate-filter-join: tests/data/asynth-44100-2.wav tests/data/asynth-44100-3.wav
68 fate-filter-join: CMD = md5 -i $(SRC1) -i $(SRC2) -filter_complex join=channel_layout=5 -f s16le
69 fate-filter-join: CMP = oneline
70 fate-filter-join: REF = 88b0d24a64717ba8635b29e8dac6ecd8
71
72 FATE_AFILTER-$(call ALLYES, WAV_DEMUXER PCM_S16LE_DECODER PCM_S16LE_ENCODER PCM_S16LE_MUXER APERMS_FILTER VOLUME_FILTER) += fate-filter-volume
73 fate-filter-volume: SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
74 fate-filter-volume: tests/data/asynth-44100-2.wav
75 fate-filter-volume: CMD = md5 -i $(SRC) -af aperms=random,volume=precision=fixed:volume=0.5 -f s16le
76 fate-filter-volume: CMP = oneline
77 fate-filter-volume: REF = 4d6ba75ef3e32d305d066b9bc771d6f4
78
79 FATE_SAMPLES_AVCONV += $(FATE_AFILTER-yes)
80 fate-afilter: $(FATE_AFILTER-yes)