comparison mencoder.c @ 2661:11f4c2b2b70f

-oac/-ovc (fake:))
author arpi
date Sat, 03 Nov 2001 23:01:17 +0000
parents 40fbed77bbb8
children c4b167e07a62
comparison
equal deleted inserted replaced
2660:b082c01f6cec 2661:11f4c2b2b70f
48 char *audio_codec=NULL; // override audio codec 48 char *audio_codec=NULL; // override audio codec
49 char *video_codec=NULL; // override video codec 49 char *video_codec=NULL; // override video codec
50 int audio_family=-1; // override audio codec family 50 int audio_family=-1; // override audio codec family
51 int video_family=-1; // override video codec family 51 int video_family=-1; // override video codec family
52 52
53 int out_audio_codec=ACODEC_VBRMP3;
54 int out_video_codec=VCODEC_DIVX4;
55
53 // audio stream skip/resync functions requires only for seeking. 56 // audio stream skip/resync functions requires only for seeking.
54 // (they should be implemented in the audio codec layer) 57 // (they should be implemented in the audio codec layer)
55 //void skip_audio_frame(sh_audio_t *sh_audio){} 58 //void skip_audio_frame(sh_audio_t *sh_audio){}
56 //void resync_audio_stream(sh_audio_t *sh_audio){} 59 //void resync_audio_stream(sh_audio_t *sh_audio){}
57 60
81 static int pass=0; 84 static int pass=0;
82 static char* passtmpfile="divx2pass.log"; 85 static char* passtmpfile="divx2pass.log";
83 86
84 static int play_n_frames=-1; 87 static int play_n_frames=-1;
85 88
86 char *out_audio_codec=NULL; // override audio codec 89 //char *out_audio_codec=NULL; // override audio codec
87 char *out_video_codec=NULL; // override video codec 90 //char *out_video_codec=NULL; // override video codec
88 91
89 //#include "libmpeg2/mpeg2.h" 92 //#include "libmpeg2/mpeg2.h"
90 //#include "libmpeg2/mpeg2_internal.h" 93 //#include "libmpeg2/mpeg2_internal.h"
91 94
92 ENC_PARAM divx4_param; 95 ENC_PARAM divx4_param;
417 420
418 mux_v->h.dwSampleSize=0; // VBR 421 mux_v->h.dwSampleSize=0; // VBR
419 mux_v->h.dwScale=10000; 422 mux_v->h.dwScale=10000;
420 mux_v->h.dwRate=mux_v->h.dwScale*(force_ofps?force_ofps:sh_video->fps); 423 mux_v->h.dwRate=mux_v->h.dwScale*(force_ofps?force_ofps:sh_video->fps);
421 424
422 mux_v->codec=VCODEC_DIVX4; // 0=streamcopy 425 mux_v->codec=out_video_codec;
423 426
424 switch(mux_v->codec){ 427 switch(mux_v->codec){
425 case 0: 428 case 0:
426 mux_v->bih=sh_video->bih; 429 mux_v->bih=sh_video->bih;
427 break; 430 break;
445 mux_a->buffer_size=0x100000; //16384; 448 mux_a->buffer_size=0x100000; //16384;
446 mux_a->buffer=malloc(mux_a->buffer_size); 449 mux_a->buffer=malloc(mux_a->buffer_size);
447 450
448 mux_a->source=sh_audio; 451 mux_a->source=sh_audio;
449 452
450 //mux_a->codec=ACODEC_PCM; // 0=streamcopy 453 mux_a->codec=out_audio_codec;
451 mux_a->codec=ACODEC_VBRMP3; // 0=streamcopy
452 454
453 switch(mux_a->codec){ 455 switch(mux_a->codec){
454 case 0: 456 case 0:
455 mux_a->h.dwSampleSize=sh_audio->audio.dwSampleSize; 457 mux_a->h.dwSampleSize=sh_audio->audio.dwSampleSize;
456 mux_a->h.dwScale=sh_audio->audio.dwScale; 458 mux_a->h.dwScale=sh_audio->audio.dwScale;