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
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.
3058 Discussions

Non-monotonous DecodeTimeStamp for h264 hardware accelerated encoder


Hi, all

I use qsv h264 encoder to encode frames, but sometimes MFXVideoCORE_SyncOperation() create non-monotonous bs.DecodeTimeStamp, which means current dts same as or less than last dts.

After a lot of tests, I found that if the frame rate which feed to MFXVideoENCODE_EncodeFrameAsync() is not strictly same as FrameRateExtN/FrameRateExtD can cause the problem.

Here is a code snippet can cause the problem every ten frames:

static int64_t frame_count = 0;
if (frame) {
    if (frame_count % 10 == 0) {
        return 0;

// do h264 hardware accelerated encoding


0 Kudos
0 Replies