Discussion:
[MPlayer-users] osdlevel regression/bug/bad behaviours
Sebastien WILLEMIJNS
2015-02-15 21:59:01 UTC
Permalink
Hello,

I have windows version r37368 compiled by
http://oss.netfarm.it/mplayer-win32.php

first kind of bug:
With an old version (begin or mid-2014) of MPLAYER, i saw
reminded/elapsed time of an audio file, now i only see an % not more
(see the last line of my screentext shot below, how to do that ?

d:\>d:\mplayer\mplayer.exe blahblah.wma -osdlevel 3 -osd-duration 1000
MPlayer sherpya-r37368+g52f2adc-4.9.2 (C) 2000-2015 MPlayer Team
203 audio & 423 video codecs

Playing d:\blahblah.wma.
libavformat version 56.19.100 (internal)
ASF file format detected.
[asfheader] Audio stream found, -aid 1
Clip info:
title: Track 2
Load subtitles in d:\
Load subtitles in d:/sub/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 56.21.102 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 128.0 kbit/4.54% (ratio: 16002->352800)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Position: 6 %

*************************************************************************************************************************************************************

second kind of bug with 2 illogic behaviours:
- i tried "mplayer.exe d:\blahblah.wma -osdlevel 3 -osd-duration 1000"
with an audio file, the % was displayed 1s as expected, osd-dfuration
with 100 or 10000 give good behaviour, of course as explained above only
see %
- i tried "mplayer.exe d:\blahblah.mp4 -osdlevel 3 -osd-duration 1000"
with a video file, osdlevel 3 gives the whole time elapsed/remained time
+ %
but osd-duration parameter is not used during this time...

please check these 3 behaviours ;)
Reimar Döffinger
2015-02-17 17:28:57 UTC
Permalink
Post by Sebastien WILLEMIJNS
Hello,
I have windows version r37368 compiled by
http://oss.netfarm.it/mplayer-win32.php
With an old version (begin or mid-2014) of MPLAYER, i saw
reminded/elapsed time of an audio file, now i only see an % not more
(see the last line of my screentext shot below, how to do that ?
-osdlevel never had any effect on the text OSD.
The overall duration is however always displayed in the status line
for audio-only files:
A: 9.5 (09.5) of 13.9 (13.9) 0.5% 2%
Post by Sebastien WILLEMIJNS
- i tried "mplayer.exe d:\blahblah.wma -osdlevel 3 -osd-duration 1000"
with an audio file, the % was displayed 1s as expected, osd-dfuration
with 100 or 10000 give good behaviour, of course as explained above only
see %
- i tried "mplayer.exe d:\blahblah.mp4 -osdlevel 3 -osd-duration 1000"
with a video file, osdlevel 3 gives the whole time elapsed/remained time
+ %
but osd-duration parameter is not used during this time...
Well, osd-duration implementation takes the documentation very
literally.
It is only applied to OSD messages.
I guess the below patch might make sense, but I'm not sure it
does quite what you want:
--- a/mplayer.c
+++ b/mplayer.c
@@ -1518,7 +1518,7 @@ void set_osd_bar(int type, const char *name, double min, double max, double val)
return;

if (mpctx->sh_video) {
- osd_visible = (GetTimerMS() + 1000) | 1;
+ osd_visible = (GetTimerMS() + osd_duration) | 1;
vo_osd_progbar_type = type;
vo_osd_progbar_value = 256 * (val - min) / (max - min);
vo_osd_changed(OSDTYPE_PROGBAR);
Sebastien WILLEMIJNS
2015-02-17 22:05:42 UTC
Permalink
Post by Reimar Döffinger
Post by Sebastien WILLEMIJNS
Hello,
I have windows version r37368 compiled by
http://oss.netfarm.it/mplayer-win32.php
With an old version (begin or mid-2014) of MPLAYER, i saw
reminded/elapsed time of an audio file, now i only see an % not more
(see the last line of my screentext shot below, how to do that ?
-osdlevel never had any effect on the text OSD.
The overall duration is however always displayed in the status line
A: 9.5 (09.5) of 13.9 (13.9) 0.5% 2%
i have not this information on the last release i use now, dunno why it
dissapears.....

*********************************************************************************************
MPlayer sherpya-r37368+g52f2adc-4.9.2 (C) 2000-2015 MPlayer Team
203 audio & 423 video codecs

Playing D:\SENSATIONS Paris (1).aac.
libavformat version 56.19.100 (internal)
libavformat file format detected.
[aac @ 015799e0]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: audio (aac), -aid 0
Load subtitles in D:\
Load subtitles in D:/mplayer/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 56.21.102 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 86.6 kbit/3.07% (ratio: 10831->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4
Audio))
==========================================================================
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
********************************************************************************************************************************
Post by Reimar Döffinger
Post by Sebastien WILLEMIJNS
- i tried "mplayer.exe d:\blahblah.wma -osdlevel 3 -osd-duration 1000"
with an audio file, the % was displayed 1s as expected, osd-dfuration
with 100 or 10000 give good behaviour, of course as explained above only
see %
- i tried "mplayer.exe d:\blahblah.mp4 -osdlevel 3 -osd-duration 1000"
with a video file, osdlevel 3 gives the whole time elapsed/remained time
+ %
but osd-duration parameter is not used during this time...
I guess the below patch might make sense, but I'm not sure it
tks but i'm not able to compile myself...

EDIT: i've just found http://mplayerwin.sourceforge.net/ and i can see
elapsed/remained time
what is the library they use on this version which permit to see the
time now ???

**********************************************************************************************************************************
Creating config file: D:/mplayer/config
MPlayer Redxii-SVN-r37370-4.9.2 (i686) (C) 2000-2015 MPlayer Team
FFmpeg version: N-69658-g03cecf4
Build date: 2015-02-08 19:01:52 EST
Fontconfig error: Cannot load default config file
Playing 1214410.wma.
libavformat version 56.19.100 (internal)
ASF file format detected.
[asfheader] Audio stream found, -aid 1
Clip info:
title: Track 2
Load subtitles in ./
Load subtitles in D:/mplayer/sub/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 56.21.102 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 128.0 kbit/4.54% (ratio: 16002->352800)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
A: 2.0 (01.9) of 1664.6 (27:44.5) 0.1%
***************************************************************************************************************************************************

Technical Info
MPlayer is built with the following features enabled:
Input: dvdnav ftp live555 cddb cdda dvdread(external) bluray vcd
networking
Codecs: libvpx x264 xvid libopencore_amrwb libopencore_amrnb
ffmpeg(internal) libopus ilbc faad2 libdca liba52 mpg123 libtheora
libgsm speex libvorbis twolame libmad liblzo gif
Audio output: dsound win32 sdl mpegpes(file)
Video output: directx direct3d matrixview opengl sdl gif89a pnm jpeg mng
mpegpes(file) caca yuv4mpeg md5sum tga

Loading...