Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
6628 Discussions

Cannot decode MPEG2 streams that don't have sequence start code

pushkar_p
Beginner
124 Views

Hi,

I have some streams that don't start with 0x00 00 01 B3 but with 0x 00 00 01 B8 (GOP start code). The MPEG2 video decoder fails to initialize because of this. All frames are starting with this code so the decoder never initializes.

umc_mpeg2_dec_pic.cpp:

Status MPEG2VideoDecoderBase::FindSequenceHeader(IppVideoContext *video)
{
Ipp32u code;
do {
GET_START_CODE(video->bs, code);
if(SEQUENCE_HEADER_CODE == code)
return (UMC_OK);
} while ( code != UMC_ERR_NOT_ENOUGH_DATA );

return UMC_ERR_NOT_ENOUGH_DATA;
}

I tried to modify the if to also return UMC_OK if it matches the GOP start code but no luck. Can someone tell me what could be the issue?

Thank you.

pushkar

0 Kudos
1 Reply
Vladimir_Dudnik
Employee
124 Views
I think the issue is that according MPEG stream specification it should have sequence start code and UMC splitter implementationrely on this. So you may need to develop your own splitter for that custom stream format (probably UMC implementation might be a good start point for that, but you are free to develop your own splitter from scratch).
Regards,
Vladimir

Reply