summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-03-11 20:18:55 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-03-16 16:16:05 +0100
commit21bed3c981d17b1b5dcb1eb995075bb9ec850563 (patch)
treee27400fba24e136017eb9b4063d0ca7b3c72c33f
parentbbc8f3d20e09ab238e345a02ed983434d2efe633 (diff)
downloadffmpeg-streaming-21bed3c981d17b1b5dcb1eb995075bb9ec850563.zip
ffmpeg-streaming-21bed3c981d17b1b5dcb1eb995075bb9ec850563.tar.gz
fate: Add vf_framerate test.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--tests/fate/filter-video.mak4
-rw-r--r--tests/ref/fate/filter-framerate-down6
-rw-r--r--tests/ref/fate/filter-framerate-up15
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index c57c9c7..97c5e6c 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -78,6 +78,10 @@ fate-filter-lavd-scalenorm: tests/data/filtergraphs/scalenorm
fate-filter-lavd-scalenorm: CMD = framecrc -f lavfi -graph_file $(TARGET_PATH)/tests/data/filtergraphs/scalenorm -i dummy
+FATE_FILTER-$(call ALLYES FRAMERATE_FILTER TESTSRC2_FILTER) += fate-filter-framerate-up fate-filter-framerate-down
+fate-filter-framerate-up: CMD = framecrc -lavfi testsrc2=r=2:d=10,framerate=fps=10 -t 1
+fate-filter-framerate-down: CMD = framecrc -lavfi testsrc2=r=2:d=10,framerate=fps=1 -t 1
+
FATE_FILTER_VSYNTH-$(CONFIG_BOXBLUR_FILTER) += fate-filter-boxblur
fate-filter-boxblur: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf boxblur=2:1
diff --git a/tests/ref/fate/filter-framerate-down b/tests/ref/fate/filter-framerate-down
new file mode 100644
index 0000000..4eab7aa
--- /dev/null
+++ b/tests/ref/fate/filter-framerate-down
@@ -0,0 +1,6 @@
+#tb 0: 1/1
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
+0, 0, 0, 1, 115200, 0x3744b3ed
diff --git a/tests/ref/fate/filter-framerate-up b/tests/ref/fate/filter-framerate-up
new file mode 100644
index 0000000..b2af9cb
--- /dev/null
+++ b/tests/ref/fate/filter-framerate-up
@@ -0,0 +1,15 @@
+#tb 0: 1/10
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
+0, 0, 0, 1, 115200, 0x3744b3ed
+0, 1, 1, 1, 115200, 0xc44bdc65
+0, 2, 2, 1, 115200, 0xa17f0d74
+0, 3, 3, 1, 115200, 0xb0c83274
+0, 4, 4, 1, 115200, 0x232d6368
+0, 5, 5, 1, 115200, 0x6e318ba0
+0, 6, 6, 1, 115200, 0x247e846e
+0, 7, 7, 1, 115200, 0x89e27599
+0, 8, 8, 1, 115200, 0x31c5704e
+0, 9, 9, 1, 115200, 0x97e45fec
OpenPOWER on IntegriCloud