2012-12-01 22:38:26 +03:00
|
|
|
FILTERDEMDEC = $(call ALLYES, $(1)_FILTER $(2)_DEMUXER $(3)_DECODER)
|
|
|
|
FILTERDEMDECMUX = $(call ALLYES, $(1)_FILTER $(2)_DEMUXER $(3)_DECODER $(4)_MUXER)
|
|
|
|
FILTERDEMDECENCMUX = $(call ALLYES, $(1)_FILTER $(2)_DEMUXER $(3)_DECODER $(4)_ENCODER $(5)_MUXER)
|
|
|
|
|
2012-05-29 13:08:58 +03:00
|
|
|
FATE_AMIX += fate-filter-amix-simple
|
2012-07-29 02:56:31 +03:00
|
|
|
fate-filter-amix-simple: CMD = ffmpeg -filter_complex amix -i $(SRC) -ss 3 -i $(SRC1) -f f32le -
|
2012-05-29 13:08:58 +03:00
|
|
|
fate-filter-amix-simple: REF = $(SAMPLES)/filter/amix_simple.pcm
|
|
|
|
|
|
|
|
FATE_AMIX += fate-filter-amix-first
|
2012-07-29 02:56:31 +03:00
|
|
|
fate-filter-amix-first: CMD = ffmpeg -filter_complex amix=duration=first -ss 4 -i $(SRC) -i $(SRC1) -f f32le -
|
2012-05-29 13:08:58 +03:00
|
|
|
fate-filter-amix-first: REF = $(SAMPLES)/filter/amix_first.pcm
|
|
|
|
|
|
|
|
FATE_AMIX += fate-filter-amix-transition
|
|
|
|
fate-filter-amix-transition: tests/data/asynth-44100-2-3.wav
|
|
|
|
fate-filter-amix-transition: SRC2 = $(TARGET_PATH)/tests/data/asynth-44100-2-3.wav
|
2012-07-29 02:56:31 +03:00
|
|
|
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 -
|
2012-05-29 13:08:58 +03:00
|
|
|
fate-filter-amix-transition: REF = $(SAMPLES)/filter/amix_transition.pcm
|
|
|
|
|
|
|
|
$(FATE_AMIX): tests/data/asynth-44100-2.wav tests/data/asynth-44100-2-2.wav
|
|
|
|
$(FATE_AMIX): SRC = $(TARGET_PATH)/tests/data/asynth-44100-2.wav
|
|
|
|
$(FATE_AMIX): SRC1 = $(TARGET_PATH)/tests/data/asynth-44100-2-2.wav
|
|
|
|
$(FATE_AMIX): CMP = oneoff
|
2012-07-29 20:11:27 +03:00
|
|
|
$(FATE_AMIX): CMP_UNIT = f32
|
2012-05-29 13:08:58 +03:00
|
|
|
|
2012-12-01 22:38:26 +03:00
|
|
|
FATE_FILTER-$(call FILTERDEMDECENCMUX, AMIX, WAV, PCM_S16LE, PCM_F32LE, PCM_F32LE) += $(FATE_AMIX)
|
2012-05-29 13:08:58 +03:00
|
|
|
|
2012-12-01 22:38:26 +03:00
|
|
|
FATE_FILTER-$(call FILTERDEMDECMUX, ASYNCTS, FLV, NELLYMOSER, PCM_S16LE) += fate-filter-asyncts
|
2012-07-05 11:28:28 +03:00
|
|
|
fate-filter-asyncts: SRC = $(SAMPLES)/nellymoser/nellymoser-discont.flv
|
2012-08-12 16:45:23 +03:00
|
|
|
fate-filter-asyncts: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af asyncts
|
2012-07-22 12:29:06 +03:00
|
|
|
fate-filter-asyncts: CMP = oneoff
|
2012-12-14 20:53:38 +03:00
|
|
|
fate-filter-asyncts: REF = $(SAMPLES)/nellymoser/nellymoser-discont-async-v2.pcm
|
2012-08-12 16:45:23 +03:00
|
|
|
|
|
|
|
FATE_FILTER-$(CONFIG_ARESAMPLE_FILTER) += fate-filter-aresample
|
|
|
|
fate-filter-aresample: SRC = $(SAMPLES)/nellymoser/nellymoser-discont.flv
|
2013-02-25 05:02:54 +03:00
|
|
|
fate-filter-aresample: CMD = pcm -i $(SRC) -af aresample=min_comp=0.001:min_hard_comp=0.1:first_pts=0
|
2012-08-12 16:45:23 +03:00
|
|
|
fate-filter-aresample: CMP = oneoff
|
|
|
|
fate-filter-aresample: REF = $(SAMPLES)/nellymoser/nellymoser-discont.pcm
|
2012-07-05 11:28:28 +03:00
|
|
|
|
2013-03-13 13:03:08 +03:00
|
|
|
FATE_FILTER_VSYNTH-$(CONFIG_BOXBLUR_FILTER) += fate-filter-boxblur
|
|
|
|
fate-filter-boxblur: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf boxblur=2:1
|
|
|
|
|
2013-03-16 18:22:56 +03:00
|
|
|
fate-filter-delogo: CMD = framecrc -i $(SAMPLES)/real/rv30.rm -vf perms=random,delogo=show=0:x=290:y=25:w=26:h=16 -an
|
2012-07-09 13:09:58 +03:00
|
|
|
|
2013-03-28 15:00:39 +03:00
|
|
|
FATE_FILTER-$(call ALLYES, PERMS_FILTER DELOGO_FILTER RM_DEMUXER RV30_DECODER) += fate-filter-delogo
|
2012-07-09 13:09:58 +03:00
|
|
|
|
2013-03-13 13:03:08 +03:00
|
|
|
FATE_FILTER_VSYNTH-$(CONFIG_DRAWBOX_FILTER) += fate-filter-drawbox
|
|
|
|
fate-filter-drawbox: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf drawbox=10:20:200:60:red@0.5
|
|
|
|
|
2013-03-13 13:03:08 +03:00
|
|
|
FATE_FILTER_VSYNTH-$(CONFIG_FADE_FILTER) += fate-filter-fade
|
|
|
|
fate-filter-fade: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf fade=in:0:25,fade=out:25:25
|
|
|
|
|
2013-03-13 13:03:08 +03:00
|
|
|
FATE_FILTER_VSYNTH-$(CONFIG_GRADFUN_FILTER) += fate-filter-gradfun
|
|
|
|
fate-filter-gradfun: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf gradfun
|
|
|
|
|
2013-03-13 13:03:08 +03:00
|
|
|
FATE_FILTER_VSYNTH-$(CONFIG_HQDN3D_FILTER) += fate-filter-hqdn3d
|
|
|
|
fate-filter-hqdn3d: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf hqdn3d
|
|
|
|
|
2013-03-13 13:03:08 +03:00
|
|
|
FATE_FILTER_VSYNTH-$(call ALLYES, SETPTS_FILTER SETTB_FILTER) += fate-filter-setpts
|
|
|
|
fate-filter-setpts: CMD = framecrc -c:v pgmyuv -i $(SRC) -filter_script $(SRC_PATH)/tests/filtergraphs/setpts
|
|
|
|
|
2013-03-13 13:03:08 +03:00
|
|
|
FATE_FILTER_VSYNTH-$(CONFIG_TRANSPOSE_FILTER) += fate-filter-transpose
|
|
|
|
fate-filter-transpose: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf transpose
|
|
|
|
|
2013-03-13 13:03:08 +03:00
|
|
|
FATE_FILTER_VSYNTH-$(CONFIG_UNSHARP_FILTER) += fate-filter-unsharp
|
|
|
|
fate-filter-unsharp: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf unsharp
|
|
|
|
|
2012-07-25 09:25:38 +03:00
|
|
|
FATE_YADIF += fate-filter-yadif-mode0
|
2013-03-24 03:30:11 +03:00
|
|
|
fate-filter-yadif-mode0: CMD = framecrc -flags bitexact -idct simple -i $(SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vframes 30 -vf yadif=0
|
2012-07-25 09:25:38 +03:00
|
|
|
|
|
|
|
FATE_YADIF += fate-filter-yadif-mode1
|
2013-03-24 03:30:11 +03:00
|
|
|
fate-filter-yadif-mode1: CMD = framecrc -flags bitexact -idct simple -i $(SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vframes 59 -vf yadif=1
|
2012-07-25 09:25:38 +03:00
|
|
|
|
2012-12-01 22:38:26 +03:00
|
|
|
FATE_FILTER-$(call FILTERDEMDEC, YADIF, MPEGTS, MPEG2VIDEO) += $(FATE_YADIF)
|
2012-07-25 09:25:38 +03:00
|
|
|
|
2013-03-28 16:00:15 +03:00
|
|
|
FATE_HQDN3D += fate-filter-hqdn3d-ubitux
|
|
|
|
fate-filter-hqdn3d-ubitux: CMD = framecrc -idct simple -i $(SAMPLES)/smjpeg/scenwin.mjpg -vf perms=random,hqdn3d -an
|
2013-03-14 23:59:42 +03:00
|
|
|
FATE_FILTER-$(call ALLYES, SMJPEG_DEMUXER MJPEG_DECODER PERMS_FILTER HQDN3D_FILTER) += $(FATE_HQDN3D)
|
2012-12-02 19:15:01 +03:00
|
|
|
|
2013-03-26 02:00:15 +03:00
|
|
|
fate-filter-curves: CMD = framecrc -i $(SAMPLES)/utvideo/utvideo_rgb_median.avi -vf perms=random,curves=vintage
|
2013-03-19 17:24:15 +03:00
|
|
|
FATE_FILTER-$(call ALLYES, UTVIDEO_DECODER AVI_DEMUXER PERMS_FILTER CURVES_FILTER) += fate-filter-curves
|
|
|
|
|
2013-03-28 15:23:12 +03:00
|
|
|
FATE_GRADFUN += fate-filter-gradfun-ubitux
|
|
|
|
fate-filter-gradfun-ubitux: CMD = framecrc -i $(SAMPLES)/vmd/12.vmd -vf "sws_flags=+accurate_rnd+bitexact;format=gray,perms=random,gradfun=10:8" -an -frames:v 20
|
2013-03-14 23:59:42 +03:00
|
|
|
FATE_FILTER-$(call ALLYES, VMD_DEMUXER VMDVIDEO_DECODER FORMAT_FILTER PERMS_FILTER GRADFUN_FILTER) += $(FATE_GRADFUN)
|
2012-12-02 21:52:33 +03:00
|
|
|
|
2013-03-21 15:42:44 +03:00
|
|
|
fate-filter-concat: CMD = framecrc -lavfi "testsrc=r=5:n=1:d=2[v1];sine=440:b=2:d=1[a1];testsrc=r=5:n=1:d=1[v2];sine=622:b=2:d=2[a2];testsrc=r=5:n=1:d=1[v3];sine=880:b=2:d=1[a3];[v1][a1][v2][a2][v3][a3]concat=v=1:a=1:n=3"
|
|
|
|
FATE_FILTER-$(call ALLYES, TESTSRC_FILTER SINE_FILTER CONCAT_FILTER) += fate-filter-concat
|
|
|
|
|
2013-03-13 13:03:08 +03:00
|
|
|
$(FATE_FILTER_VSYNTH-yes): tests/vsynth1/00.pgm
|
|
|
|
$(FATE_FILTER_VSYNTH-yes): SRC = $(TARGET_PATH)/tests/vsynth1/%02d.pgm
|
|
|
|
FATE_AVCONV-$(call DEMDEC, IMAGE2, PGMYUV) += $(FATE_FILTER_VSYNTH-yes)
|
|
|
|
|
2012-10-21 21:10:37 +03:00
|
|
|
FATE_SAMPLES_AVCONV += $(FATE_FILTER-yes)
|
|
|
|
|
2012-10-10 01:36:19 +03:00
|
|
|
#
|
|
|
|
# Metadata tests
|
|
|
|
#
|
2013-03-20 01:09:36 +03:00
|
|
|
FILTER_METADATA_COMMAND = ffprobe$(EXESUF) -of compact=p=0 -show_entries frame=pkt_pts:frame_tags -bitexact -f lavfi
|
2012-10-10 01:36:19 +03:00
|
|
|
|
2012-10-22 23:12:19 +03:00
|
|
|
SCENEDETECT_DEPS = FFPROBE LAVFI_INDEV MOVIE_FILTER SELECT_FILTER SCALE_FILTER \
|
2013-03-09 16:39:13 +03:00
|
|
|
AVCODEC AVDEVICE MOV_DEMUXER SVQ3_DECODER ZLIB
|
2012-10-22 23:12:19 +03:00
|
|
|
FATE_METADATA_FILTER-$(call ALLYES, $(SCENEDETECT_DEPS)) += fate-filter-metadata-scenedetect
|
2012-10-10 01:36:19 +03:00
|
|
|
fate-filter-metadata-scenedetect: SRC = $(SAMPLES)/svq3/Vertical400kbit.sorenson3.mov
|
2012-10-23 00:01:08 +03:00
|
|
|
fate-filter-metadata-scenedetect: CMD = run $(FILTER_METADATA_COMMAND) "sws_flags=+accurate_rnd+bitexact;movie='$(SRC)',select=gt(scene\,.4)"
|
2012-10-10 01:36:19 +03:00
|
|
|
|
2013-03-19 19:39:08 +03:00
|
|
|
SILENCEDETECT_DEPS = FFPROBE AVDEVICE LAVFI_INDEV AMOVIE_FILTER AMR_DEMUXER AMRWB_DECODER SILENCEDETECT_FILTER
|
2012-10-22 23:12:19 +03:00
|
|
|
FATE_METADATA_FILTER-$(call ALLYES, $(SILENCEDETECT_DEPS)) += fate-filter-metadata-silencedetect
|
2012-10-10 00:01:31 +03:00
|
|
|
fate-filter-metadata-silencedetect: SRC = $(SAMPLES)/amrwb/seed-12k65.awb
|
2012-12-06 17:08:38 +03:00
|
|
|
fate-filter-metadata-silencedetect: CMD = run $(FILTER_METADATA_COMMAND) "amovie='$(SRC)',silencedetect=d=-20dB"
|
2012-10-10 00:01:31 +03:00
|
|
|
|
2013-03-19 19:39:08 +03:00
|
|
|
EBUR128_METADATA_DEPS = FFPROBE AVDEVICE LAVFI_INDEV AMOVIE_FILTER FLAC_DEMUXER FLAC_DECODER EBUR128_FILTER
|
2013-03-15 04:52:30 +03:00
|
|
|
FATE_METADATA_FILTER-$(call ALLYES, $(EBUR128_METADATA_DEPS)) += fate-filter-metadata-ebur128
|
|
|
|
fate-filter-metadata-ebur128: SRC = $(SAMPLES)/filter/seq-3341-7_seq-3342-5-24bit.flac
|
2013-03-20 01:09:36 +03:00
|
|
|
fate-filter-metadata-ebur128: CMD = run $(FILTER_METADATA_COMMAND) "amovie='$(SRC)',ebur128=metadata=1"
|
2013-03-15 04:52:30 +03:00
|
|
|
|
2012-10-22 08:56:00 +03:00
|
|
|
FATE_SAMPLES_FFPROBE += $(FATE_METADATA_FILTER-yes)
|
2012-10-10 01:36:19 +03:00
|
|
|
|
2013-03-28 15:23:12 +03:00
|
|
|
fate-filter: $(FATE_FILTER-yes) $(FATE_FILTER_VSYNTH-yes) $(FATE_METADATA_FILTER-yes)
|