{"id":1867,"date":"2009-09-25T08:13:59","date_gmt":"2009-09-25T15:13:59","guid":{"rendered":"http:\/\/multimedia.cx\/eggs\/?p=1867"},"modified":"2009-11-23T14:59:38","modified_gmt":"2009-11-23T21:59:38","slug":"theora-1-1-released","status":"publish","type":"post","link":"https:\/\/multimedia.cx\/eggs\/theora-1-1-released\/","title":{"rendered":"Theora 1.1 Released"},"content":{"rendered":"<p>No sooner did I press &#8220;Publish&#8221; on <a href=\"http:\/\/multimedia.cx\/eggs\/multithreaded-ffmpeg-programming\/\">my last post pertaining to multithreading FFmpeg&#8217;s Theora decoder<\/a>, than did I receive an email from the <a href=\"http:\/\/lists.xiph.org\/pipermail\/theora-dev\/2009-September\/003985.html\">theora-dev list regarding the release of Theora 1.1.0<\/a>. It took them many, many years to <a href=\"http:\/\/multimedia.cx\/eggs\/theora-is-now-officially-available\/\">release the first official version<\/a> and about 10 months to get the second version out, so congratulations on that matter. This release includes the much-vaunted Thusnelda encoder which is supposed to offer substantial encoding improvements vs. the original 1.0 encoder.<\/p>\n<p>So, fair warning: Be prepared for a new round of &#8220;Theora Bests H.264 \/ HTML5 Video Poised To Conquer Internet&#8221; type of stories.<\/p>\n<p>Since I have been doing a bunch of optimizations to the FFmpeg Theora decoder this past week (a.k.a. <a href=\"http:\/\/ffmpeg.org\/projects.html\">the Theora decoder that most people actually use<\/a>), I thought this would be the perfect opportunity to benchmark Theora 1.1 alongside FFmpeg&#8217;s decoder. Fortunately, libtheora has an example tool called dump_video that decodes video directly to YUV4MPEG2 format, the same way I was testing FFmpeg&#8217;s decoder.<\/p>\n<p>FFmpeg command line:<\/p>\n<pre>\r\nffmpeg -threads <em>n<\/em> -i big_buck_bunny_1080p_stereo.ogg\r\n  -f yuv4mpegpipe -an -y \/dev\/null\r\n<\/pre>\n<p>Libtheora command line:<\/p>\n<pre>\r\ndump_video big_buck_bunny_1080p_stereo.ogg > \/dev\/null\r\n<\/pre>\n<p>The results (on my Core 2 Duo Mac Mini) were thus:<\/p>\n<pre>\r\n6:44 - FFmpeg, 1 thread\r\n6:09 - FFmpeg, 2 threads *\r\n4:51 - libtheora 1.1\r\n<\/pre>\n<p><em>* multithreaded version isn&#8217;t complete yet<\/em><\/p>\n<p>Mind you, libtheora&#8217;s decoder is singly-threaded and only has basic MMX SIMD optimizations. After seeing libtheora&#8217;s relative performance, I think I blacked out. Or maybe I just went to bed since it was so late; it&#8217;s sort of a blur. I awoke in a confused stupor wondering what I&#8217;m doing wrong in the FFmpeg Theora decoder. Why is it so slow? Actually, I know why&#8211; unpack_vlcs(), which continues to dominate profiling statistics. Perhaps the question I should start with is, how does libtheora unpack VLCs so quickly? That&#8217;s a good jumping-off point for a future investigation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Theora 1.1 is out and their decoder puts FFmpeg&#8217;s to shame<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-1867","post","type-post","status-publish","format-standard","hentry","category-vp3theora"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/1867","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=1867"}],"version-history":[{"count":8,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/1867\/revisions"}],"predecessor-version":[{"id":1984,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/posts\/1867\/revisions\/1984"}],"wp:attachment":[{"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/media?parent=1867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/categories?post=1867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multimedia.cx\/eggs\/wp-json\/wp\/v2\/tags?post=1867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}