[Mplayer-cvslog] CVS: main configure,1.475,1.476 mencoder.c,1.129,1.130 mplayer.c,1.502,1.503
Arpi of Ize
arpi at mplayerhq.hu
Mon May 20 05:25:54 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv6187
Modified Files:
configure mencoder.c mplayer.c
Log Message:
big cosmetics patch, cleanup of messages printed by mplayer and libs.
some printf->mp_msg conversion, and some debug messages moved from warn/info to v/dbg2
mplayer's output is now shorter, readable and consistent
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.475
retrieving revision 1.476
diff -u -r1.475 -r1.476
--- configure 20 May 2002 00:01:14 -0000 1.475
+++ configure 20 May 2002 03:25:21 -0000 1.476
@@ -3734,6 +3734,9 @@
X11_INC = $_inc_x11
X11DIR = $_ld_x11
+# for libavcodec:
+SRC_PATH=.
+
# video output
X_LIB = $_ld_x11 $_ld_gl $_ld_dga $_ld_xv $_ld_vm $_ld_xinerama $_ld_mad $_ld_sock
GGI_LIB = $_ld_ggi
Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -r1.129 -r1.130
--- mencoder.c 17 May 2002 23:47:21 -0000 1.129
+++ mencoder.c 20 May 2002 03:25:21 -0000 1.130
@@ -637,8 +637,8 @@
mp_msg(MSGT_CPLAYER,MSGL_HINT, MSGTR_TryUpgradeCodecsConfOrRTFM,get_path("codecs.conf"));
mencoder_exit(1,NULL);
}
-mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s video codec: [%s] drv:%d prio:%d (%s)\n",
- video_codec?mp_gettext("Forcing"):mp_gettext("Detected"),sh_video->codec->name,sh_video->codec->driver,sh_video->codec->priority!=-1?sh_video->codec->priority:0,sh_video->codec->info);
+mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s video codec: [%s] drv:%d (%s)\n",
+ video_codec?mp_gettext("Forcing"):mp_gettext("Detected"),sh_video->codec->name,sh_video->codec->driver,sh_video->codec->info);
mp_msg(MSGT_CPLAYER,MSGL_INFO,"==========================================================================\n");
}
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.502
retrieving revision 1.503
diff -u -r1.502 -r1.503
--- mplayer.c 20 May 2002 01:00:51 -0000 1.502
+++ mplayer.c 20 May 2002 03:25:21 -0000 1.503
@@ -859,6 +859,7 @@
#endif
//---------------------------------------------------------------------------
+ mp_msg(MSGT_CPLAYER,MSGL_INFO,"\n");
if(filename) mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Playing, filename);
//==================== Open VOB-Sub ============================
@@ -1128,7 +1129,7 @@
mp_msg(MSGT_CPLAYER,MSGL_ERR,"Video: can't read properties\n");
sh_video=d_video->sh=NULL;
} else {
- mp_msg(MSGT_CPLAYER,MSGL_INFO,"[V] filefmt:%d fourcc:0x%X size:%dx%d fps:%5.2f ftime:=%6.4f\n",
+ mp_msg(MSGT_CPLAYER,MSGL_V,"[V] filefmt:%d fourcc:0x%X size:%dx%d fps:%5.2f ftime:=%6.4f\n",
demuxer->file_format,sh_video->format, sh_video->disp_w,sh_video->disp_h,
sh_video->fps,sh_video->frametime
);
@@ -1238,7 +1239,7 @@
}
if(audio_codec && strcmp(sh_audio->codec->name,audio_codec)) continue;
else if(audio_family!=-1 && sh_audio->codec->driver!=audio_family) continue;
- mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s audio codec: [%s] drv:%d (%s)\n",
+ mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s audio codec: [%s] afm:%d (%s)\n",
audio_codec?mp_gettext("Forcing"):mp_gettext("Detected"),sh_audio->codec->name,sh_audio->codec->driver,sh_audio->codec->info);
break;
}
@@ -1252,8 +1253,10 @@
mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CouldntInitAudioCodec);
sh_audio=d_audio->sh=NULL;
} else {
- mp_msg(MSGT_CPLAYER,MSGL_INFO,"AUDIO: srate=%d chans=%d bps=%d sfmt=0x%X ratio: %d->%d\n",sh_audio->samplerate,sh_audio->channels,sh_audio->samplesize,
- sh_audio->sample_format,sh_audio->i_bps,sh_audio->o_bps);
+ mp_msg(MSGT_CPLAYER,MSGL_INFO,"AUDIO: %d Hz, %d ch, sfmt: 0x%X (%d bps), ratio: %d->%d (%3.1f kbit)\n",
+ sh_audio->samplerate,sh_audio->channels,
+ sh_audio->sample_format,sh_audio->samplesize,
+ sh_audio->i_bps,sh_audio->o_bps,sh_audio->i_bps*8*0.001);
}
}
@@ -1309,8 +1312,8 @@
goto main; // exit_player(MSGTR_Exit_error);
}
-mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s video codec: [%s] drv:%d prio:%d (%s)\n",
- video_codec?mp_gettext("Forcing"):mp_gettext("Detected"),sh_video->codec->name,sh_video->codec->driver,sh_video->codec->priority!=-1?sh_video->codec->priority:0,sh_video->codec->info);
+mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s video codec: [%s] vfm:%d (%s)\n",
+ video_codec?mp_gettext("Forcing"):mp_gettext("Detected"),sh_video->codec->name,sh_video->codec->driver,sh_video->codec->info);
mp_msg(MSGT_CPLAYER,MSGL_INFO,"==========================================================================\n");
if(auto_quality>0){
@@ -1399,10 +1402,10 @@
if(sh_audio){
const ao_info_t *info=audio_out->info;
current_module="setup_audio";
- mp_msg(MSGT_CPLAYER,MSGL_INFO,"AO: [%s] %iHz %s %s\n",
+ mp_msg(MSGT_CPLAYER,MSGL_INFO,"AO: [%s] %iHz %dch %s\n",
info->short_name,
force_srate?force_srate:sh_audio->samplerate,
- sh_audio->channels>1?"Stereo":"Mono",
+ sh_audio->channels,
audio_out_format_name(sh_audio->sample_format)
);
mp_msg(MSGT_CPLAYER,MSGL_V,"AO: Description: %s\nAO: Author: %s\n",
@@ -2962,6 +2965,8 @@
}
goto_next_file: // don't jump here after ao/vo/getch initialization!
+
+mp_msg(MSGT_CPLAYER,MSGL_INFO,"\n");
if(benchmark){
double tot=video_time_usage+vout_time_usage+audio_time_usage;
More information about the MPlayer-cvslog
mailing list