<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<p class="MsoNormal" style="margin-bottom: 12pt;">Hello,<br>
I'm not sure if this list is the proper place for this post; please
correct me if it is not.<br>
I am attempting to use libtheora and I have been looking through the
examples in the distribution<br>
<br>
Excerpt from encoder_example.c --<o:p></o:p></p>
<pre> case 'V':
video_r=rint(atof(optarg)*1000);
if(video_r<45000 || video_r>2000000) {
<span style=""> </span>fprintf(stderr,"Illegal video bitrate (choose 45kbps through 2000kbps)\n");
exit(1);
}
video_q=0;
break;<o:p></o:p></pre>
<p class="MsoNormal"> I assume 'kbps' is Kilobits Per Second (kbit/s)
and
<b>theora_info.target_bitrate</b> is in Bits Per Second. <br>
If this is true then shouldn't the argument (optarg) be multiplied by
1024 and not
1000? Or does it matter?<br>
<br>
Thanks,</p>
<p class="MsoNormal"> Draco<br>
<a class="moz-txt-link-abbreviated" href="mailto:draco@dragonsguild.net">draco@dragonsguild.net</a></p>
<br>
<br>
</body>
</html>