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.

Some files cause smeared artifacts

jamesterm
Beginner
437 Views

I have attached a raw annex-b h264 file that contains a 960x720 video. When using the sample decode on this file, the YUV output shows smeared artifacts as if it never found any good I-frames.

I have about 65-75% confidence in the validity of the dump itself, and I'll continue to pursue verifing it. The original source (MP4 avcc) has been confirmed to be correct and does not produce these artifacts.

I have used this same technique on other MP4 clips with success, but so far the two clips I've found that exhibit this symptom are cartoonish and most likely have a very high compression ratio.

So now it boils down to either the avcc->annexb conversion (in my code)has a bug, or if this dump is valid, there may be somenew stress presented to the decoder to exhibit symptom. I am hoping to pinpoint which it is by the end of the day. (I'll post back once I know)
0 Kudos
4 Replies
jamesterm
Beginner
437 Views
Here is another file... this one is real footage and is 320x192 (180 cropy). The sample decode will generate 127 frames. Hopefully this will give some contrast in comparison to the first file.
0 Kudos
jamesterm
Beginner
437 Views
Ok I am suspecting the problem is with the AVCC->Annex B conversion... Testing raw dump with VLC yields main error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR.

For now I'll assume it is a problem with the conversion, and i'll update once I know for sure.

0 Kudos
IDZ_A_Intel
Employee
437 Views
Hi,

We did a quick test here on our side also. The elementary stream clips you provided definitely seem broken. For instance, the artifacts are clearly visible when playing/analyzing the stream using Elecard StreamEye or XMuxer Pro.

Regards,
Petter
0 Kudos
jamesterm
Beginner
437 Views
Yes,it turns out some of the frame packetswere being truncated (e.g. not adding the SPS PPS size into consideration)... I have fixed this problem within my code. Thanks for testing. Next Time, I have 3 different test tools in place to confirm failure, before it needs to be escalated here. ;)

0 Kudos
Reply