diff mbox

[FFmpeg-devel] fate: Add h264 test for frame num gaps

Message ID 20161209152111.16416-1-derek.buitenhuis@gmail.com
State Accepted
Commit b7e4ea0c80f4b3e060625fd97ffdd3b9689bfcd1
Headers show

Commit Message

Derek Buitenhuis Dec. 9, 2016, 3:21 p.m. UTC
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
---
Sample is here: https://trac.ffmpeg.org/attachment/ticket/5458/nondeterministic_cut.h264
---
 tests/fate/h264.mak               |  2 ++
 tests/ref/fate/h264-missing-frame | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)
 create mode 100644 tests/ref/fate/h264-missing-frame

Comments

Michael Niedermayer Dec. 10, 2016, 3:19 a.m. UTC | #1
On Fri, Dec 09, 2016 at 03:21:11PM +0000, Derek Buitenhuis wrote:
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
> ---
> Sample is here: https://trac.ffmpeg.org/attachment/ticket/5458/nondeterministic_cut.h264
> ---
>  tests/fate/h264.mak               |  2 ++
>  tests/ref/fate/h264-missing-frame | 35 +++++++++++++++++++++++++++++++++++
>  2 files changed, 37 insertions(+)
>  create mode 100644 tests/ref/fate/h264-missing-frame

file uploaded

thx

[...]
Michael Niedermayer Dec. 10, 2016, 3:53 a.m. UTC | #2
On Fri, Dec 09, 2016 at 03:21:11PM +0000, Derek Buitenhuis wrote:
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
> ---
> Sample is here: https://trac.ffmpeg.org/attachment/ticket/5458/nondeterministic_cut.h264
> ---
>  tests/fate/h264.mak               |  2 ++
>  tests/ref/fate/h264-missing-frame | 35 +++++++++++++++++++++++++++++++++++
>  2 files changed, 37 insertions(+)
>  create mode 100644 tests/ref/fate/h264-missing-frame

tested on linux x86-32/64, arm-qemu, mips-qemu mingw32/64

[...]
diff mbox

Patch

diff --git a/tests/fate/h264.mak b/tests/fate/h264.mak
index 718a3a862a..d40681f9c9 100644
--- a/tests/fate/h264.mak
+++ b/tests/fate/h264.mak
@@ -194,6 +194,7 @@  FATE_H264  := $(FATE_H264:%=fate-h264-conformance-%)                    \
               fate-h264-intra-refresh-recovery                          \
               fate-h264-lossless                                        \
               fate-h264-3386                                            \
+              fate-h264-missing-frame                                   \
 
 FATE_H264-$(call DEMDEC, H264, H264) += $(FATE_H264)
 FATE_H264-$(call DEMDEC,  MOV, H264) += fate-h264-crop-to-container
@@ -432,6 +433,7 @@  fate-h264-lossless:                               CMD = framecrc -i $(TARGET_SAM
 fate-h264-mixed-nal-coding:                       CMD = framecrc -i $(TARGET_SAMPLES)/h264/mixed-nal-coding.mp4
 fate-h264-unescaped-extradata:                    CMD = framecrc -i $(TARGET_SAMPLES)/h264/unescaped_extradata.mp4 -an -frames 10
 fate-h264-3386:                                   CMD = framecrc -i $(TARGET_SAMPLES)/h264/bbc2.sample.h264
+fate-h264-missing-frame:                          CMD = framecrc -i $(TARGET_SAMPLES)/h264/nondeterministic_cut.h264
 
 fate-h264-reinit-%:                               CMD = framecrc -i $(TARGET_SAMPLES)/h264/$(@:fate-h264-%=%).h264 -vf format=yuv444p10le,scale=w=352:h=288
 
diff --git a/tests/ref/fate/h264-missing-frame b/tests/ref/fate/h264-missing-frame
new file mode 100644
index 0000000000..04d229913d
--- /dev/null
+++ b/tests/ref/fate/h264-missing-frame
@@ -0,0 +1,35 @@ 
+#tb 0: 1/30
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 1440x1080
+#sar 0: 1/1
+0,          0,          0,        1,  2332800, 0x009dacb8
+0,          1,          1,        1,  2332800, 0xb1e50764
+0,          2,          2,        1,  2332800, 0xe29481e0
+0,          3,          3,        1,  2332800, 0x0b1b4de4
+0,          4,          4,        1,  2332800, 0x726a644c
+0,          5,          5,        1,  2332800, 0x7a09c4a5
+0,          6,          6,        1,  2332800, 0x2e9059ea
+0,          7,          7,        1,  2332800, 0x52071fdc
+0,          8,          8,        1,  2332800, 0x4fa00417
+0,          9,          9,        1,  2332800, 0x6037fb4d
+0,         10,         10,        1,  2332800, 0x887ffae2
+0,         11,         11,        1,  2332800, 0x887ffae2
+0,         12,         12,        1,  2332800, 0x887ffae2
+0,         13,         13,        1,  2332800, 0x887ffae2
+0,         14,         14,        1,  2332800, 0x887ffae2
+0,         15,         15,        1,  2332800, 0x887ffae2
+0,         16,         16,        1,  2332800, 0x887ffae2
+0,         17,         17,        1,  2332800, 0x887ffae2
+0,         18,         18,        1,  2332800, 0x887ffae2
+0,         19,         19,        1,  2332800, 0x887ffae2
+0,         20,         20,        1,  2332800, 0x887ffae2
+0,         21,         21,        1,  2332800, 0x887ffae2
+0,         22,         22,        1,  2332800, 0x887ffae2
+0,         23,         23,        1,  2332800, 0x887ffae2
+0,         24,         24,        1,  2332800, 0x887ffae2
+0,         25,         25,        1,  2332800, 0x887ffae2
+0,         26,         26,        1,  2332800, 0x887ffae2
+0,         27,         27,        1,  2332800, 0x887ffae2
+0,         28,         28,        1,  2332800, 0x887ffae2
+0,         29,         29,        1,  2332800, 0x824bb91b