[MPlayer-dev-eng] MSGTR messages for vid/aid in non-verbose output?
Diego Biurrun
diego at biurrun.de
Mon Dec 4 09:54:23 CET 2006
On Sun, Dec 03, 2006 at 05:56:25PM +0300, Andrew Savchenko wrote:
> On 2 Dec 2006 23:44, Diego Biurrun wrote:
> > On Tue, Nov 21, 2006 at 03:03:53PM +0300, Andrew Savchenko wrote:
> > > How about to add messages about found vid/aid numbers to
> > > standart (non-verbose) mplayer output? for examle:
> > > "video stream detected, vid %d"
> > > "audio stream detected, aid %d"
> > > regardless to the container format.
> ...
> > > I can make appropriate patch, if this will be allowed.
> >
> > Such a patch would be very much welcome. Especially for AVI
> > files we currently do not print any hint that it may contain
> > multiple audio tracks. AFAIK all other demuxers do, though.
>
> I've made a quick overview in libmpdemux/* and it seems that not
> only AVI demuxer won't print non-verbose messages about different
> streams. The only demuxers providing such information are demux_ogg
> and demux_mkv. Correct me if I'm wrong.
AFAIK you are right.
> So my suggestion is to add appropriate messages directly into
> demuxer.c, so they will be uniform despite of the demuxer type.
> IMHO this will be usefull to user. OTOH this may make an overhead
> of usefull information in the cases when format's dexuxer provides
> this information also (such as demux_ogg and demux_mkv). Therefore
> must be some check for demuxer type in order to realize necessity
> of such message. I made this check to skip printing message in the
> case of ogg or mkv demuxer.
The patch seems OK for a first draft, but the special-casing for Ogg and
Matroska is ugly. Possibly those two demuxers need to be adapted.
> Well, patch attached. The second one is russian translation for new
> messages.
You can leave out the Russian translation for now, this will be taken
care of later.
> BTW, I have noticed that there are a lot of translatable messages
> with level below MSGL_V in libmpdemux/* (and in MPlayer code in
> general) which are not present in master file help/help_mp-en.h
> and are not translated. Is it ok to start extracting them into
> help_mp-en.h?
IMO yes.
Diego
More information about the MPlayer-dev-eng
mailing list