Embedded Intel® Core™ Processors
Communicate Intel® Core™ Hardware, Software, Firmware, Graphics Concerns
1267 Discussions

The Intel Media SDK is unable to decode a stream of raw H264 video from a camera. Is Media SDK suitable for streaming applications?

dmotw1
Beginner
1,659 Views

Hey,

 

I am trying to decode an H264 video stream coming in from the camera but I keep getting ERR_MORE_DATA and it is never able to reach to the decoding phase of the code.

 

Platform:

Intel Atom E3950 (Apollo Lake)

 

OS:

Ubuntu 16.04 LTS

 

Steps Taken:

The setup required to run the Media-SDK is done by following documentation:

https://software.intel.com/en-us/articles/build-and-debug-open-source-media-stack

 

I am also able to run the sample projects provided on git successfully. Specifically, the sample_decode example is able to take in the raw H264 file and spit out the YUV format. This makes me assume there is no issue with missing drivers from Intel.

 

I also pulled the "decode" sample from tutorial and was able to run that and used it as my reference which I found at the following link:

https://software.intel.com/en-us/articles/media-sdk-tutorials-for-client-and-server

 

I also read the steps required to setup the Media SDK on the following link:

https://software.intel.com/en-us/articles/framework-for-developing-applications-using-media-sdk

 

Problem:

But none of this works. When I run my code the MFXVideoSession_DecodeHeader(Session, &Bitstream, &Videoparam) returns ERR_MORE_DATA. The buffer that is being passed has around 32000 bytes of data, I was able to check this value in the debugger. And the code is never able to get to the point of decoding phase and stays stuck here.

 

How can I solve this problem?

I am not sure if the intel Media SDK supports real time decoding and I would like more insight on that too.

 

Note:

The API version that I am able to query in the code gives me that it has Version 1.28. The repository was cloned from github a month back.

 

Thanks in advance.

0 Kudos
8 Replies
Alberto_R_Intel
Employee
1,142 Views
dmotw1, Thank you for posting in the Intel® Communities Support. In order to get the most accurate assistance, please login and submit your inquiry in our: Intel® Resource and Design Center: https://www.intel.com/content/www/us/en/design/resource-design-center.html Or the Intel® Developer Zone: https://software.intel.com/en-us/media-sdk I move the thread to the proper community department for further assistance. Regards, Alberto R. Intel Customer Support Technician Under Contract to Intel Corporation
0 Kudos
dmotw1
Beginner
1,142 Views

Hey Alberto,

 

Thank you for your response.

 

Can you help me know where was this thread moved to. A link would be a great start. Also, if I need to post this to some other place, please let me know as the links above don't lead to the forums where I can ask such questions.

 

Regards,

Devang

0 Kudos
Alberto_R_Intel
Employee
1,142 Views
Hi dmotw1, You are very welcome. In reference to your question, the thread was moved to the "Embedded Products" department, since the type of processor that you are using is "Embedded", as you can confirm in here under "Essentials": https://ark.intel.com/content/www/us/en/ark/products/96488/intel-atom-x7-e3950-processor-2m-cache-up-to-2-00-ghz.html To be able to submit your inquiry in those links, you just need to create an account or sign in and then you will be able to post your question. Regards, Alberto R. Intel Customer Support Technician Under Contract to Intel Corporation
0 Kudos
dmotw1
Beginner
1,142 Views

Hey Alberto,

 

It looks like that this thread has already been moved to Embedded Products. Do I still need to do anything on my part for someone to respond to my question or just need to wait till they respond?

 

Thanks.

 

Regards,

Devang

0 Kudos
Alberto_R_Intel
Employee
1,142 Views
Hi dmotw1, Yes, please wait for their response, they should assist you in there. The other sites were offered as an alternative/option to submit your questions just in case you are interested in getting the information from them. Regards, Alberto R. Intel Customer Support Technician Under Contract to Intel Corporation
0 Kudos
CarlosAM_INTEL
Moderator
1,142 Views

​Hello, @dmotw1​:

 

Thank you for contacting Intel Embedded Community.

Could you please verify if this situation persists in any of the following Operating System (OS)?

- Windows* 10 Enterprise (64-bit).

- Windows* IoT Core (32/64-bit).

- Wind River 8 Linux distribution (64-bit).

- Yocto Project* BSP tool-based embedded Linux distribution (64-bit).

- Android (64-bit) Marshmallow PV April 17.

- Android O ETA target Q2 ’18.

- Wind River VxWorks* 7.

We appreciate your cooperation.

 

Best regards,

@Mæcenas_INTEL​. 

0 Kudos
dmotw1
Beginner
1,142 Views

Hey Maecenas_INTEL,

 

Thank you for your response. Unfortunately, I cannot. However, when I was trying to build the Yocto image, I am facing some errors and the build fails. I can try and verify this on Yocto if I am able to build the Yocto image. Where can I post the Yocto errors? If you could provide me the link to that I would be grateful.

 

Also, by the time I can run the Yocto, is there a way you can help me debug the situation on Ubuntu.

 

Regards,

Devang

0 Kudos
CarlosAM_INTEL
Moderator
1,142 Views

​Hello, @dmotw1​:

 

Thanks for your answer.

 

The Yocto's consultations should be addressed as a reference to the channels listed in the following websites:

 

https://www.yoctoproject.org/community/mailing-lists/

https://www.yoctoproject.org/community/

https://www.yoctoproject.org/about/contact/

 

Best regards,

@Mæcenas_INTEL​. 

0 Kudos
Reply