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.

Decode MPEG2 Low delay

Atsushi_S_
Beginner
559 Views

Hello.

I am developing MPEG 2 Decoder with Intel Media Sdk.

I try to decode MPEG 2 Frame which contain Intral Slice.

But I can't decode it.

The frame is always P-Frame.

MPEG2 Seauence Header have low_delay flag.

The frame flag is ture.

Is it posible to decode such a frame?

If not, is there plan to improve ?

Thank you.

0 Kudos
5 Replies
Sravanthi_K_Intel
559 Views

Hello there,

Thanks for the question. The short answer - We decode every stream that confirms to the spec.

I tried to reproduce the problem you are seeing by decoding a stream with 1 I-frame, and (N-1) P-frames - so effectively a low delay mpeg2 stream. Our decoder decodes this stream without any issue.

You seem to have stumbled upon a corner case or a stream that is non-conforming. Can you please send us the stream you are testing with so that we can reproduce the issue and fix it? That would be very helpful. Also, if you used one of the samples/tutorials with modifications for the decode, please send us the code is possible.

Sending us your test stream will be extremely helpful. Thanks.

0 Kudos
Atsushi_S_
Beginner
559 Views

Hello SRAVANTHI

I attached stream data.

I try to decode it with Direct Show Decode Filter.

I can decode it with FFDShow and Microsoft DTV-DVD Video Decoder.

But I can't decode it with Intel R Media SDK MPEG2 Decoder.

Please investigate stream data.

Thank you.

0 Kudos
Sravanthi_K_Intel
559 Views

Hello there,

I tried your test stream with our decoder, and yes, the decoder stream is not generated. The decoder is always looking for a reference frame or so and does not decode. Our decoder expects at least one key frame at the beginning, as acc to the spec.

Having said that, I will perform a couple more experiments and get back to you with more details. For now, we need at least one ref frame (my example with one I-frame and 100s or P-frames decoded fine). 

For my knowledge - why is it that your video stream has no key/ref frame?

0 Kudos
Atsushi_S_
Beginner
559 Views

Hello, SRAVANTHI

Thank you for your Test.

Yes, my stream has only P-Frame.

But, that's P-Frame always contain I-Slice.

The format is called "Intra Slice".

I-Frame is made from  some I-Slices.

In order to decode I-Frame, decoder need to gather I-Slice of P-Frame.

This format is mpeg2 specific.

Thak you.

0 Kudos
Sravanthi_K_Intel
559 Views

Hello there,

Thank you for the extra information. I have referred your question to our dev team and other experts - will get back to you when we have something.

0 Kudos
Reply