fate: fix filter metadata dependency to ffprobe.
[ffmpeg.git] / tests / fate / filter.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_AMIX): tests/data/asynth-44100-2.wav tests/data/asynth-44100-2-2.wav
16 $(FATE_AMIX): SRC  = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
17 $(FATE_AMIX): SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2-2.wav
18 $(FATE_AMIX): CMP  = oneoff
19 $(FATE_AMIX): CMP_UNIT = f32
20
21 FATE_FILTER-$(CONFIG_AMIX_FILTER) += $(FATE_AMIX)
22
23 FATE_FILTER-$(CONFIG_ASYNCTS_FILTER) += fate-filter-asyncts
24 fate-filter-asyncts: SRC = $(SAMPLES)/nellymoser/nellymoser-discont.flv
25 fate-filter-asyncts: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af asyncts
26 fate-filter-asyncts: CMP = oneoff
27 fate-filter-asyncts: REF = $(SAMPLES)/nellymoser/nellymoser-discont-async.pcm
28
29 FATE_FILTER-$(CONFIG_ARESAMPLE_FILTER) += fate-filter-aresample
30 fate-filter-aresample: SRC = $(SAMPLES)/nellymoser/nellymoser-discont.flv
31 fate-filter-aresample: CMD = pcm -i $(SRC) -af aresample=min_comp=0.001:min_hard_comp=0.1
32 fate-filter-aresample: CMP = oneoff
33 fate-filter-aresample: REF = $(SAMPLES)/nellymoser/nellymoser-discont.pcm
34
35 fate-filter-delogo: CMD = framecrc -i $(SAMPLES)/real/rv30.rm -vf delogo=show=0:x=290:y=25:w=26:h=16 -an
36
37 FATE_FILTER-$(CONFIG_DELOGO_FILTER) += fate-filter-delogo
38
39 FATE_YADIF += fate-filter-yadif-mode0
40 fate-filter-yadif-mode0: CMD = framecrc -flags bitexact -idct simple -i $(SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vf yadif=0
41
42 FATE_YADIF += fate-filter-yadif-mode1
43 fate-filter-yadif-mode1: CMD = framecrc -flags bitexact -idct simple -i $(SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vf yadif=1
44
45 FATE_FILTER-$(CONFIG_YADIF_FILTER) += $(FATE_YADIF)
46
47 FATE_SAMPLES_AVCONV += $(FATE_FILTER-yes)
48
49 #
50 # Metadata tests
51 #
52 FILTER_METADATA_COMMAND = ffprobe$(EXESUF) -show_frames -of compact=nk=1:p=0 -bitexact -f lavfi
53
54 FATE_METADATA_FILTER-$(call ALLYES, FFPROBE LAVFI_INDEV MOVIE_FILTER SELECT_FILTER AVCODEC MOV_DEMUXER SVQ3_DECODER ZLIB) += fate-filter-metadata-scenedetect
55 fate-filter-metadata-scenedetect: SRC = $(SAMPLES)/svq3/Vertical400kbit.sorenson3.mov
56 fate-filter-metadata-scenedetect: CMD = run $(FILTER_METADATA_COMMAND) "movie=$(SRC),select=gt(scene\,.4)"
57
58 FATE_METADATA_FILTER-$(call ALLYES, FFPROBE LAVFI_INDEV AMOVIE_FILTER AMR_DEMUXER AMRWB_DECODER) += fate-filter-metadata-silencedetect
59 fate-filter-metadata-silencedetect: SRC = $(SAMPLES)/amrwb/seed-12k65.awb
60 fate-filter-metadata-silencedetect: CMD = run $(FILTER_METADATA_COMMAND) "amovie=$(SRC),silencedetect=d=.1"
61
62 FATE_FFPROBE += $(FATE_METADATA_FILTER-yes)
63
64 fate-filter: $(FATE_FILTER-yes) $(FATE_METADATA_FILTER-yes)