Index: DOCS/tech/slave.txt =================================================================== --- DOCS/tech/slave.txt (revision 32105) +++ DOCS/tech/slave.txt (working copy) @@ -513,6 +513,7 @@ length time X length of file in seconds percent_pos int 0 100 X X X position in percent time_pos time 0 X X X position in seconds +start_time time X file start time in seconds metadata str list X list of metadata key/value metadata/* string X metadata values volume float 0 100 X X X change volume Index: command.c =================================================================== --- command.c (revision 32105) +++ command.c (working copy) @@ -445,6 +445,13 @@ mpctx->audio_out)); } +/// Stream start time in seconds (RO) +static int mp_property_stream_start_time(m_option_t *prop, int action, + void *arg, MPContext *mpctx) +{ + return m_property_double_ro(prop, action, arg, start_pts); +} + /// Current chapter (RW) static int mp_property_chapter(m_option_t *prop, int action, void *arg, MPContext *mpctx) @@ -2088,6 +2095,8 @@ M_OPT_RANGE, 0, 100, NULL }, { "time_pos", mp_property_time_pos, CONF_TYPE_TIME, M_OPT_MIN, 0, 0, NULL }, + { "start_time", mp_property_stream_start_time, CONF_TYPE_DOUBLE, + M_OPT_MIN, 0, 0, NULL }, { "chapter", mp_property_chapter, CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL }, { "chapters", mp_property_chapters, CONF_TYPE_INT,