Menu

#892 Missing data when working with stream of buffers

Incorrect_result
open
mpeg4 (1)
3
2020-01-09
2015-02-02
No

I am working with incoming buffers to fetch metadata from video files.
Below are the options set for MediaInfo object

    m_MI.Option(__T("Complete"), __T("1"));
    m_MI.Option(__T("File_IsSeekable"), __T("0"));

But even after I get status as finished(0x08), the data is incomplete (particularly for mp4 files).

OS : Ubuntu Linux 14.04
MediaInfo Lib version : 0.7.72 (Built from source)
Unicode : Yes

Discussion

  • Manuel Laggner

    Manuel Laggner - 2020-01-09

    I am facing the same problem via Java: If I stream buffered data into libmediainfo using 64kb buffers, the Text-stream will not be found (does not care if I enable/disable seeking). But if I increase the buffer size from 64kb to 512kb the text streams are found!

    I am doing my tests with a .m2ts file here

    EDIT: using libmediainfo 19.09 here

     

    Last edit: Manuel Laggner 2020-01-09
  • Manuel Laggner

    Manuel Laggner - 2020-01-09

    Just found a little bug here - the stream was missing the first 32*2048 byte and this offset was enough that MI could not find the Text-stream with 64kb chunks; the funny thing is that with 512kb chunks MI was able to find the Text-stream even with the offset from my bug.

    maybe this helps a bit

     

Log in to post a comment.