--- /dev/null
+#include <stdio.h>
+#include <stdlib.h>
+
+#define CD (700*1024*8)
+
+int main(int argc, char **argv) {
+
+ int time;
+ int cds;
+ int abitrate;
+
+ if (argc!=4) {
+ puts("usage: %s <#cd's> <movie dureation in minuites> <audi kb/s>");
+ return -1;
+ }
+
+ time=atoi(argv[2]);
+ cds=atoi(argv[1]);
+ abitrate=atoi(argv[3]);
+
+ /* time in seconds */
+ time*=60;
+
+ printf("use %d kb/s as vbitrate when encoding with %d kb/s of audiodata!\n",
+ ((cds*CD)/time)-abitrate,
+ abitrate);
+
+ return 1;
+}