summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-06-30 12:15:54 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-06-30 13:49:43 +0200
commitc9c4835f5164b86510591d4ba604bfb448c7a356 (patch)
treee1e670ee31447ebb0df8b310f50dbe6c8e901aeb
parent20a8dca57fc579dbb0641ccd6dec2686d0ffdf1b (diff)
fate: add a test for the -force_key_frames option.
It broke twice in the last three months due to other changes.
-rw-r--r--tests/Makefile1
-rw-r--r--tests/fate/options.mak9
-rw-r--r--tests/ref/fate/options-force_key_frames4
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 266901c584..eda938a3a5 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -65,6 +65,7 @@ include $(SRC_PATH)/tests/fate/lossless-video.mak
include $(SRC_PATH)/tests/fate/microsoft.mak
include $(SRC_PATH)/tests/fate/mp3.mak
include $(SRC_PATH)/tests/fate/mpc.mak
+include $(SRC_PATH)/tests/fate/options.mak
include $(SRC_PATH)/tests/fate/pcm.mak
include $(SRC_PATH)/tests/fate/probe.mak
include $(SRC_PATH)/tests/fate/prores.mak
diff --git a/tests/fate/options.mak b/tests/fate/options.mak
new file mode 100644
index 0000000000..940d454ddf
--- /dev/null
+++ b/tests/fate/options.mak
@@ -0,0 +1,9 @@
+FATE_OPTIONS += fate-options-force_key_frames
+fate-options-force_key_frames: tests/data/vsynth2.yuv
+fate-options-force_key_frames: CMD = enc_dec \
+ "rawvideo -s 352x288 -pix_fmt yuv420p" tests/data/vsynth2.yuv \
+ avi "-c mpeg4 -g 240 -qscale 10 -force_key_frames 0.5,0:00:01.5" \
+ framecrc "" "" "-skip_frame nokey"
+
+FATE_FFMPEG += $(FATE_OPTIONS)
+fate-options: $(FATE_OPTIONS)
diff --git a/tests/ref/fate/options-force_key_frames b/tests/ref/fate/options-force_key_frames
new file mode 100644
index 0000000000..205296c5cf
--- /dev/null
+++ b/tests/ref/fate/options-force_key_frames
@@ -0,0 +1,4 @@
+654970e7a09ff4869596c2a47e698007 *tests/data/fate/options-force_key_frames.avi
+113320 tests/data/fate/options-force_key_frames.avi
+8f68ad2e602ecd87a3e0c097ba99d773 *tests/data/fate/options-force_key_frames.out.framecrc
+stddev:34363.01 PSNR: 5.61 MAXDIFF:56305 bytes: 7603200/ 186