Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

H264 Error Need More Data(-10)

Bob3
Beginner
377 Views

I amdecoding elementary H264 streams from RTSP IP Cameras.

I'm using a low latency model here where I put one frame in and expect one frame out. I feed the first IFrame and receive this error the need more data, after submitting a few P frames I start getting a 1 to 1 output.

I have confirmed through multiple programs the h264 is fine (no bit errors) and that I'm feeding exactly single frames. I have also done the following:

 

    mfxVideoParams.AsyncDepth = 1;
    mfxBS.DataFlag = MFX_BITSTREAM_COMPLETE_FRAME;

 

Are there any other settings I'm missing?

 

 

0 Kudos
1 Reply
Mark_L_Intel1
Moderator
377 Views

Hi Bob,

If you can't make one slice per frame, it would be hard to check the boundary. Normally, we rely on hardware to tell when it decodes, this means you have to keep feeding the decoder with bitstream, the async depth setting will force the decoder to output one frame each time it consume the one frame bitstream.

First you must check if you can run this with "sample_decode", when running the low latency mode, following arguments must be used:

-low_latency, -async, -calc_latency

After sample_decode works, you might check how the sample code to set the stream reader, you can check following code to see how sample code is configuring the stream reader:

https://github.com/Intel-Media-SDK/MediaSDK/blob/master/samples/sample_decode/src/pipeline_decode.cpp#L163

Mark

0 Kudos
Reply