Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Mad DTS jumps are observed sometimes at h264 encoder output

OTorg
New Contributor III
88 Views

mfxBitstream::DecodeTimeStamp of some encoded frames is ~22 minutes back from it's expected value.
It occurs under certain GopPicSize/GopRefDist/NumRefFrame/IdrInterval/PicStruct encoder initialization combinations.

For example, GopPicSize = 35, GopRefDist = 4, NumRefFrame = 3, IdrInterval = 1, progressive:
out frame 70, dts is incorrect by -1310.720 seconds;
out frame 140, dts is incorrect by -1310.720 seconds;
out frame 210, dts is incorrect by -1310.720 seconds;
out frame 280, dts is incorrect by -1310.720 seconds;
etc.

And more. Number of encoded frames is less than the number of input frames under certain initialization combinations (latter combinations don't correlate with dts-jump combinations).

x86 application, MFX_IMPL_SOFTWARE, imsdk 1.8, msvs2010 (with latest updates), i7-3770, win7x64.
Demo application is attached: imsdk_h264enc_dtsjump.zip

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
88 Views

Sorry for the delayed reply.  Thank you for your description and reproducer.  We're looking into this and will get back to you soon with updates.

Reply