<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Gregory Maxwell wrote:
<blockquote
 cite="mid:e692861c0912070717r64bd4dblab46bf93028f2783@mail.gmail.com"
 type="cite">
  <pre wrap="">On Mon, Dec 7, 2009 at 9:56 AM, Benjamin M. Schwartz
<a class="moz-txt-link-rfc2396E" href="mailto:bmschwar@fas.harvard.edu">&lt;bmschwar@fas.harvard.edu&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Mircea Gliga wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">   Then I measured how long does it take for Theora to encode an image
      </pre>
    </blockquote>
    <pre wrap="">...
    </pre>
    <blockquote type="cite">
      <pre wrap="">   On average: *80 ms*.
     Using XVID I've obtained between *20-25 ms* for an image. That's
60ms longer using Theora.
      </pre>
    </blockquote>
    <pre wrap="">That is surprising.  A big difference like this is definitely not
expected.  Are you encoding at approximately the same bitrate?  Video
encoding speed depends heavily the target bitrate or quality.  What
version of libtheora are you linking against?  Apart from switching out
XVID and Theora, is the code otherwise identical?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
"OS Name    Microsoft® Windows Vista™ "

How is libtheora compiled? Are assembly optimizations enabled? Is this an
x64 build?

  </pre>
</blockquote>
<br>
I'm using the latest version from theora's site, ver 1.1.1<br>
I've compiled libtheora using the projects provided in the downloaded
package <br>
with no modifications to the Project's properties. I've tried both of
this <br>
configurations: Release, Release_SSE2. The target platform is <b>Win32</b>,
it's not a x64 build.<br>
<br>
<pre wrap=""><i> Apart from switching out
XVID and Theora, is the code otherwise identical?</i></pre>
Yes the code is identical. I measured how long does it take for the API
calls to execute: <i>th_encode_ycbcr_in</i> and <i><br>
th_encode_packetout</i> calls, for theora, and xvid_encore for xvid.<br>
<br>
When initializing the encoder, I set the bitrate: <i>theoraInfo.target_bitrate
= 0</i>; and <i>theoraInfo.quality</i> = 30.<br>