{"id":1620,"date":"2009-07-01T20:28:12","date_gmt":"2009-07-02T03:28:12","guid":{"rendered":"http:\/\/multimedia.cx\/eggs\/?p=1620"},"modified":"2009-07-02T08:34:28","modified_gmt":"2009-07-02T15:34:28","slug":"sun-oms-has-a-spec","status":"publish","type":"post","link":"https:\/\/multimedia.cx\/eggs\/sun-oms-has-a-spec\/","title":{"rendered":"Sun OMS Has A Spec"},"content":{"rendered":"<p>A little over a year ago, Sun was making rumblings about a brand new video codec that they were hoping to design from the ground up using known-good (read: patent-unencumbered) coding algorithms. This was to be called the Open Media Stack (OMS). I <a href=\"http:\/\/multimedia.cx\/eggs\/suns-multimedia-rumblings\/\">wrote a post about<\/a>, made <a href=\"http:\/\/wiki.multimedia.cx\/index.php?title=Sun_OMS\">an obligatory MultimediaWiki page<\/a> about it, and then promptly forgot all about it.<\/p>\n<p>Today, by way of a <a href=\"http:\/\/www.brucelawson.co.uk\/2009\/impasse-on-html-5-video\/\">blog post by Opera&#8217;s Bruce Lawson<\/a> describing why HTML5&#8217;s &lt;video&gt; tag is, well, stalled (to put it charitably), I learned that Sun&#8217;s OMS team has <a href=\"http:\/\/www.openmediacommons.org\/collateral\/OMS-video-specs.html\">published at least 2 specs<\/a>, the latest one being posted a few weeks ago on June 9, 2009. As he notes, the proposed Oracle buyout of Sun puts the OMS project&#8217;s status in limbo.<\/p>\n<p>The spec page links to forum threads where interested parties can discuss issues in the spec. There aren&#8217;t many comments but the ones that exist seem to revolve around the codec&#8217;s articial resolution limitations. For my part, I wonder about how to encapsulate it into a container format for transport. The format specifies a sequence header that is 96 bits (12 bytes) in length, though there are provisions for (currently unused) extended data as well as free-form user data. The sequence header would be categorized as extradata in an AVI file or in a MOV file&#8217;s video stsd atom. Successive frames should be straightforward to store in a container format since the coding method only seems to employ intra-and inter-frames. Each frame begins with a header which specifies a 37-bit timestamp in reference to a 90 kHz clock. This allows for a recording that&#8217;s just over 1 week in length. It&#8217;s also one of those highly redundant items if this format were to be stuffed in a more generalized container format.<\/p>\n<p>Anyway, the main video algorithm uses arithmetic and Golomb coding for its entropy coding; 8&#215;8 pixel macroblocks which can either be an entire block unto themselves or subdivided into 4 4&#215;4 sub-blocks; colorspace is YUV 4:2:0 planar; specifies bit-exact 2&#215;2, 4&#215;4, and 8&#215;8 transforms and quantization procedures; spacial prediction using left, top-left, top, and top-right blocks; precisely-specified 1\/4-pel motion compensation. All in all, it appears relatively simple; the 0.91 spec (annexes and all) weighs in at a mere 96 pages.<\/p>\n<p>Naturally, there are no reference implementations or samples available. This got me to wondering about how one goes about creating a reference implementation of a codec (or a production implementation, for that matter). The encoder needs to come first so that it can generate samples. Only then can a decoder be written. Ideally, the initial encoder and decoder should be 2 totally different programs, written by 2 different people, though hopefully working closely together (speedy communication helps). There is wisdom in the <a href=\"http:\/\/ffmpeg.org\/\">FFmpeg<\/a> community about not basing the primary encoder and decoder on the same base library after we reverse engineered one of the Real video codecs and found a fairly obvious bug that occurred in both sides of the codec. <\/p>\n<p>I think I know one way to ensure that the encoder and decoder don&#8217;t share any pieces&#8211; write them in different computer languages.<\/p>\n<p>I&#8217;m still wondering what kind of application would need to record video continuously for up to a week. How about a closed-circuit security camera? With a terabyte drive, it could store video for a week assuming a bitrate of 1.5 Mbits\/sec. That&#8217;s roughly the same bitrate as the original MPEG-1 standard. If this coding method compresses more efficiently than MPEG-1, this might be a plausible application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I didn&#8217;t know that Sun&#8217;s Open Media Stack codec has some substance to it<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[214,213,211,212,210],"class_list":["post-1620","post","type-post","status-publish","format-standard","hentry","category-open-source-multimedia","tag-arithmetic","tag-golomb","tag-oms","tag-open-media-stack","tag-sun"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/1620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/comments?post=1620"}],"version-history":[{"count":4,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/1620\/revisions"}],"predecessor-version":[{"id":1624,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/1620\/revisions\/1624"}],"wp:attachment":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/media?parent=1620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/categories?post=1620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/tags?post=1620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}