[FFmpeg-devel] [PATCH] fate: add fate-sub-dvb test

Clément Bœsch u at pkh.me
Tue Aug 11 00:16:13 EEST 2020


On Mon, Aug 10, 2020 at 08:36:13PM +0200, Andreas Rheinhardt wrote:
> Clément Bœsch:
> > Source: Videolan sample database (samples/sub/dvbsub)
> > ---
> > Can someone upload https://streams.videolan.org/samples/sub/dvbsub/dvbsubtest.ts to fate-samples/sub?
> 
> A 20MB sample? Can't one use a smaller sample or filter out the
> interesting PIDs from this sample? (If I remux only the subtitle stream
> to Matroska with mkvmerge, the sample is 33 kB.)

Yup, you're correct. New patch attached.

For the sample:
  curl 'https://0x0.st/i35H.mks' -o fate-samples/sub/dvbsubtest.mks

sha256sum:
  3fccc784eb61e701f1d6789253f637a32374ce6c81539d44a4e74075246ff02b  fate-samples/sub/dvbsubtest.mks

Regards,

-- 
Clément B.
-------------- next part --------------
>From 2483b68e2af47bee8e493cf4d4cb7609f18c8124 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= <u at pkh.me>
Date: Mon, 10 Aug 2020 15:59:26 +0200
Subject: [PATCH] fate: add fate-sub-dvb test

The dvbsubtest.mks sample is remuxed from Videolan sample database
(samples/sub/dvbsub/dvbsubtest.ts) and remuxed with mkvmerge to obtain a
smaller size. FFmpeg produces a 53K file, while mkvmerge produces a 33K
file, so the latter was preferred. The size change wasn't investigated.

Note: the PTS and DTS changed with mkvmerge, while they remained
untouched while remuxing with FFmpeg. The CRC on the other hand are
identical.
---
 tests/fate/subtitles.mak |  3 ++
 tests/ref/fate/sub-dvb   | 75 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)
 create mode 100644 tests/ref/fate/sub-dvb

diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak
index 0042902161..b48de328c6 100644
--- a/tests/fate/subtitles.mak
+++ b/tests/fate/subtitles.mak
@@ -103,6 +103,9 @@ fate-sub-charenc: CMD = fmtstdout ass -sub_charenc cp1251 -i $(TARGET_SAMPLES)/s
 FATE_SUBTITLES-$(call DEMDEC, SCC, CCAPTION) += fate-sub-scc
 fate-sub-scc: CMD = fmtstdout ass -ss 57 -i $(TARGET_SAMPLES)/sub/witch.scc
 
+FATE_SUBTITLES-$(call ALLYES, MATROSKA_DEMUXER DVBSUB_DECODER DVBSUB_ENCODER) += fate-sub-dvb
+fate-sub-dvb: CMD = framecrc -i $(TARGET_SAMPLES)/sub/dvbsubtest.mks -map s:0 -c dvbsub
+
 FATE_SUBTITLES-$(call ENCMUX, ASS, ASS) += $(FATE_SUBTITLES_ASS-yes)
 FATE_SUBTITLES += $(FATE_SUBTITLES-yes)
 
