[Mplayer-cvslog] CVS: main mencoder.c,1.64,1.65

Arpi of Ize arpi at mplayer.dev.hu
Sun Jan 27 01:44:09 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv16542

Modified Files:
	mencoder.c 
Log Message:
bitrate calculator for 650/700 mb cdrom

Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- mencoder.c	26 Jan 2002 22:30:02 -0000	1.64
+++ mencoder.c	27 Jan 2002 00:43:57 -0000	1.65
@@ -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",




More information about the MPlayer-cvslog mailing list