Community
cancel
Showing results for 
Search instead for 
Did you mean: 
trustno1
Beginner
71 Views

sample_decode won't decode h264 header

Hello everybody,

I've recently started to work on a h264 streaming decoder and renderer. As I'm quite a beginner in those fields,I downloaded the Intel Media SDK code samples to figure out how it basically works. The sample_decode project seemed to be the perfect sample for me. However, when I try to use it, it keep looping infinitely in the InitMfxParams method found in pipeline_decode.cpp

After some debugging and investigations, I found out that the header decoding is failing.

On line 626, this always return MFX_ERR_MORE_DATA, which causes the endless loop.

  sts = m_pmfxDEC->DecodeHeader(&m_mfxBS, &m_mfxVideoParams);

I am using the following args : h264 -i s.mp4 -low_latency -r

With "s.mp4" being a h264 video file found here : http://www.h264info.com/clips.html

I am developing on Windows 10, VS2015. HD Graphics 530 with the latest drivers.

Do you have any idea of what's going wrong?

Thanks

 

0 Kudos
1 Reply
Mark_L_Intel1
Moderator
71 Views

Hi,

The sample app of the Media SDK only parses the elementary stream format of the video, the mp4 file in your example is the container of  multiple streams. To get the ES, you can use ffmpeg to demux the input file.

Mark

Reply