diff --git a/tests/ref/fate/sub-dvb b/tests/ref/fate/sub-dvb
new file mode 100644
index 0000000000..8f48e35639
--- /dev/null
+++ b/tests/ref/fate/sub-dvb
@@ -0,0 +1,75 @@
+#tb 0: 1/1000000
+#media_type 0: subtitle
+#codec_id 0: dvb_subtitle
+0,   18398000,   18398000,   159000,     1168, 0xd0f89d82
+0,   18557000,   18557000,   159000,       14, 0x064900eb
+0,   18558000,   18558000,   239000,     1544, 0xe60f1751
+0,   18797000,   18797000,   239000,       14, 0x0729010b
+0,   18798000,   18798000,   339000,     1658, 0xbe343093
+0,   19137000,   19137000,   339000,       14, 0x0809012b
+0,   19138000,   19138000,   599000,     2343, 0xc68f07ef
+0,   19737000,   19737000,   599000,       14, 0x08e9014b
+0,   19738000,   19738000,   459000,     2568, 0x0ee657b1
+0,   20197000,   20197000,   459000,       14, 0x09c9016b
+0,   20198000,   20198000,   359000,     3422, 0xba5b63ce
+0,   20557000,   20557000,   359000,       14, 0x0aa9018b
+0,   20558000,   20558000,   219000,     5078, 0x95b19902
+0,   20777000,   20777000,   219000,       14, 0x0b8901ab
+0,   20778000,   20778000,   959000,     5808, 0xc9717b89
+0,   21737000,   21737000,   959000,       14, 0x0c6901cb
+0,   21738000,   21738000,   219000,     6015, 0x0becbfac
+0,   21957000,   21957000,   219000,       14, 0x064900eb
+0,   21958000,   21958000,   259000,     6519, 0xfcd24d26
+0,   22217000,   22217000,   259000,       14, 0x0729010b
+0,   22218000,   22218000,    99000,     7061, 0xf0320408
+0,   22317000,   22317000,    99000,       14, 0x0809012b
+0,   22318000,   22318000,   219000,     4773, 0x66c93074
+0,   22537000,   22537000,   219000,       14, 0x08e9014b
+0,   22538000,   22538000,   219000,     5546, 0x06052c81
+0,   22757000,   22757000,   219000,       14, 0x09c9016b
+0,   22758000,   22758000,   239000,     5754, 0x904f7325
+0,   22997000,   22997000,   239000,       14, 0x0aa9018b
+0,   22998000,   22998000,   139000,     6099, 0xe30cde07
+0,   23137000,   23137000,   139000,       14, 0x0b8901ab
+0,   23138000,   23138000,   799000,     6839, 0x770fcb6c
+0,   23937000,   23937000,   799000,       14, 0x0c6901cb
+0,   23938000,   23938000,   239000,     4744, 0xa91e1b41
+0,   24177000,   24177000,   239000,       14, 0x064900eb
+0,   24178000,   24178000,   339000,     5824, 0xcf6d782b
+0,   24517000,   24517000,   339000,       14, 0x0729010b
+0,   24518000,   24518000,  1439000,     6212, 0xabf8f7cf
+0,   25957000,   25957000,  1439000,       14, 0x0809012b
+0,   25958000,   25958000,  1319000,     7082, 0xd7ca10f2
+0,   27277000,   27277000,  1319000,       14, 0x08e9014b
+0,   27278000,   27278000,   219000,     5345, 0x12b2cae0
+0,   27497000,   27497000,   219000,       14, 0x09c9016b
+0,   27498000,   27498000,   219000,     5765, 0xc7d46192
+0,   27717000,   27717000,   219000,       14, 0x0aa9018b
+0,   27718000,   27718000,   599000,     6557, 0xcb995d30
+0,   28317000,   28317000,   599000,       14, 0x0b8901ab
+0,   28318000,   28318000,   219000,     7091, 0xe6ea0559
+0,   28537000,   28537000,   219000,       14, 0x0c6901cb
+0,   28538000,   28538000,   239000,     7305, 0xb66c404e
+0,   28777000,   28777000,   239000,       14, 0x064900eb
+0,   28778000,   28778000,   359000,     7590, 0x0cc2a481
+0,   29137000,   29137000,   359000,       14, 0x0729010b
+0,   29138000,   29138000,   219000,     4629, 0xe18cfea8
+0,   29357000,   29357000,   219000,       14, 0x0809012b
+0,   29358000,   29358000,   719000,     4785, 0x82043fc0
+0,   30077000,   30077000,   719000,       14, 0x08e9014b
+0,   30078000,   30078000,   459000,     6061, 0xbde7d245
+0,   30537000,   30537000,   459000,       14, 0x09c9016b
+0,   30538000,   30538000,   239000,     6301, 0x92d01a51
+0,   30777000,   30777000,   239000,       14, 0x0aa9018b
+0,   30778000,   30778000,    99000,     6736, 0xbd25a134
+0,   30877000,   30877000,    99000,       14, 0x0b8901ab
+0,   30878000,   30878000,   219000,     7214, 0x7ef93c13
+0,   31097000,   31097000,   219000,       14, 0x0c6901cb
+0,   31098000,   31098000,   239000,     7366, 0x5bed7fcd
+0,   31337000,   31337000,   239000,       14, 0x064900eb
+0,   31338000,   31338000,   599000,     4564, 0x7f4c014b
+0,   31937000,   31937000,   599000,       14, 0x0729010b
+0,   31938000,   31938000,   219000,     4637, 0x682626b7
+0,   32157000,   32157000,   219000,       14, 0x0809012b
+0,   32158000,   32158000,  1679000,     5358, 0x29e30c48
+0,   33837000,   33837000,  1679000,       14, 0x08e9014b
-- 
2.28.0



More information about the ffmpeg-devel mailing list