comparison mencoder.c @ 15055:cec31d399b8a

Change all MSGT_FIXME, MSGL_FIXME to appropiate values. patch by Oded Shimon < ods15 at ods15 dot dyndns dot org >
author diego
date Wed, 06 Apr 2005 07:53:42 +0000
parents 265d8b8adbbe
children 6f949cafe480
comparison
equal deleted inserted replaced
15054:d8f97f45cfbe 15055:cec31d399b8a
299 299
300 /* FIXME */ 300 /* FIXME */
301 static void mencoder_exit(int level, char *how) 301 static void mencoder_exit(int level, char *how)
302 { 302 {
303 if (how) 303 if (how)
304 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_ExitingHow, mp_gettext(how)); 304 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_ExitingHow, mp_gettext(how));
305 else 305 else
306 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_Exiting); 306 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_Exiting);
307 307
308 exit(level); 308 exit(level);
309 } 309 }
310 310
311 void parse_cfgfiles( m_config_t* conf ) 311 void parse_cfgfiles( m_config_t* conf )
469 469
470 // FIXME: get rid of -dvd and other tricky options 470 // FIXME: get rid of -dvd and other tricky options
471 stream2=open_stream(frameno_filename,0,&i); 471 stream2=open_stream(frameno_filename,0,&i);
472 if(stream2){ 472 if(stream2){
473 demuxer2=demux_open(stream2,DEMUXER_TYPE_AVI,-1,-1,-2,NULL); 473 demuxer2=demux_open(stream2,DEMUXER_TYPE_AVI,-1,-1,-2,NULL);
474 if(demuxer2) mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_UsingPass3ControllFile, frameno_filename); 474 if(demuxer2) mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_UsingPass3ControllFile, frameno_filename);
475 else mp_msg(MSGT_DEMUXER,MSGL_ERR,MSGTR_FormatNotRecognized); 475 else mp_msg(MSGT_DEMUXER,MSGL_ERR,MSGTR_FormatNotRecognized);
476 } 476 }
477 477
478 mconfig = m_config_new(); 478 mconfig = m_config_new();
479 m_config_register_options(mconfig,mencoder_opts); 479 m_config_register_options(mconfig,mencoder_opts);
531 mencoder_exit(1,NULL); 531 mencoder_exit(1,NULL);
532 } 532 }
533 stream=open_stream(filename,0,&file_format); 533 stream=open_stream(filename,0,&file_format);
534 534
535 if(!stream){ 535 if(!stream){
536 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_CannotOpenFile_Device); 536 mp_msg(MSGT_CPLAYER, MSGL_FATAL, MSGTR_CannotOpenFile_Device);
537 mencoder_exit(1,NULL); 537 mencoder_exit(1,NULL);
538 } 538 }
539 539
540 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_OpenedStream, file_format, (int)(stream->start_pos), (int)(stream->end_pos)); 540 mp_msg(MSGT_CPLAYER, MSGL_INFO, MSGTR_OpenedStream, file_format, (int)(stream->start_pos), (int)(stream->end_pos));
541 541
542 #ifdef USE_DVDREAD 542 #ifdef USE_DVDREAD
543 if(stream->type==STREAMTYPE_DVD){ 543 if(stream->type==STREAMTYPE_DVD){
544 if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang); 544 if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang);
545 if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang); 545 if(dvdsub_lang && dvdsub_id==-1) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang);
571 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_VideoStreamRequired); 571 mp_msg(MSGT_CPLAYER,MSGL_FATAL,MSGTR_VideoStreamRequired);
572 mencoder_exit(1,NULL); 572 mencoder_exit(1,NULL);
573 } 573 }
574 574
575 if(!video_read_properties(sh_video)){ 575 if(!video_read_properties(sh_video)){
576 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_CannotReadVideoProperties); 576 mp_msg(MSGT_CPLAYER, MSGL_FATAL, MSGTR_CannotReadVideoProperties);
577 mencoder_exit(1,NULL); 577 mencoder_exit(1,NULL);
578 } 578 }
579 579
580 mp_msg(MSGT_MENCODER,MSGL_INFO,"[V] filefmt:%d fourcc:0x%X size:%dx%d fps:%5.2f ftime:=%6.4f\n", 580 mp_msg(MSGT_MENCODER,MSGL_INFO,"[V] filefmt:%d fourcc:0x%X size:%dx%d fps:%5.2f ftime:=%6.4f\n",
581 demuxer->file_format,sh_video->format, sh_video->disp_w,sh_video->disp_h, 581 demuxer->file_format,sh_video->format, sh_video->disp_w,sh_video->disp_h,
685 spudec_set_forced_subs_only(vo_spudec,forced_subs_only); 685 spudec_set_forced_subs_only(vo_spudec,forced_subs_only);
686 686
687 // set up output file: 687 // set up output file:
688 muxer_f=fopen(out_filename,"wb"); 688 muxer_f=fopen(out_filename,"wb");
689 if(!muxer_f) { 689 if(!muxer_f) {
690 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_CannotOpenOutputFile, out_filename); 690 mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_CannotOpenOutputFile, out_filename);
691 mencoder_exit(1,NULL); 691 mencoder_exit(1,NULL);
692 } 692 }
693 693
694 muxer=muxer_new_muxer(out_file_format,muxer_f); 694 muxer=muxer_new_muxer(out_file_format,muxer_f);
695 695
739 mux_v->bih->biPlanes=1; 739 mux_v->bih->biPlanes=1;
740 mux_v->bih->biBitCount=24; // FIXME!!! 740 mux_v->bih->biBitCount=24; // FIXME!!!
741 mux_v->bih->biSizeImage=mux_v->bih->biWidth*mux_v->bih->biHeight*(mux_v->bih->biBitCount/8); 741 mux_v->bih->biSizeImage=mux_v->bih->biWidth*mux_v->bih->biHeight*(mux_v->bih->biBitCount/8);
742 } 742 }
743 } 743 }
744 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_VCodecFramecopy, 744 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_VCodecFramecopy,
745 mux_v->bih->biWidth, mux_v->bih->biHeight, 745 mux_v->bih->biWidth, mux_v->bih->biHeight,
746 mux_v->bih->biBitCount, mux_v->bih->biCompression); 746 mux_v->bih->biBitCount, mux_v->bih->biCompression);
747 747
748 if (curfile) { 748 if (curfile) {
749 if (sh_video->bih) { 749 if (sh_video->bih) {
828 /* force output fourcc to .. */ 828 /* force output fourcc to .. */
829 if ((force_fourcc != NULL) && (strlen(force_fourcc) >= 4)) 829 if ((force_fourcc != NULL) && (strlen(force_fourcc) >= 4))
830 { 830 {
831 mux_v->bih->biCompression = mmioFOURCC(force_fourcc[0], force_fourcc[1], 831 mux_v->bih->biCompression = mmioFOURCC(force_fourcc[0], force_fourcc[1],
832 force_fourcc[2], force_fourcc[3]); 832 force_fourcc[2], force_fourcc[3]);
833 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_ForcingOutputFourcc, 833 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_ForcingOutputFourcc,
834 mux_v->bih->biCompression, (char *)&mux_v->bih->biCompression); 834 mux_v->bih->biCompression, (char *)&mux_v->bih->biCompression);
835 } 835 }
836 836
837 if(muxer->fix_stream_parameters) 837 if(muxer->fix_stream_parameters)
838 muxer_stream_fix_parameters(muxer,mux_v); 838 muxer_stream_fix_parameters(muxer,mux_v);
879 mux_a->h.dwScale=mux_a->h.dwSampleSize; 879 mux_a->h.dwScale=mux_a->h.dwSampleSize;
880 mux_a->h.dwRate=mux_a->wf->nAvgBytesPerSec; 880 mux_a->h.dwRate=mux_a->wf->nAvgBytesPerSec;
881 } 881 }
882 mux_a->h.dwRate *= playback_speed; 882 mux_a->h.dwRate *= playback_speed;
883 mux_a->wf->nSamplesPerSec *= playback_speed; 883 mux_a->wf->nSamplesPerSec *= playback_speed;
884 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_ACodecFramecopy, 884 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_ACodecFramecopy,
885 mux_a->wf->wFormatTag, mux_a->wf->nChannels, mux_a->wf->nSamplesPerSec, 885 mux_a->wf->wFormatTag, mux_a->wf->nChannels, mux_a->wf->nSamplesPerSec,
886 mux_a->wf->wBitsPerSample, mux_a->wf->nAvgBytesPerSec, mux_a->h.dwSampleSize); 886 mux_a->wf->wBitsPerSample, mux_a->wf->nAvgBytesPerSec, mux_a->h.dwSampleSize);
887 break; 887 break;
888 case ACODEC_PCM: 888 case ACODEC_PCM:
889 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_CBRPCMAudioSelected); 889 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_CBRPCMAudioSelected);
890 mux_a->h.dwScale=1; 890 mux_a->h.dwScale=1;
891 mux_a->h.dwRate=force_srate?force_srate:new_srate; 891 mux_a->h.dwRate=force_srate?force_srate:new_srate;
892 mux_a->wf=malloc(sizeof(WAVEFORMATEX)); 892 mux_a->wf=malloc(sizeof(WAVEFORMATEX));
893 mux_a->wf->wFormatTag=0x1; // PCM 893 mux_a->wf->wFormatTag=0x1; // PCM
894 mux_a->wf->nChannels=audio_output_channels?audio_output_channels:sh_audio->channels; 894 mux_a->wf->nChannels=audio_output_channels?audio_output_channels:sh_audio->channels;
908 mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_NoMatchingFilter); 908 mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_NoMatchingFilter);
909 } 909 }
910 break; 910 break;
911 #ifdef HAVE_MP3LAME 911 #ifdef HAVE_MP3LAME
912 case ACODEC_VBRMP3: 912 case ACODEC_VBRMP3:
913 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_MP3AudioSelected); 913 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_MP3AudioSelected);
914 mux_a->h.dwSampleSize=0; // VBR 914 mux_a->h.dwSampleSize=0; // VBR
915 mux_a->h.dwRate=force_srate?force_srate:new_srate; 915 mux_a->h.dwRate=force_srate?force_srate:new_srate;
916 mux_a->h.dwScale=(mux_a->h.dwRate<32000)?576:1152; // samples/frame 916 mux_a->h.dwScale=(mux_a->h.dwRate<32000)?576:1152; // samples/frame
917 if(sizeof(MPEGLAYER3WAVEFORMAT)!=30) mp_msg(MSGT_MENCODER,MSGL_WARN,MSGTR_MP3WaveFormatSizeNot30,sizeof(MPEGLAYER3WAVEFORMAT)); 917 if(sizeof(MPEGLAYER3WAVEFORMAT)!=30) mp_msg(MSGT_MENCODER,MSGL_WARN,MSGTR_MP3WaveFormatSizeNot30,sizeof(MPEGLAYER3WAVEFORMAT));
918 mux_a->wf=malloc(sizeof(MPEGLAYER3WAVEFORMAT)); // should be 30 918 mux_a->wf=malloc(sizeof(MPEGLAYER3WAVEFORMAT)); // should be 30
1007 } 1007 }
1008 1008
1009 lavc_abuf = malloc(lavc_actx->frame_size * 2 * lavc_actx->channels); 1009 lavc_abuf = malloc(lavc_actx->frame_size * 2 * lavc_actx->channels);
1010 if(lavc_abuf == NULL) 1010 if(lavc_abuf == NULL)
1011 { 1011 {
1012 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_CannotAllocateBytes, lavc_actx->frame_size * 2 * lavc_actx->channels); // Converted from fprintf(stderr, ...); 1012 mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_CannotAllocateBytes, lavc_actx->frame_size * 2 * lavc_actx->channels);
1013 exit(1); 1013 exit(1);
1014 } 1014 }
1015 1015
1016 mux_a->wf = malloc(sizeof(WAVEFORMATEX)+lavc_actx->extradata_size+256); 1016 mux_a->wf = malloc(sizeof(WAVEFORMATEX)+lavc_actx->extradata_size+256);
1017 mux_a->wf->wFormatTag = lavc_param_atag; 1017 mux_a->wf->wFormatTag = lavc_param_atag;
1154 1154
1155 if (verbose>1) print_wave_header(mux_a->wf); 1155 if (verbose>1) print_wave_header(mux_a->wf);
1156 1156
1157 if(audio_delay!=0.0){ 1157 if(audio_delay!=0.0){
1158 mux_a->h.dwStart=audio_delay*mux_a->h.dwRate/mux_a->h.dwScale; 1158 mux_a->h.dwStart=audio_delay*mux_a->h.dwRate/mux_a->h.dwScale;
1159 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_SettingAudioDelay,mux_a->h.dwStart*mux_a->h.dwScale/(float)mux_a->h.dwRate); 1159 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_SettingAudioDelay,mux_a->h.dwStart*mux_a->h.dwScale/(float)mux_a->h.dwRate);
1160 } 1160 }
1161 if(muxer->fix_stream_parameters) 1161 if(muxer->fix_stream_parameters)
1162 muxer_stream_fix_parameters(muxer,mux_a); 1162 muxer_stream_fix_parameters(muxer,mux_a);
1163 1163
1164 } // if(sh_audio) 1164 } // if(sh_audio)
1165 1165
1166 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_WritingAVIHeader); 1166 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_WritingAVIHeader);
1167 if (muxer->cont_write_header) muxer_write_header(muxer); 1167 if (muxer->cont_write_header) muxer_write_header(muxer);
1168 1168
1169 decoded_frameno=0; 1169 decoded_frameno=0;
1170 1170
1171 if(sh_audio) 1171 if(sh_audio)
1191 if(lame_param_br>0) lame_set_brate(lame,lame_param_br); 1191 if(lame_param_br>0) lame_set_brate(lame,lame_param_br);
1192 } 1192 }
1193 if(lame_param_mode>=0) lame_set_mode(lame,lame_param_mode); // j-st 1193 if(lame_param_mode>=0) lame_set_mode(lame,lame_param_mode); // j-st
1194 if(lame_param_ratio>0) lame_set_compression_ratio(lame,lame_param_ratio); 1194 if(lame_param_ratio>0) lame_set_compression_ratio(lame,lame_param_ratio);
1195 if(lame_param_scale>0) { 1195 if(lame_param_scale>0) {
1196 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_SettingAudioInputGain, lame_param_scale); 1196 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_SettingAudioInputGain, lame_param_scale);
1197 lame_set_scale(lame,lame_param_scale); 1197 lame_set_scale(lame,lame_param_scale);
1198 } 1198 }
1199 if(lame_param_lowpassfreq>=-1) lame_set_lowpassfreq(lame,lame_param_lowpassfreq); 1199 if(lame_param_lowpassfreq>=-1) lame_set_lowpassfreq(lame,lame_param_lowpassfreq);
1200 if(lame_param_highpassfreq>=-1) lame_set_highpassfreq(lame,lame_param_highpassfreq); 1200 if(lame_param_highpassfreq>=-1) lame_set_highpassfreq(lame,lame_param_highpassfreq);
1201 #if HAVE_MP3LAME >= 392 1201 #if HAVE_MP3LAME >= 392
1202 if(lame_param_preset != NULL){ 1202 if(lame_param_preset != NULL){
1203 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LamePresetEquals,lame_param_preset); 1203 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_LamePresetEquals,lame_param_preset);
1204 lame_presets_set(lame,lame_param_fast, (lame_param_vbr==0), lame_param_preset); 1204 lame_presets_set(lame,lame_param_fast, (lame_param_vbr==0), lame_param_preset);
1205 } 1205 }
1206 #endif 1206 #endif
1207 if(lame_init_params(lame) == -1){ 1207 if(lame_init_params(lame) == -1){
1208 mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_LameCantInit); 1208 mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_LameCantInit);
1264 out_minsize = 16384; 1264 out_minsize = 16384;
1265 out_maxsize = mux_a->wf->nAvgBytesPerSec; 1265 out_maxsize = mux_a->wf->nAvgBytesPerSec;
1266 break; 1266 break;
1267 #ifdef HAVE_MP3LAME 1267 #ifdef HAVE_MP3LAME
1268 case ACODEC_VBRMP3: 1268 case ACODEC_VBRMP3:
1269 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_MP3AudioSelected); 1269 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_MP3AudioSelected);
1270 out_format = AF_FORMAT_S16_NE; 1270 out_format = AF_FORMAT_S16_NE;
1271 out_minsize = 4608; 1271 out_minsize = 4608;
1272 out_maxsize = mux_a->h.dwRate*mux_a->wf->nChannels*2; 1272 out_maxsize = mux_a->h.dwRate*mux_a->wf->nChannels*2;
1273 break; 1273 break;
1274 #endif 1274 #endif
1325 } 1325 }
1326 1326
1327 if (out_file_format == MUXER_TYPE_MPEG) 1327 if (out_file_format == MUXER_TYPE_MPEG)
1328 { 1328 {
1329 if (audio_preload > 0.4) { 1329 if (audio_preload > 0.4) {
1330 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LimitingAudioPreload); 1330 mp_msg(MSGT_MENCODER, MSGL_WARN, MSGTR_LimitingAudioPreload);
1331 audio_preload = 0.4; 1331 audio_preload = 0.4;
1332 } 1332 }
1333 if (audio_density < 4) { 1333 if (audio_density < 4) {
1334 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_IncreasingAudioDensity); 1334 mp_msg(MSGT_MENCODER, MSGL_WARN, MSGTR_IncreasingAudioDensity);
1335 audio_density = 4; 1335 audio_density = 4;
1336 } 1336 }
1337 } 1337 }
1338 1338
1339 if(file_format == DEMUXER_TYPE_TV) 1339 if(file_format == DEMUXER_TYPE_TV)
1340 { 1340 {
1341 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_ZeroingAudioPreloadAndMaxPtsCorrection); 1341 mp_msg(MSGT_MENCODER, MSGL_WARN, MSGTR_ZeroingAudioPreloadAndMaxPtsCorrection);
1342 audio_preload = 0.0; 1342 audio_preload = 0.0;
1343 default_max_pts_correction = 0; 1343 default_max_pts_correction = 0;
1344 } 1344 }
1345 1345
1346 play_n_frames=play_n_frames_mf; 1346 play_n_frames=play_n_frames_mf;
1866 (mux_a->size+(mux_a->h.dwLength>>1))/mux_a->h.dwLength; 1866 (mux_a->size+(mux_a->h.dwLength>>1))/mux_a->h.dwLength;
1867 mux_a->h.dwLength=mux_a->size; 1867 mux_a->h.dwLength=mux_a->size;
1868 mux_a->h.dwRate=mux_a->wf->nAvgBytesPerSec; 1868 mux_a->h.dwRate=mux_a->wf->nAvgBytesPerSec;
1869 mux_a->h.dwScale=1; 1869 mux_a->h.dwScale=1;
1870 mux_a->wf->nBlockAlign=1; 1870 mux_a->wf->nBlockAlign=1;
1871 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_CBRAudioByterate, 1871 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_CBRAudioByterate,
1872 mux_a->h.dwRate,((MPEGLAYER3WAVEFORMAT*)(mux_a->wf))->nBlockSize); 1872 mux_a->h.dwRate,((MPEGLAYER3WAVEFORMAT*)(mux_a->wf))->nBlockSize);
1873 } 1873 }
1874 #endif 1874 #endif
1875 1875
1876 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_WritingAVIIndex); 1876 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_WritingAVIIndex);
1877 if (muxer->cont_write_index) muxer_write_index(muxer); 1877 if (muxer->cont_write_index) muxer_write_index(muxer);
1878 muxer_f_size=ftello(muxer_f); 1878 muxer_f_size=ftello(muxer_f);
1879 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_FixupAVIHeader); 1879 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_FixupAVIHeader);
1880 fseek(muxer_f,0,SEEK_SET); 1880 fseek(muxer_f,0,SEEK_SET);
1881 if (muxer->cont_write_header) muxer_write_header(muxer); // update header 1881 if (muxer->cont_write_header) muxer_write_header(muxer); // update header
1882 if(ferror(muxer_f) || fclose(muxer_f) != 0) { 1882 if(ferror(muxer_f) || fclose(muxer_f) != 0) {
1883 mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_ErrorWritingFile, out_filename); 1883 mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_ErrorWritingFile, out_filename);
1884 mencoder_exit(1, NULL); 1884 mencoder_exit(1, NULL);
1885 } 1885 }
1886 if(vobsub_writer) 1886 if(vobsub_writer)
1887 vobsub_out_close(vobsub_writer); 1887 vobsub_out_close(vobsub_writer);
1888 1888
1889 if(out_video_codec==VCODEC_FRAMENO && mux_v->timer>100){ 1889 if(out_video_codec==VCODEC_FRAMENO && mux_v->timer>100){
1890 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_RecommendedVideoBitrate,"650MB",(int)((650*1024*1024-muxer_f_size)/mux_v->timer/125)); 1890 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_RecommendedVideoBitrate,"650MB",(int)((650*1024*1024-muxer_f_size)/mux_v->timer/125));
1891 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_RecommendedVideoBitrate,"700MB",(int)((700*1024*1024-muxer_f_size)/mux_v->timer/125)); 1891 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_RecommendedVideoBitrate,"700MB",(int)((700*1024*1024-muxer_f_size)/mux_v->timer/125));
1892 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_RecommendedVideoBitrate,"800MB",(int)((800*1024*1024-muxer_f_size)/mux_v->timer/125)); 1892 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_RecommendedVideoBitrate,"800MB",(int)((800*1024*1024-muxer_f_size)/mux_v->timer/125));
1893 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_RecommendedVideoBitrate,"2 x 650MB",(int)((2*650*1024*1024-muxer_f_size)/mux_v->timer/125)); 1893 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_RecommendedVideoBitrate,"2 x 650MB",(int)((2*650*1024*1024-muxer_f_size)/mux_v->timer/125));
1894 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_RecommendedVideoBitrate,"2 x 700MB",(int)((2*700*1024*1024-muxer_f_size)/mux_v->timer/125)); 1894 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_RecommendedVideoBitrate,"2 x 700MB",(int)((2*700*1024*1024-muxer_f_size)/mux_v->timer/125));
1895 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_RecommendedVideoBitrate,"2 x 800MB",(int)((2*800*1024*1024-muxer_f_size)/mux_v->timer/125)); 1895 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_RecommendedVideoBitrate,"2 x 800MB",(int)((2*800*1024*1024-muxer_f_size)/mux_v->timer/125));
1896 } 1896 }
1897 1897
1898 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_VideoStreamResult, 1898 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_VideoStreamResult,
1899 (float)(mux_v->size/mux_v->timer*8.0f/1000.0f), (int)(mux_v->size/mux_v->timer), (int)mux_v->size, (float)mux_v->timer, decoded_frameno); 1899 (float)(mux_v->size/mux_v->timer*8.0f/1000.0f), (int)(mux_v->size/mux_v->timer), (int)mux_v->size, (float)mux_v->timer, decoded_frameno);
1900 if(sh_audio) 1900 if(sh_audio)
1901 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_AudioStreamResult, 1901 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_AudioStreamResult,
1902 (float)(mux_a->size/mux_a->timer*8.0f/1000.0f), (int)(mux_a->size/mux_a->timer), (int)mux_a->size, (float)mux_a->timer); 1902 (float)(mux_a->size/mux_a->timer*8.0f/1000.0f), (int)(mux_a->size/mux_a->timer), (int)mux_a->size, (float)mux_a->timer);
1903 1903
1904 if(sh_video){ uninit_video(sh_video);sh_video=NULL; } 1904 if(sh_video){ uninit_video(sh_video);sh_video=NULL; }
1905 if(demuxer) free_demuxer(demuxer); 1905 if(demuxer) free_demuxer(demuxer);
1906 if(stream) free_stream(stream); // kill cache thread 1906 if(stream) free_stream(stream); // kill cache thread
1984 static int lame_presets_set( lame_t gfp, int fast, int cbr, const char* preset_name ) 1984 static int lame_presets_set( lame_t gfp, int fast, int cbr, const char* preset_name )
1985 { 1985 {
1986 int mono = 0; 1986 int mono = 0;
1987 1987
1988 if (strcmp(preset_name, "help") == 0) { 1988 if (strcmp(preset_name, "help") == 0) {
1989 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LameVersion, get_lame_version(), get_lame_url()); 1989 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_LameVersion, get_lame_version(), get_lame_url());
1990 lame_presets_longinfo_dm( stdout ); 1990 lame_presets_longinfo_dm( stdout );
1991 return -1; 1991 return -1;
1992 } 1992 }
1993 1993
1994 1994
2085 2085
2086 return 0; 2086 return 0;
2087 2087
2088 } 2088 }
2089 else { 2089 else {
2090 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LameVersion, get_lame_version(), get_lame_url()); 2090 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_LameVersion, get_lame_version(), get_lame_url());
2091 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_InvalidBitrateForLamePreset); 2091 mp_msg(MSGT_MENCODER, MSGL_ERR, MSGTR_InvalidBitrateForLamePreset);
2092 return -1; 2092 return -1;
2093 } 2093 }
2094 } 2094 }
2095 2095
2096 2096
2097 2097
2098 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LameVersion, get_lame_version(), get_lame_url()); 2098 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_LameVersion, get_lame_version(), get_lame_url());
2099 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_InvalidLamePresetOptions); 2099 mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_InvalidLamePresetOptions);
2100 mencoder_exit(1, MSGTR_ErrorParsingCommandLine); 2100 mencoder_exit(1, MSGTR_ErrorParsingCommandLine);
2101 } 2101 }
2102 #endif 2102 #endif
2103 2103
2104 #if HAVE_MP3LAME >= 392 2104 #if HAVE_MP3LAME >= 392
2105 /* lame_presets_longinfo_dm 2105 /* lame_presets_longinfo_dm
2106 taken out of presets_longinfo_dm in lame-3.93.1/frontend/parse.c and modified */ 2106 taken out of presets_longinfo_dm in lame-3.93.1/frontend/parse.c and modified */
2107 static void lame_presets_longinfo_dm ( FILE* msgfp ) 2107 static void lame_presets_longinfo_dm ( FILE* msgfp )
2108 { 2108 {
2109 mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_LamePresetsLongInfo); 2109 mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_LamePresetsLongInfo);
2110 mencoder_exit(0, NULL); 2110 mencoder_exit(0, NULL);
2111 } 2111 }
2112 #endif 2112 #endif
2113 2113
2114 #ifdef USE_LIBAVCODEC 2114 #ifdef USE_LIBAVCODEC