[FFmpeg-devel,v4,3/4] fate: Add tests for hevc_mp4annexb bsf

Submitted by Andriy Gelman on Sept. 18, 2019, 7:31 p.m.

Details

Message ID 20190918193144.5179-4-andriy.gelman@gmail.com
State New
Headers show

Commit Message

Andriy Gelman Sept. 18, 2019, 7:31 p.m.
From: Andriy Gelman <andriy.gelman@gmail.com>

Test hevc-mp4annexb-pps:
Test contains 63 PPS that are signalled in extradata.
Different PPS are referenced by the VCL nal units during the mp4 to
annexb conversion.

Test hevc-mp4annexb-sps:
Access units contain PPS that reference different cached SPS nal
units.
---
 tests/fate/hevc.mak | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Patch hide | download patch | download mbox

diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak
index b11e209be0..1a936d0e52 100644
--- a/tests/fate/hevc.mak
+++ b/tests/fate/hevc.mak
@@ -240,6 +240,28 @@  fate-hevc-bsf-mp4toannexb: CMD = md5 -y -i $(TARGET_PATH)/tests/data/hevc-mp4.mo
 fate-hevc-bsf-mp4toannexb: CMP = oneline
 fate-hevc-bsf-mp4toannexb: REF = 3c9d998a3aa2b9e0fb1c1f434952bf8b
 
+tests/data/hevc-pps-mp4.mov: TAG = GEN
+tests/data/hevc-pps-mp4.mov: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
+	$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
+	-i $(TARGET_SAMPLES)/hevc-conformance/PPS_A_qualcomm_7.bit -c copy -flags +bitexact $(TARGET_PATH)/$@ -y 2>/dev/null
+
+FATE_HEVC-$(call ALLYES, HEVC_DEMUXER MOV_DEMUXER HEVC_MP4TOANNEXB_BSF MOV_MUXER HEVC_MUXER) += fate-hevc-bsf-mp4toannexb-pps
+fate-hevc-bsf-mp4toannexb-pps: tests/data/hevc-pps-mp4.mov
+fate-hevc-bsf-mp4toannexb-pps: CMD = md5 -y -i $(TARGET_PATH)/tests/data/hevc-pps-mp4.mov -c:v copy -fflags +bitexact -f hevc
+fate-hevc-bsf-mp4toannexb-pps: CMP = oneline
+fate-hevc-bsf-mp4toannexb-pps: REF = 28ad5b4fdcb8c35ba2b1b740c761bae3
+
+tests/data/hevc-sps-mp4.mov: TAG = GEN
+tests/data/hevc-sps-mp4.mov: ffmpeg$(PROGSSUF)$(EXESUF) | tests/data
+	$(M)$(TARGET_EXEC) $(TARGET_PATH)/$< \
+	-i $(TARGET_SAMPLES)/hevc-conformance/SLIST_B_Sony_8.bit -c copy -flags +bitexact $(TARGET_PATH)/$@ -y 2>/dev/null
+
+FATE_HEVC-$(call ALLYES, HEVC_DEMUXER MOV_DEMUXER HEVC_MP4TOANNEXB_BSF MOV_MUXER HEVC_MUXER) += fate-hevc-bsf-mp4toannexb-sps
+fate-hevc-bsf-mp4toannexb-sps: tests/data/hevc-sps-mp4.mov
+fate-hevc-bsf-mp4toannexb-sps: CMD = md5 -y -i $(TARGET_PATH)/tests/data/hevc-sps-mp4.mov -c:v copy -fflags +bitexact -f hevc
+fate-hevc-bsf-mp4toannexb-sps: CMP = oneline
+fate-hevc-bsf-mp4toannexb-sps: REF = 762147b37b393620eb30af7809f34bb2
+
 fate-hevc-skiploopfilter: CMD = framemd5 -skip_loop_filter nokey -i $(TARGET_SAMPLES)/hevc-conformance/SAO_D_Samsung_5.bit -sws_flags bitexact
 FATE_HEVC += fate-hevc-skiploopfilter