summaryrefslogtreecommitdiff
path: root/tests/ref
diff options
context:
space:
mode:
authorJan Ekström <jan.ekstrom@24i.com>2021-02-15 16:21:13 +0200
committerJan Ekström <jeebjp@gmail.com>2021-08-25 09:26:46 +0300
commite41bd075dd56f20f4eca61790bda5bf88c433bcb (patch)
treecdc0bc1a7fe2c863de577ff583133bedc5a42409 /tests/ref
parent460beb948ceddeb86bd2b3b17335176adcaa7223 (diff)
avformat/movenc: add support for TTML muxing
Includes basic support for both the ISMV ('dfxp') and MP4 ('stpp') methods. This initial version also foregoes fragmentation support in case the built-in sample squashing is to be utilized, as this eases the initial review. Additionally, add basic tests for both muxing modes in MP4. Signed-off-by: Jan Ekström <jan.ekstrom@24i.com>
Diffstat (limited to 'tests/ref')
-rw-r--r--tests/ref/fate/sub-ttml-mp4-dfxp44
-rw-r--r--tests/ref/fate/sub-ttml-mp4-stpp44
2 files changed, 88 insertions, 0 deletions
diff --git a/tests/ref/fate/sub-ttml-mp4-dfxp b/tests/ref/fate/sub-ttml-mp4-dfxp
new file mode 100644
index 0000000000..0172e5b7e6
--- /dev/null
+++ b/tests/ref/fate/sub-ttml-mp4-dfxp
@@ -0,0 +1,44 @@
+2e7e01c821c111466e7a2844826b7f6d *tests/data/fate/sub-ttml-mp4-dfxp.mp4
+8519 tests/data/fate/sub-ttml-mp4-dfxp.mp4
+#tb 0: 1/1000
+#media_type 0: data
+#codec_id 0: none
+0, 0, 0, 68500, 7866, 0x456c36b7
+{
+ "packets": [
+ {
+ "codec_type": "data",
+ "stream_index": 0,
+ "pts": 0,
+ "pts_time": "0.000000",
+ "dts": 0,
+ "dts_time": "0.000000",
+ "duration": 68500,
+ "duration_time": "68.500000",
+ "size": "7866",
+ "pos": "44",
+ "flags": "K_"
+ }
+ ],
+ "programs": [
+
+ ],
+ "streams": [
+ {
+ "index": 0,
+ "codec_type": "data",
+ "codec_tag_string": "dfxp",
+ "codec_tag": "0x70786664",
+ "time_base": "1/1000",
+ "start_time": "0.000000",
+ "duration_ts": 68500,
+ "duration": "68.500000",
+ "nb_frames": "1",
+ "nb_read_packets": "1",
+ "tags": {
+ "language": "und",
+ "handler_name": "SubtitleHandler"
+ }
+ }
+ ]
+}
diff --git a/tests/ref/fate/sub-ttml-mp4-stpp b/tests/ref/fate/sub-ttml-mp4-stpp
new file mode 100644
index 0000000000..a5165b568d
--- /dev/null
+++ b/tests/ref/fate/sub-ttml-mp4-stpp
@@ -0,0 +1,44 @@
+cbd2c7ff864a663b0d893deac5a0caec *tests/data/fate/sub-ttml-mp4-stpp.mp4
+8547 tests/data/fate/sub-ttml-mp4-stpp.mp4
+#tb 0: 1/1000
+#media_type 0: data
+#codec_id 0: none
+0, 0, 0, 68500, 7866, 0x456c36b7
+{
+ "packets": [
+ {
+ "codec_type": "data",
+ "stream_index": 0,
+ "pts": 0,
+ "pts_time": "0.000000",
+ "dts": 0,
+ "dts_time": "0.000000",
+ "duration": 68500,
+ "duration_time": "68.500000",
+ "size": "7866",
+ "pos": "44",
+ "flags": "K_"
+ }
+ ],
+ "programs": [
+
+ ],
+ "streams": [
+ {
+ "index": 0,
+ "codec_type": "data",
+ "codec_tag_string": "stpp",
+ "codec_tag": "0x70707473",
+ "time_base": "1/1000",
+ "start_time": "0.000000",
+ "duration_ts": 68500,
+ "duration": "68.500000",
+ "nb_frames": "1",
+ "nb_read_packets": "1",
+ "tags": {
+ "language": "und",
+ "handler_name": "SubtitleHandler"
+ }
+ }
+ ]
+}