Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
4367:c2be4fb65cee | 4368:fae96d93c662 |
---|---|
6 #define VCODEC_NULL 5 | 6 #define VCODEC_NULL 5 |
7 | 7 |
8 #define ACODEC_COPY 0 | 8 #define ACODEC_COPY 0 |
9 #define ACODEC_PCM 1 | 9 #define ACODEC_PCM 1 |
10 #define ACODEC_VBRMP3 2 | 10 #define ACODEC_VBRMP3 2 |
11 #define ACODEC_NULL 3 | |
11 | 12 |
12 #include <stdio.h> | 13 #include <stdio.h> |
13 #include <stdlib.h> | 14 #include <stdlib.h> |
14 #include <string.h> | 15 #include <string.h> |
15 #include <signal.h> | 16 #include <signal.h> |
1423 printf("\nWriting AVI index...\n"); | 1424 printf("\nWriting AVI index...\n"); |
1424 aviwrite_write_index(muxer,muxer_f); | 1425 aviwrite_write_index(muxer,muxer_f); |
1425 printf("Fixup AVI header...\n"); | 1426 printf("Fixup AVI header...\n"); |
1426 fseek(muxer_f,0,SEEK_SET); | 1427 fseek(muxer_f,0,SEEK_SET); |
1427 aviwrite_write_header(muxer,muxer_f); // update header | 1428 aviwrite_write_header(muxer,muxer_f); // update header |
1429 | |
1430 if(out_video_codec==VCODEC_FRAMENO && mux_v->timer>100){ | |
1431 printf("Suggested video bitrate for 650MB CD: %d\n",(int)((650*1024*1024-ftell(muxer_f))/mux_v->timer/125)); | |
1432 printf("Suggested video bitrate for 700MB CD: %d\n",(int)((700*1024*1024-ftell(muxer_f))/mux_v->timer/125)); | |
1433 } | |
1434 | |
1428 fclose(muxer_f); | 1435 fclose(muxer_f); |
1429 | 1436 |
1430 printf("\nVideo stream: %8.3f kbit/s (%d bps) size: %d bytes %5.3f secs %d frames\n", | 1437 printf("\nVideo stream: %8.3f kbit/s (%d bps) size: %d bytes %5.3f secs %d frames\n", |
1431 (float)(mux_v->size/mux_v->timer*8.0f/1000.0f), (int)(mux_v->size/mux_v->timer), mux_v->size, (float)mux_v->timer, decoded_frameno); | 1438 (float)(mux_v->size/mux_v->timer*8.0f/1000.0f), (int)(mux_v->size/mux_v->timer), mux_v->size, (float)mux_v->timer, decoded_frameno); |
1432 if(sh_audio) | 1439 if(sh_audio) |