CINXE.COM

XSUB - MultimediaWiki

<!DOCTYPE html> <html class="client-nojs" lang="en" dir="ltr"> <head> <meta charset="UTF-8"/> <title>XSUB - MultimediaWiki</title> <script>document.documentElement.className="client-js";RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"4959b38455efbf95cc83e083","wgCSPNonce":false,"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"XSUB","wgTitle":"XSUB","wgCurRevisionId":10542,"wgRevisionId":10542,"wgArticleId":1666,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Subtitle Formats"],"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"XSUB","wgRelevantArticleId":1666,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgVector2022PreviewPages":[]};RLSTATE={"site.styles":"ready","user.styles":"ready", "user":"ready","user.options":"loading","mediawiki.action.styles":"ready","mediawiki.interface.helpers.styles":"ready","skins.vector.styles.legacy":"ready"};RLPAGEMODULES=["site","mediawiki.page.ready","skins.vector.legacy.js"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.implement("user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});});});</script> <link rel="stylesheet" href="/load.php?lang=en&amp;modules=mediawiki.action.styles%7Cmediawiki.interface.helpers.styles%7Cskins.vector.styles.legacy&amp;only=styles&amp;skin=vector"/> <script async="" src="/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector"></script> <meta name="generator" content="MediaWiki 1.39.5"/> <meta name="robots" content="noindex,nofollow"/> <meta name="format-detection" content="telephone=no"/> <meta name="viewport" content="width=1000"/> <link rel="icon" href="/favicon.ico"/> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="MultimediaWiki (en)"/> <link rel="EditURI" type="application/rsd+xml" href="https://wiki.multimedia.cx/api.php?action=rsd"/> <link rel="alternate" type="application/atom+xml" title="MultimediaWiki Atom feed" href="/index.php?title=Special:RecentChanges&amp;feed=atom"/> </head> <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-XSUB rootpage-XSUB skin-vector action-view skin-vector-legacy vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-language-alert-in-sidebar-disabled vector-feature-sticky-header-disabled vector-feature-sticky-header-edit-disabled vector-feature-table-of-contents-disabled vector-feature-visual-enhancement-next-disabled"><div id="mw-page-base" class="noprint"></div> <div id="mw-head-base" class="noprint"></div> <div id="content" class="mw-body" role="main"> <a id="top"></a> <div id="siteNotice"></div> <div class="mw-indicators"> </div> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">XSUB</span></h1> <div id="bodyContent" class="vector-body"> <div id="siteSub" class="noprint">From MultimediaWiki</div> <div id="contentSub"><div class="mw-message-box-warning mw-revision mw-message-box"><div id="mw-revision-info">Revision as of 02:52, 16 November 2008 by <a href="/index.php/User:Compn" class="mw-userlink" title="User:Compn"><bdi>Compn</bdi></a> <span class="mw-usertoollinks">(<a href="/index.php/User_talk:Compn" class="mw-usertoollinks-talk" title="User talk:Compn">talk</a> | <a href="/index.php/Special:Contributions/Compn" class="mw-usertoollinks-contribs" title="Special:Contributions/Compn">contribs</a>)</span> <span class="comment">(fix sample, add tools)</span></div><div id="mw-revision-nav">(<a href="/index.php?title=XSUB&amp;diff=prev&amp;oldid=10542" title="XSUB">diff</a>) <a href="/index.php?title=XSUB&amp;direction=prev&amp;oldid=10542" title="XSUB">← Older revision</a> | Latest revision (diff) | Newer revision → (diff)</div></div></div> <div id="contentSub2"></div> <div id="jump-to-nav"></div> <a class="mw-jump-link" href="#mw-head">Jump to navigation</a> <a class="mw-jump-link" href="#searchInput">Jump to search</a> <div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-parser-output"><ul><li>Extensions: .avi .divx</li> <li>Website: <a rel="nofollow" class="external free" href="http://www.divx.com">http://www.divx.com</a></li> <li>Specs: unavailable</li> <li>Sample: <a rel="nofollow" class="external free" href="http://samples.mplayerhq.hu/sub/small.divx">http://samples.mplayerhq.hu/sub/small.divx</a></li> <li><a rel="nofollow" class="external text" href="http://drdivx.svn.sourceforge.net/viewvc/drdivx/DrDivX/trunk/drffmpeg/libavcodec/xsub.c?view=markup">LGPL DivX subtitle encoding for ffmpeg source</a></li> <li>XSub creating programs (windows): <a rel="nofollow" class="external free" href="http://labs.divx.com/Tools">http://labs.divx.com/Tools</a></li></ul> <p><b>XSUB</b> is the subtitle format used in DivX 6 files. Each packet consists of a header and after that RLE-encoded data. The header starts with timing information in the format (27 bytes, no terminating zero): </p> <pre>[HH:MM:ss.mmm-HH:MM:ss.mmm] </pre> <p>Then, encoded as 16 bit little-endian except for the color entries, follow: </p> <pre>width of encoded image height of encoded image x coordinate of top left subtitle corner y coordinate of top left subtitle corner x coordinate of bottom right subtitle corner y coordinate of bottom right subtitle corner length of the RLE data four color entries (red, green, blue, eight bits per component, unsigned) </pre> <p>Width, height and coordinates probably all must be a multiple of 2. It is unclear what the behavior is if the coordinates are not consistent with width and height, the encoder does not produce such files. </p><p>After this follows the RLE-encoded data. </p><p>This is processed 4 bits at a time, big-endian bitstream order (lowest byte address first, within that byte highest bits first). </p><p>Encoding is n bits run-length followed by 2 bits color (index into four color palette in header), where n can be 2, 6, 10, or 14 (yes, it is a very weird and probably suboptimal encoding). </p><p>n can be determined via the number of leading zeros: </p> <pre>leading zeros | n | possible length values 0 - 1 2 1 - 3 2 - 3 6 4 - 15 4 - 5 10 16 - 63 6 - 7 14 64 - 255 &gt; 7 14 must be == 0 and means the remainder of the row has this color </pre> <p>After each row the bitstream is byte-aligned. </p> <!-- NewPP limit report Cached time: 20241124161902 Cache expiry: 86400 Reduced expiry: false Complications: [] CPU time usage: 0.003 seconds Real time usage: 0.004 seconds Preprocessor visited node count: 1/1000000 Post‐expand include size: 0/2097152 bytes Template argument size: 0/2097152 bytes Highest expansion depth: 1/100 Expensive parser function count: 0/100 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 0/5000000 bytes --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 0.000 1 -total --> <!-- Saved in parser cache with key multimediawiki_1_39_5-multimediawiki_:pcache:idhash:1666-0!canonical and timestamp 20241124161902 and revision id 10542. --> </div> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://wiki.multimedia.cx/index.php?title=XSUB&amp;oldid=10542">https://wiki.multimedia.cx/index.php?title=XSUB&amp;oldid=10542</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/index.php/Special:Categories" title="Special:Categories">Category</a>: <ul><li><a href="/index.php/Category:Subtitle_Formats" title="Category:Subtitle Formats">Subtitle Formats</a></li></ul></div></div> </div> </div> <div id="mw-navigation"> <h2>Navigation menu</h2> <div id="mw-head"> <nav id="p-personal" class="vector-menu mw-portlet mw-portlet-personal vector-user-menu-legacy" aria-labelledby="p-personal-label" role="navigation" > <h3 id="p-personal-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Personal tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="pt-login" class="mw-list-item"><a href="/index.php?title=Special:UserLogin&amp;returnto=XSUB&amp;returntoquery=oldid%3D10542" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span>Log in</span></a></li></ul> </div> </nav> <div id="left-navigation"> <nav id="p-namespaces" class="vector-menu mw-portlet mw-portlet-namespaces vector-menu-tabs vector-menu-tabs-legacy" aria-labelledby="p-namespaces-label" role="navigation" > <h3 id="p-namespaces-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Namespaces</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="ca-nstab-main" class="selected mw-list-item"><a href="/index.php/XSUB" title="View the content page [c]" accesskey="c"><span>Page</span></a></li><li id="ca-talk" class="new mw-list-item"><a href="/index.php?title=Talk:XSUB&amp;action=edit&amp;redlink=1" rel="discussion" title="Discussion about the content page (page does not exist) [t]" accesskey="t"><span>Discussion</span></a></li></ul> </div> </nav> <nav id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet vector-menu-dropdown" aria-labelledby="p-variants-label" role="navigation" > <input type="checkbox" id="p-variants-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-variants" class="vector-menu-checkbox" aria-labelledby="p-variants-label" /> <label id="p-variants-label" aria-label="Change language variant" class="vector-menu-heading " > <span class="vector-menu-heading-label">English</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"></ul> </div> </nav> </div> <div id="right-navigation"> <nav id="p-views" class="vector-menu mw-portlet mw-portlet-views vector-menu-tabs vector-menu-tabs-legacy" aria-labelledby="p-views-label" role="navigation" > <h3 id="p-views-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Views</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="ca-view" class="selected mw-list-item"><a href="/index.php/XSUB"><span>Read</span></a></li><li id="ca-viewsource" class="mw-list-item"><a href="/index.php?title=XSUB&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e"><span>View source</span></a></li><li id="ca-history" class="mw-list-item"><a href="/index.php?title=XSUB&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li></ul> </div> </nav> <nav id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-menu-dropdown" aria-labelledby="p-cactions-label" role="navigation" title="More options" > <input type="checkbox" id="p-cactions-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-cactions" class="vector-menu-checkbox" aria-labelledby="p-cactions-label" /> <label id="p-cactions-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">More</span> </label> <div class="vector-menu-content"> <ul class="vector-menu-content-list"></ul> </div> </nav> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <div> <h3 > <label for="searchInput">Search</label> </h3> <form action="/index.php" id="searchform" class="vector-search-box-form"> <div id="simpleSearch" class="vector-search-box-inner" data-search-loc="header-navigation"> <input class="vector-search-box-input" type="search" name="search" placeholder="Search MultimediaWiki" aria-label="Search MultimediaWiki" autocapitalize="sentences" title="Search MultimediaWiki [f]" accesskey="f" id="searchInput" > <input type="hidden" name="title" value="Special:Search"> <input id="mw-searchButton" class="searchButton mw-fallbackSearchButton" type="submit" name="fulltext" title="Search the pages for this text" value="Search"> <input id="searchButton" class="searchButton" type="submit" name="go" title="Go to a page with this exact name if it exists" value="Go"> </div> </form> </div> </div> </div> </div> <div id="mw-panel"> <div id="p-logo" role="banner"> <a class="mw-wiki-logo" href="/index.php/Main_Page" title="Visit the main page"></a> </div> <nav id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation vector-menu-portal portal" aria-labelledby="p-navigation-label" role="navigation" > <h3 id="p-navigation-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Navigation</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="n-mainpage" class="mw-list-item"><a href="/index.php/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main Page</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/index.php/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-Video-Codecs" class="mw-list-item"><a href="/index.php/Category:Video_Codecs"><span>Video Codecs</span></a></li><li id="n-Video-FourCCs" class="mw-list-item"><a href="/index.php/Category:Video_FourCCs"><span>Video FourCCs</span></a></li><li id="n-Audio-Codecs" class="mw-list-item"><a href="/index.php/Category:Audio_Codecs"><span>Audio Codecs</span></a></li><li id="n-Container-Formats" class="mw-list-item"><a href="/index.php/Category:Container_Formats"><span>Container Formats</span></a></li><li id="n-Game-Formats" class="mw-list-item"><a href="/index.php/Category:Game_Formats"><span>Game Formats</span></a></li><li id="n-Subtitle-Formats" class="mw-list-item"><a href="/index.php/Category:Subtitle_Formats"><span>Subtitle Formats</span></a></li><li id="n-Image-Formats" class="mw-list-item"><a href="/index.php/Category:Image_Formats"><span>Image Formats</span></a></li><li id="n-All-Categories" class="mw-list-item"><a href="/index.php/Special:Categories"><span>All Categories</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/index.php/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li></ul> </div> </nav> <nav id="p-tb" class="vector-menu mw-portlet mw-portlet-tb vector-menu-portal portal" aria-labelledby="p-tb-label" role="navigation" > <h3 id="p-tb-label" class="vector-menu-heading " > <span class="vector-menu-heading-label">Tools</span> </h3> <div class="vector-menu-content"> <ul class="vector-menu-content-list"><li id="t-whatlinkshere" class="mw-list-item"><a href="/index.php/Special:WhatLinksHere/XSUB" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/index.php/Special:RecentChangesLinked/XSUB" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/index.php/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-print" class="mw-list-item"><a href="javascript:print();" rel="alternate" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/index.php?title=XSUB&amp;oldid=10542" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/index.php?title=XSUB&amp;action=info" title="More information about this page"><span>Page information</span></a></li></ul> </div> </nav> </div> </div> <footer id="footer" class="mw-footer" role="contentinfo" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 16 November 2008, at 02:52.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="/index.php/MultimediaWiki:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/index.php/MultimediaWiki:About">About MultimediaWiki</a></li> <li id="footer-places-disclaimer"><a href="/index.php/MultimediaWiki:General_disclaimer">Disclaimers</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/"><img src="/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31" loading="lazy"/></a></li> </ul> </footer> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.003","walltime":"0.004","ppvisitednodes":{"value":1,"limit":1000000},"postexpandincludesize":{"value":0,"limit":2097152},"templateargumentsize":{"value":0,"limit":2097152},"expansiondepth":{"value":1,"limit":100},"expensivefunctioncount":{"value":0,"limit":100},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":0,"limit":5000000},"timingprofile":["100.00% 0.000 1 -total"]},"cachereport":{"timestamp":"20241124161902","ttl":86400,"transientcontent":false}}});});</script> <!-- Matomo --> <script type="text/javascript"> var _paq = _paq || []; _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u = (("https:" == document.location.protocol) ? "https" : "http") + "://"+"wiki.multimedia.cx/matomo/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "1"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Matomo Code --> <!-- Matomo Image Tracker --> <noscript><img src="https://wiki.multimedia.cx/matomo/piwik.php?idsite=1&rec=1" style="border:0" alt="" /></noscript> <!-- End Matomo --> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":125});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10