Mercurial > mplayer.hg
comparison mencoder.c @ 17106:05af35012e4f
new -msglevel option, constrols msg level for every msg module
author | ods15 |
---|---|
date | Tue, 06 Dec 2005 08:42:48 +0000 |
parents | 9c94272f5eb7 |
children | 637a2f4ff216 |
comparison
equal
deleted
inserted
replaced
17105:64decafd9108 | 17106:05af35012e4f |
---|---|
137 double max_video_time_usage=0; | 137 double max_video_time_usage=0; |
138 double max_vout_time_usage=0; | 138 double max_vout_time_usage=0; |
139 double cur_video_time_usage=0; | 139 double cur_video_time_usage=0; |
140 double cur_vout_time_usage=0; | 140 double cur_vout_time_usage=0; |
141 int benchmark=0; | 141 int benchmark=0; |
142 | |
143 int mp_msg_levels[MSGT_MAX]; // inited to -2 | |
144 int mp_msg_level_all = MSGL_STATUS; | |
142 | 145 |
143 #ifdef WIN32 | 146 #ifdef WIN32 |
144 char * proc_priority=NULL; | 147 char * proc_priority=NULL; |
145 #endif | 148 #endif |
146 | 149 |
400 | 403 |
401 audio_encoding_params_t aparams; | 404 audio_encoding_params_t aparams; |
402 audio_encoder_t *aencoder = NULL; | 405 audio_encoder_t *aencoder = NULL; |
403 | 406 |
404 mp_msg_init(); | 407 mp_msg_init(); |
405 mp_msg_set_level(MSGL_STATUS); | |
406 mp_msg(MSGT_CPLAYER,MSGL_INFO, "MEncoder " VERSION " (C) 2000-2005 MPlayer Team\n"); | 408 mp_msg(MSGT_CPLAYER,MSGL_INFO, "MEncoder " VERSION " (C) 2000-2005 MPlayer Team\n"); |
407 | 409 |
408 /* Test for cpu capabilities (and corresponding OS support) for optimizing */ | 410 /* Test for cpu capabilities (and corresponding OS support) for optimizing */ |
409 GetCpuCaps(&gCpuCaps); | 411 GetCpuCaps(&gCpuCaps); |
410 #if defined(ARCH_X86) || defined(ARCH_X86_64) | 412 #if defined(ARCH_X86) || defined(ARCH_X86_64) |
460 mconfig = m_config_new(); | 462 mconfig = m_config_new(); |
461 m_config_register_options(mconfig,mencoder_opts); | 463 m_config_register_options(mconfig,mencoder_opts); |
462 parse_cfgfiles(mconfig); | 464 parse_cfgfiles(mconfig); |
463 filelist = m_config_parse_me_command_line(mconfig, argc, argv); | 465 filelist = m_config_parse_me_command_line(mconfig, argc, argv); |
464 if(!filelist) mencoder_exit(1, MSGTR_ErrorParsingCommandLine); | 466 if(!filelist) mencoder_exit(1, MSGTR_ErrorParsingCommandLine); |
465 | |
466 mp_msg_set_level(verbose+MSGL_STATUS); | |
467 | 467 |
468 if (frameno_filename) { | 468 if (frameno_filename) { |
469 stream2=open_stream(frameno_filename,0,&i); | 469 stream2=open_stream(frameno_filename,0,&i); |
470 if(stream2){ | 470 if(stream2){ |
471 demuxer2=demux_open(stream2,DEMUXER_TYPE_AVI,-1,-1,-2,NULL); | 471 demuxer2=demux_open(stream2,DEMUXER_TYPE_AVI,-1,-1,-2,NULL); |