Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KK
Beginner
84 Views

Decompression of MJPEG and MPEG4 using Intel Media SDK

Is it possible to do the MJPEG and MPEG4 decompression using Intel Media SDK 2013? if possible how we can do it?

0 Kudos
4 Replies
Roman_T_
New Contributor I
84 Views

Yes, its possible.

Try "sample decode" from Media SDK sample set.

Note, that Media SDK works only with elementary streams (for example H264 video track as a binary file). If you want to read video from containers (AVI, MKV or MP4) you have to use some additional splitter (for example FFMPEG).

Best regards,
Roman

KK
Beginner
84 Views

Hi Roman,

Thanks for reply . From your comment I can assume that if the input Video is MJPEG or MPEG4, Media SDK can't decompress .

Plese correct me If I am wrong

Surbhi_M_Intel
Employee
84 Views

Hi KK,

I believe by decompress you mean decoding a encoded bit stream like .h264 or .mpeg2 then you can use sample_decode to decode it to a yuv.
If you have a video in a container format like .avi or .mp4 please use ffmpeg or yamb tool to extract bit stream. Once you have a bit stream, use Media SDK to decode the bitstream.
Let me know if that doesn't answer your question and what kind of data you have. 

Thanks, 
-Surbhi

Roman_T_
New Contributor I
84 Views

Hi KK,

KK wrote:

Hi Roman,

Thanks for reply . From your comment I can assume that if the input Video is MJPEG or MPEG4, Media SDK can't decompress .

Plese correct me If I am wrong

I've just opened "sample_decode" source.

msdk_printf(MSDK_STRING("Usage: %s mpeg2|h264|h265|vc1|mvc|jpeg|vp8 -hevc_decoder_plugin ver -p PathToUserDecoderPlugin -i InputBitstream -o OutputYUVFile\n"), strAppName);

From source string above you can see that MJPEG compression is supported by MediaSDK. H264 part of MPEG4 is also supported. 

I don't know about MSDK decoding abilities of other parts of MPEG4 (it's a question for Intel engineers), but in any case you can try to do it with "sample_decode".

Best regards,
Roman

 

Reply