[Theora-dev] libtheora Bitrate Problem
Draco
draco at dragonsguild.net
Thu Aug 4 23:52:14 PDT 2005
Hello,
I'm not sure if this list is the proper place for this post; please
correct me if it is not.
I am attempting to use libtheora and I have been looking through the
examples in the distribution
Excerpt from encoder_example.c --
case 'V':
video_r=rint(atof(optarg)*1000);
if(video_r<45000 || video_r>2000000) {
fprintf(stderr,"Illegal video bitrate (choose 45kbps through 2000kbps)\n");
exit(1);
}
video_q=0;
break;
I assume 'kbps' is Kilobits Per Second (kbit/s) and
*theora_info.target_bitrate* is in Bits Per Second.
If this is true then shouldn't the argument (optarg) be multiplied by
1024 and not 1000? Or does it matter?
Thanks,
Draco
draco at dragonsguild.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora-dev/attachments/20050805/53b51693/attachment.htm
More information about the Theora-dev
mailing list