Skip to content

Commit 192c1a7

Browse files
committed
Add S_TEXT/USF
As found in https://haali.net/mkv/codecs.pdf and VLC
1 parent 387d813 commit 192c1a7

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

codec_specs.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,21 @@ Codec Name: Advanced Subtitles Format
869869
Description: The [Script Info] and [V4 Styles] sections are stored in the codecprivate. Each event is stored in its own `Block`.
870870
For more information see (#ssa-ass-subtitles) on SSA/ASS.
871871

872+
### S_TEXT/USF
873+
874+
Codec ID: S_TEXT/USF
875+
876+
Codec Name: Universal Subtitle Format
877+
878+
Description: An XML based subtitle format.
879+
Each `BlockGroup` contains XML data from a "subtitle" XML element as defined in section 3.4 of [@!USF],
880+
without the "subtitle" element itself and with the start, stop duration mapped to the `BlockGroup` timestamp and `BlockDuration` element.
881+
The "image" XML elements are turned into Matroska attachements and replaced in the stream with their attachment filename.
882+
883+
Initialization: The `CodecPrivate` element **MAY** be present.
884+
If present it **MAY** contains "metadata", "styles" and "effects" XML elements usable in the whole stream inside a parent "USFSubtitles" XML parent element,
885+
similar to the "USFSubtitles" element of a standalone USF file but without the "subtitles" XML element.
886+
872887
### S_TEXT/WEBVTT
873888

874889
Codec ID: S_TEXT/WEBVTT

rfc_backmatter_codec.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,14 @@
130130
<date year="2022" month="October" day="6"/>
131131
</front>
132132
</reference>
133+
134+
<reference anchor="USF" target="https://subtitld.org/en/development/usf">
135+
<front>
136+
<title>Universal Subtitle Format</title>
137+
<author fullname='Christophe PARIS'/>
138+
<author fullname='Ludovic Vialle'><organization>CoreCodec</organization></author>
139+
<author fullname='Uffe Hammer'/>
140+
<date year="2010" month="November" day="28"/>
141+
</front>
142+
</reference>
143+

0 commit comments

Comments
 (0)