locked
Wrong timestamp after seeking h.264 MTS file with Source Reader

    Question

  • I'm using the Source Reader to decode h.264 M2TS video files in a metro style app. Decoding a file frame by frame works fine, but if I want to seek, the timestamp given by the next call to IMFSourceReader::ReadSample is wrong and in most cases it is later than the seeked position. It doesn't matter whether the seek position is later or earlier than the actual position, the timestamp given by ReadSample grows always, although the read sample seems to be the correct one.

    It seems to be a bug in the M2TS Media Source because I have also tried AVI files with h.264 codec and these files were handled correct by the Source Reader.

    What can I do to solve or workaround this problem ?
    Tuesday, May 08, 2012 7:57 AM

Answers

  • Hello AnKer8,

    This is actually a know issue with MPEG2 transport streams. We are aware of this issue and are working to resolve it in future versions of the product. If you find that the issue still reproduces in the next version please let us know as soon as you can.

    Thanks much,

    James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Wednesday, May 09, 2012 10:10 PM
    Moderator

All replies

  • Hello,

     

    Would  you please upload the sample project to skydriver, also with the media file which can reproduce this issue.

    http://skydrive.live.com/

     

    It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, May 09, 2012 10:42 AM
  • Hello AnKer8,

    This is actually a know issue with MPEG2 transport streams. We are aware of this issue and are working to resolve it in future versions of the product. If you find that the issue still reproduces in the next version please let us know as soon as you can.

    Thanks much,

    James


    Windows Media SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Wednesday, May 09, 2012 10:10 PM
    Moderator