[MPlayer-dev-eng] [PATCH] More identify output

Ivo ivop at euronet.nl
Sun Aug 13 19:47:42 CEST 2006


Hi,

Attached are two small patches that improve the output of mplayer -identify. 
With a lot video files, things like the aspect ratio and the audio 
samplerate are not known until the first frame is decoded. Currently, 
mplayer prints those values anyway and they all end up being zero. These 
two patches print the right values when they are known.

I realise that one could call mplayer in slave mode instead and request the 
corresponding properties, but that is a bit slower and a lot more trouble 
for the calling application. Well, I did find a bug in the property code 
that way, but I still think mplayer -identify should print the correct 
values once they are known :).

Any objections against these patches?

--Ivo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: identify.corrected.aspect.diff
Type: text/x-diff
Size: 560 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060813/8f2ab2e1/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: identify.correct.audio.diff
Type: text/x-diff
Size: 641 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060813/8f2ab2e1/attachment-0001.diff>


More information about the MPlayer-dev-eng mailing list