[MPlayer-users] Feature Request: Get OSD Time as a Slave Command

mplayer mplayer at 2ndage.com
Tue Nov 15 19:29:15 CET 2011


ISSUE: 
The slave command get_time_pos returns the file timestamp, but for some file
formats the timestamp resets.  

SOLUTION (proposed): 
However, I noticed that the OSD time displayed is always good.  So why not
add a slave command 'get_osd_time' to expose the value the OSD is using to
display -- it appears to me that OSD just asks the demuxer for the current
time.

So this is what I think we'd need to add;

input.h
  MP_CMD_GET_OSD_TIME,

input.c
  { MP_CMD_GET_OSD_TIME, "get_osd_time", 0, { {-1,{0}} } },

command.c
  case MP_CMD_GET_OSD_TIME:
    mp_msg(MSGT_GLOBAL, MSGL_INFO, "ANS_OSD_TIME=%d\n", 
      demuxer_get_current_time(mpctx->demuxer));
    break;

If anyone could do this and release an updated windows binary package that
would be great!  I'm currently using the mplayer that comes with smplayer
"Sherpya-SVN-r30369-4.2.5".

FYI: Spent the better part of a week trying to get mplayer to compile in a
mingw environment on my windows XP development system.  Got as far as
mplayer compiling, but it does nothing, it sends a banner to stdout then
exits. So obviously I'm missing yet another library or option or whatever.

If anyone has a mingw environment that can successfully compile mplayer for
windows I'd really appreciate a 7z of your c:\mingw\ folder (assuming it's
all self contained?).  I'd be more than willing to make the changes and test
them.

Any help would be greatly appreciated, thanks!
JR






More information about the MPlayer-users mailing list