diff options
author | James Almer <jamrial@gmail.com> | 2019-03-14 14:47:57 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-03-14 14:59:45 -0300 |
commit | ac4b5d86222006fa71ffe5922e1a34f1422507d8 (patch) | |
tree | cd09cadf2ee0eb1d5810cc4337fdb4d15ccb3ec4 /tests/fate | |
parent | a200bf8094bfaa0a0e4cf2fa270a18167a833d75 (diff) | |
parent | f8df5e2f31a5ba7b30a0e1caaaf5a03c753b3f9b (diff) | |
download | ffmpeg-streaming-ac4b5d86222006fa71ffe5922e1a34f1422507d8.zip ffmpeg-streaming-ac4b5d86222006fa71ffe5922e1a34f1422507d8.tar.gz |
Merge commit 'f8df5e2f31a5ba7b30a0e1caaaf5a03c753b3f9b'
* commit 'f8df5e2f31a5ba7b30a0e1caaaf5a03c753b3f9b':
tests: Add a convenience function for video-only lavf tests
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/fate')
-rw-r--r-- | tests/fate/ffmpeg.mak | 4 | ||||
-rw-r--r-- | tests/fate/lavf-video.mak | 29 | ||||
-rw-r--r-- | tests/fate/seek.mak | 4 | ||||
-rw-r--r-- | tests/fate/segment.mak (renamed from tests/fate/avformat.mak) | 14 |
4 files changed, 35 insertions, 16 deletions
diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak index 0975af2..ac68cde 100644 --- a/tests/fate/ffmpeg.mak +++ b/tests/fate/ffmpeg.mak @@ -93,6 +93,10 @@ fate-copy-trac2211-avi: $(TARGET_SAMPLES)/h264/bbc2.sample.h264 fate-copy-trac2211-avi: CMD = transcode "h264 -r 14" $(TARGET_SAMPLES)/h264/bbc2.sample.h264\ avi "-c:a copy -c:v copy" +FATE_STREAMCOPY-$(call ALLYES, APNG_DEMUXER APNG_MUXER) += fate-copy-apng +fate-copy-apng: fate-lavf-apng +fate-copy-apng: CMD = transcode apng "$(TARGET_PATH)/tests/data/lavf/lavf.apng" apng "-c:v copy" + FATE_STREAMCOPY-$(call DEMMUX, OGG, OGG) += fate-limited_input_seek fate-limited_input_seek-copyts fate-limited_input_seek: $(TARGET_SAMPLES)/vorbis/moog_small.ogg fate-limited_input_seek: CMD = md5 -ss 1.5 -t 1.3 -i $(TARGET_SAMPLES)/vorbis/moog_small.ogg -c:a copy -fflags +bitexact -f ogg diff --git a/tests/fate/lavf-video.mak b/tests/fate/lavf-video.mak new file mode 100644 index 0000000..7a70ac9 --- /dev/null +++ b/tests/fate/lavf-video.mak @@ -0,0 +1,29 @@ +FATE_LAVF_VIDEO-$(call ENCDEC, APNG, APNG) += apng +FATE_LAVF_VIDEO-$(call ENCDEC, APNG, APNG) += apng.png +FATE_LAVF_VIDEO-$(call ENCDEC, FITS, FITS) += gray.fits +FATE_LAVF_VIDEO-$(call ENCDEC, FITS, FITS) += gray16be.fits +FATE_LAVF_VIDEO-$(call ENCDEC, FITS, FITS) += gbrp.fits +FATE_LAVF_VIDEO-$(call ENCDEC, FITS, FITS) += gbrap.fits +FATE_LAVF_VIDEO-$(call ENCDEC, FITS, FITS) += gbrp16be.fits +FATE_LAVF_VIDEO-$(call ENCDEC, FITS, FITS) += gbrap16be.fits +FATE_LAVF_VIDEO-$(call ENCDEC, GIF, FITS) += gif +FATE_LAVF_VIDEO-$(CONFIG_YUV4MPEGPIPE_MUXER) += y4m + +FATE_LAVF_VIDEO = $(FATE_LAVF_VIDEO-yes:%=fate-lavf-%) + +$(FATE_LAVF_VIDEO): CMD = lavf_video +$(FATE_LAVF_VIDEO): REF = $(SRC_PATH)/tests/ref/lavf/$(@:fate-lavf-%=%) +$(FATE_LAVF_VIDEO): $(VREF) + +fate-lavf-apng: CMD = lavf_video "-pix_fmt rgb24" +fate-lavf-apng.png: CMD = lavf_video "-pix_fmt rgb24" "-frames:v 1 -f apng" +fate-lavf-gray.fits: CMD = lavf_video "-pix_fmt gray" +fate-lavf-gray16be.fits: CMD = lavf_video "-pix_fmt gray16be" +fate-lavf-gbrp.fits: CMD = lavf_video "-pix_fmt gbrp" +fate-lavf-gbrap.fits: CMD = lavf_video "-pix_fmt gbrap" +fate-lavf-gbrp16be.fits: CMD = lavf_video "-pix_fmt gbrp16be" +fate-lavf-gbrap16be.fits: CMD = lavf_video "-pix_fmt gbrap16be" +fate-lavf-gif: CMD = lavf_video "-pix_fmt rgb24" + +FATE_AVCONV += $(FATE_LAVF_VIDEO) +fate-lavf-video fate-lavf: $(FATE_LAVF_VIDEO) diff --git a/tests/fate/seek.mak b/tests/fate/seek.mak index d466498..a15c9e9 100644 --- a/tests/fate/seek.mak +++ b/tests/fate/seek.mak @@ -200,7 +200,7 @@ FATE_SEEK_LAVF-$(call ENCDEC2, MPEG2VIDEO, MP2, MPEGTS) += ts FATE_SEEK_LAVF-$(call ENCDEC, PCM_U8, VOC) += voc FATE_SEEK_LAVF-$(call ENCDEC, PCM_S16LE, WAV) += wav FATE_SEEK_LAVF-$(call ENCDEC, MP2, WTV) += wtv -FATE_SEEK_LAVF-$(CONFIG_YUV4MPEGPIPE_MUXER) += yuv4mpeg +FATE_SEEK_LAVF-$(CONFIG_YUV4MPEGPIPE_MUXER) += y4m fate-seek-lavf-aiff: SRC = lavf/lavf.aiff fate-seek-lavf-al: SRC = lavf/lavf.al @@ -241,7 +241,7 @@ fate-seek-lavf-ts: SRC = lavf/lavf.ts fate-seek-lavf-voc: SRC = lavf/lavf.voc fate-seek-lavf-wav: SRC = lavf/lavf.wav fate-seek-lavf-wtv: SRC = lavf/lavf.wtv -fate-seek-lavf-yuv4mpeg: SRC = lavf/lavf.y4m +fate-seek-lavf-y4m: SRC = lavf/lavf.y4m FATE_SEEK += $(FATE_SEEK_LAVF-yes:%=fate-seek-lavf-%) diff --git a/tests/fate/avformat.mak b/tests/fate/segment.mak index 5dfd0fa..ddefbed 100644 --- a/tests/fate/avformat.mak +++ b/tests/fate/segment.mak @@ -1,17 +1,3 @@ -FATE_LAVF-$(call ENCDEC, APNG, APNG) += apng -FATE_LAVF-$(call ENCDEC, FITS, FITS) += fits -FATE_LAVF-$(call ENCDEC, GIF, IMAGE2) += gif -FATE_LAVF-$(CONFIG_YUV4MPEGPIPE_MUXER) += yuv4mpeg - -FATE_LAVF += $(FATE_LAVF-yes:%=fate-lavf-%) - -$(FATE_LAVF): $(AREF) $(VREF) -$(FATE_LAVF): CMD = lavftest -$(FATE_LAVF): CMP = - -FATE_AVCONV += $(FATE_LAVF) -fate-lavf: $(FATE_LAVF) - tests/data/mp4-to-ts.m3u8: TAG = GEN tests/data/mp4-to-ts.m3u8: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data $(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \ |