diff mencoder.c @ 4368:fae96d93c662

bitrate calculator for 650/700 mb cdrom
author arpi
date Sun, 27 Jan 2002 00:43:57 +0000
parents c2be4fb65cee
children b768f17c6d36
line wrap: on
line diff
--- a/mencoder.c	Sat Jan 26 22:30:02 2002 +0000
+++ b/mencoder.c	Sun Jan 27 00:43:57 2002 +0000
@@ -8,6 +8,7 @@
 #define ACODEC_COPY 0
 #define ACODEC_PCM 1
 #define ACODEC_VBRMP3 2
+#define ACODEC_NULL 3
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -1425,6 +1426,12 @@
 printf("Fixup AVI header...\n");
 fseek(muxer_f,0,SEEK_SET);
 aviwrite_write_header(muxer,muxer_f); // update header
+
+if(out_video_codec==VCODEC_FRAMENO && mux_v->timer>100){
+    printf("Suggested video bitrate for 650MB CD: %d\n",(int)((650*1024*1024-ftell(muxer_f))/mux_v->timer/125));
+    printf("Suggested video bitrate for 700MB CD: %d\n",(int)((700*1024*1024-ftell(muxer_f))/mux_v->timer/125));
+}
+
 fclose(muxer_f);
 
 printf("\nVideo stream: %8.3f kbit/s  (%d bps)  size: %d bytes  %5.3f secs  %d frames\n",