diff mbox series

[FFmpeg-devel,2/2] fate/subtitles: Add PGS remux test

Message ID GV1P250MB073763AFE90364177D4B0B678F429@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit f6448133e72e0e74ed5dec18e8a4134dfc79babe
Headers show
Series [FFmpeg-devel,1/2] fate/id3v2: Add test for reading and writing UTF-16 BOM tags | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 10, 2022, 8 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 tests/fate/subtitles.mak     |  5 +++++
 tests/ref/fate/sub-pgs-remux | 15 +++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 tests/ref/fate/sub-pgs-remux
diff mbox series

Patch

diff --git a/tests/fate/subtitles.mak b/tests/fate/subtitles.mak
index bc464edce6..e6684a814b 100644
--- a/tests/fate/subtitles.mak
+++ b/tests/fate/subtitles.mak
@@ -50,6 +50,11 @@  fate-sub-mpsub: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MPSub_capability_te
 FATE_SUBTITLES_ASS-$(call DEMDEC, MPSUB, TEXT) += fate-sub-mpsub-frames
 fate-sub-mpsub-frames: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/MPSub_capability_tester_frames.sub
 
+# FIXME?: The dts in the input file are not monotonous and so the
+# timestamps of the remuxed file have been fixed up.
+FATE_SUBTITLES-$(call REMUX, SUP) += fate-sub-pgs-remux
+fate-sub-pgs-remux: CMD = transcode sup $(TARGET_SAMPLES)/sub/pgs_sub.sup sup "-copyts -c:s copy" "-copyts -c:s copy"
+
 FATE_SUBTITLES_ASS-$(call DEMDEC, PJS, PJS) += fate-sub-pjs
 fate-sub-pjs: CMD = fmtstdout ass -i $(TARGET_SAMPLES)/sub/PJS_capability_tester.pjs
 
diff --git a/tests/ref/fate/sub-pgs-remux b/tests/ref/fate/sub-pgs-remux
new file mode 100644
index 0000000000..e965d93bec
--- /dev/null
+++ b/tests/ref/fate/sub-pgs-remux
@@ -0,0 +1,15 @@ 
+cf306b7bc30122effc6429e35364f640 *tests/data/fate/sub-pgs-remux.sup
+49382 tests/data/fate/sub-pgs-remux.sup
+#tb 0: 1/90000
+#media_type 0: subtitle
+#codec_id 0: hdmv_pgs_subtitle
+0,       6072,       6072,        0,       30, 0x32b303ec
+0,       6072,       6072,        0,       22, 0x27510416
+0,       6072,       6072,        0,      160, 0xe2024133
+0,       6072,       6072,        0,    22943, 0xc011fe0e
+0,       6072,       6072,        0,     2969, 0x35604c6f
+0,       6072,       6072,        0,        3, 0x01800080
+0,      35426,      36102,        0,       30, 0x2db303ac
+0,      35426,      35862,        0,       22, 0x27510416
+0,      35426,      35426,        0,      160, 0xe2024133
+0,      35426,      35862,        0,    22943, 0xc011fe0e