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.

How to change encoder's base pts-dts shift?

New Contributor III

Consider a scenario when need to join (at idr points) two h264-encoded segments (produced by different codecs). There should be no gap by pts nor by dts at the junction point.
imsdk h264 encoder always produce first encoded frame's dts = minimal_input_pts - 80ms (-2 frames at 25 fps rate), except low-delay I/P-only configurations with zero shift.
Is there a way to instruct encoder to make base shift (on idr frame) equal to -1 or -3 frames, e.g.? I tried to play with the different encoder settings (GopRefDist, NumRefFrame, InitialDelayInKB, etc), but always got -2 frames delta...

0 Kudos
0 Replies