[MPlayer-dev-eng] Patch to display the start time of a media file with -identify

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Jun 7 22:02:07 CEST 2010


On Mon, Jun 07, 2010 at 09:28:52AM -0600, Kevin DeKorte wrote:
> On 06/06/2010 08:05 AM, Reimar Döffinger wrote:
> > On Sun, Jun 06, 2010 at 07:21:53AM -0600, Kevin DeKorte wrote:
> >>>> +  if (pts > 0)
> >>>> +     mp_msg(MSGT_IDENTIFY,MSGL_INFO,"ID_START_TIME=%.2lf\n", pts);
> >>>
> >>> Negative start pts is completely valid.
> >>> You have to special-case MP_NOPTS_VALUE instead though.
> >>
> >> With the example file I am getting MP_NOPTS_VALUE as the return value
> >> for ds_get_next_pts. So that doesn't seem to work.
> > 
> > Fixed. ds_get_packet_pts does not work, not even remotely, it will
> > throw away the whole first packet!
> > If you had tried a case where it was actually used on the video stream
> > it would have been very obvious.
> > 
> 
> Any possibility of accepting this patch? I believe it addresses all your
> concerns.

Not really, however I did the final shuffling around on my own.
Due to the video parsing it does unfortunately not work for
your sample file with -nosound.



More information about the MPlayer-dev-eng mailing list