Index: mencoder.c =================================================================== RCS file: /cvsroot/mplayer/main/mencoder.c,v retrieving revision 1.320 diff -u -r1.320 mencoder.c --- mencoder.c 21 Nov 2005 22:53:14 -0000 1.320 +++ mencoder.c 22 Nov 2005 00:27:53 -0000 @@ -1508,10 +1508,8 @@ if(aencoder->fixup) aencoder->fixup(aencoder); -mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_WritingAVIIndex); if (muxer->cont_write_index) muxer_write_index(muxer); muxer_f_size=ftello(muxer_f); -mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_FixupAVIHeader); fseek(muxer_f,0,SEEK_SET); if (muxer->cont_write_header) muxer_write_header(muxer); // update header if(ferror(muxer_f) || fclose(muxer_f) != 0) { Index: help/help_mp-en.h =================================================================== RCS file: /cvsroot/mplayer/main/help/help_mp-en.h,v retrieving revision 1.203 diff -u -r1.203 help_mp-en.h --- help/help_mp-en.h 16 Nov 2005 19:11:03 -0000 1.203 +++ help/help_mp-en.h 22 Nov 2005 00:27:53 -0000 @@ -241,7 +241,6 @@ #define MSGTR_EncoderOpenFailed "Failed to open the encoder.\n" #define MSGTR_ForcingOutputFourcc "Forcing output fourcc to %x [%.4s]\n" #define MSGTR_ForcingOutputAudiofmtTag "Forcing output audio format tag to 0x%x\n" -#define MSGTR_WritingAVIHeader "Writing AVI header...\n" #define MSGTR_DuplicateFrames "\n%d duplicate frame(s)!\n" #define MSGTR_SkipFrame "\nSkipping frame!\n" #define MSGTR_ResolutionDoesntMatch "\nNew video file has different resolution or colorspace than the previous one.\n" @@ -251,8 +250,6 @@ #define MSGTR_NoSpeedWithFrameCopy "WARNING: -speed is not guaranteed to work correctly with -oac copy!\n"\ "Your encode might be broken!\n" #define MSGTR_ErrorWritingFile "%s: Error writing file.\n" -#define MSGTR_WritingAVIIndex "\nWriting AVI index...\n" -#define MSGTR_FixupAVIHeader "Fixing AVI header...\n" #define MSGTR_RecommendedVideoBitrate "Recommended video bitrate for %s CD: %d\n" #define MSGTR_VideoStreamResult "\nVideo stream: %8.3f kbit/s (%d B/s) size: %d bytes %5.3f secs %d frames\n" #define MSGTR_AudioStreamResult "\nAudio stream: %8.3f kbit/s (%d B/s) size: %d bytes %5.3f secs\n" @@ -519,12 +516,21 @@ #define MSGTR_DVDsubtitleChannel "Selected DVD subtitle channel: %d language: %c%c\n" #define MSGTR_DVDopenOk "DVD successfully opened.\n" -// muxer_*.c: +// muxer.c, muxer_*.c: #define MSGTR_TooManyStreams "Too many streams!" #define MSGTR_RawMuxerOnlyOneStream "Rawaudio muxer supports only one audio stream!\n" #define MSGTR_IgnoringVideoStream "Ignoring video stream!\n" #define MSGTR_UnknownStreamType "Warning! unknown stream type: %d\n" #define MSGTR_WarningLenIsntDivisible "Warning! len isn't divisible by samplesize!\n" +#define MSGTR_MuxbufMallocErr "Muxer frame buffer cannot allocate memory!\n" +#define MSGTR_MuxbufReallocErr "Muxer frame buffer cannot reallocate memory!\n" +#define MSGTR_MuxbufSending "Muxer frame buffer sending %d frame(s) to muxer.\n" +#define MSGTR_WritingAVIHeader "Writing AVI header...\n" +#define MSGTR_WritingAVITrailer "Writing AVI index...\n" +#define MSGTR_WritingLAVFHeader "Writing libavformat container header...\n" +#define MSGTR_WritingLAVFTrailer "Writing libavformat container trailer...\n" +#define MSGTR_WritingMPEGHeader "Writing MPEG header...\n" +#define MSGTR_WritingMPEGTrailer "Finalizing MPEG file...\n" // demuxer.c, demux_*.c: #define MSGTR_AudioStreamRedefined "WARNING: Audio stream header %d redefined.\n" Index: libmpdemux/muxer.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpdemux/muxer.c,v retrieving revision 1.11 diff -u -r1.11 muxer.c --- libmpdemux/muxer.c 21 Nov 2005 22:53:14 -0000 1.11 +++ libmpdemux/muxer.c 22 Nov 2005 00:27:54 -0000 @@ -62,7 +62,7 @@ tmp = realloc(s->muxer->muxbuf, (num+1) * sizeof(muxbuf_t)); if(!tmp) { - mp_msg(MSGT_MUXER, MSGL_FATAL, "Muxer frame buffer cannot reallocate memory!\n"); + mp_msg(MSGT_MUXER, MSGL_FATAL, MSGTR_MuxbufReallocErr); return; } s->muxer->muxbuf = tmp; @@ -75,7 +75,7 @@ buf->flags = flags; buf->buffer = malloc(len * sizeof (unsigned char)); if (!buf->buffer) { - mp_msg(MSGT_MUXER, MSGL_FATAL, "Muxer frame buffer cannot allocate memory!\n"); + mp_msg(MSGT_MUXER, MSGL_FATAL, MSGTR_MuxbufMallocErr); return; } memcpy(buf->buffer, s->buffer, buf->len); @@ -91,11 +91,10 @@ if (s->muxer->muxbuf_skip_buffer) { muxbuf_t *tmp_buf = malloc(sizeof(muxbuf_t)); if (!tmp_buf) { - mp_msg(MSGT_MUXER, MSGL_FATAL, "Muxer frame buffer cannot allocate memory!\n"); + mp_msg(MSGT_MUXER, MSGL_FATAL, MSGTR_MuxbufMallocErr); return; } - mp_msg(MSGT_MUXER, MSGL_V, "Muxer frame buffer sending %d frame(s) to muxer.\n", - s->muxer->muxbuf_num); + mp_msg(MSGT_MUXER, MSGL_V, MSGTR_MuxbufSending, s->muxer->muxbuf_num); /* fix parameters for all streams */ for (num = 0; s->muxer->streams[num]; ++num) { @@ -105,7 +104,6 @@ } /* write header */ - mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingAVIHeader); if (s->muxer->cont_write_header) muxer_write_header(s->muxer); @@ -139,7 +137,7 @@ if(s->h.dwSampleSize){ // CBR s->h.dwLength+=len/s->h.dwSampleSize; - if(len%s->h.dwSampleSize) mp_msg(MSGT_MUXER, MSGL_WARN, "Warning! len isn't divisable by samplesize!\n"); + if(len%s->h.dwSampleSize) mp_msg(MSGT_MUXER, MSGL_WARN, MSGTR_WarningLenIsntDivisible); } else { // VBR s->h.dwLength++; Index: libmpdemux/muxer_avi.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpdemux/muxer_avi.c,v retrieving revision 1.32 diff -u -r1.32 muxer_avi.c --- libmpdemux/muxer_avi.c 21 Nov 2005 22:53:14 -0000 1.32 +++ libmpdemux/muxer_avi.c 22 Nov 2005 00:27:54 -0000 @@ -18,6 +18,7 @@ #include "aviheader.h" #include "ms_hdr.h" #include "mp_msg.h" +#include "help_mp.h" extern char *info_name; extern char *info_artist; @@ -277,6 +278,7 @@ struct avi_stream_info *vsi = muxer->def_v->priv; int isodml = vsi->riffofspos > 0; + mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingAVIHeader); if (aspect == 0) { mp_msg(MSGT_MUXER, MSGL_INFO, "ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.\n"); } else { @@ -642,6 +644,7 @@ static void avifile_write_index(muxer_t *muxer){ struct avi_stream_info *vsi = muxer->def_v->priv; + mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingAVITrailer); if (vsi->riffofspos > 0){ avifile_odml_write_index(muxer); } else { Index: libmpdemux/muxer_lavf.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpdemux/muxer_lavf.c,v retrieving revision 1.13 diff -u -r1.13 muxer_lavf.c --- libmpdemux/muxer_lavf.c 21 Nov 2005 22:53:14 -0000 1.13 +++ libmpdemux/muxer_lavf.c 22 Nov 2005 00:27:54 -0000 @@ -6,6 +6,7 @@ #include "config.h" #include "version.h" #include "mp_msg.h" +#include "help_mp.h" #include "bswap.h" #include "aviheader.h" @@ -266,9 +267,9 @@ { muxer_priv_t *priv = (muxer_priv_t *) muxer->priv; + mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingLAVFHeader); av_write_header(priv->oc); muxer->cont_write_header = NULL; - mp_msg(MSGT_MUXER, MSGL_INFO, "WRITTEN HEADER\n"); } @@ -277,8 +278,8 @@ int i; muxer_priv_t *priv = (muxer_priv_t *) muxer->priv; + mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingLAVFTrailer); av_write_trailer(priv->oc); - mp_msg(MSGT_MUXER, MSGL_INFO, "WRITTEN TRAILER\n"); for(i = 0; i < priv->oc->nb_streams; i++) { av_freep(&(priv->oc->streams[i])); Index: libmpdemux/muxer_mpeg.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpdemux/muxer_mpeg.c,v retrieving revision 1.23 diff -u -r1.23 muxer_mpeg.c --- libmpdemux/muxer_mpeg.c 21 Nov 2005 22:53:14 -0000 1.23 +++ libmpdemux/muxer_mpeg.c 22 Nov 2005 00:27:54 -0000 @@ -7,6 +7,7 @@ #include "config.h" #include "version.h" #include "mp_msg.h" +#include "help_mp.h" #include "bswap.h" @@ -2555,6 +2556,8 @@ double fake_timer; muxer_priv_t *priv = (muxer_priv_t *) muxer->priv; + mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingMPEGTrailer); + for(i = 0; i < muxer->avih.dwStreams; i++) { if(muxer->streams[i]->type == MUXER_TYPE_AUDIO) @@ -2572,6 +2575,8 @@ { muxer_priv_t *priv = (muxer_priv_t*) muxer->priv; + mp_msg(MSGT_MUXER, MSGL_INFO, MSGTR_WritingMPEGHeader); + priv->headers_cnt++; if((priv->is_genmpeg1 || priv->is_genmpeg2) && (priv->headers_cnt == muxer->avih.dwStreams))