[FFmpeg-devel] [PATCH 2/2] fate/subtitles: Add PGS remux test
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Sat Sep 10 23:00:03 EEST 2022
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at 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 --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
--
2.34.1
More information about the ffmpeg-devel
mailing list