I’m writing an transcoder overlay. In the TranscoderVideoDecoderNotifyBase::onBeforeScaleFrame() I need to get a timecode for the current video frame (or audio frame) to synchronize some events with what I’m drawing on the frame. I found a few functions that seem to provide this timecode, but all of them returned null:
TranscoderSessionVideo.peekPacket().packet.getAbsTimecode()
TranscoderSessionVideo.peekPacket().packet.getTimecode()
TranscoderSessionVideo.popScalerDecodedFrame().timecode
TranscoderStreamSourceVideo.getFrameInfo(frameCount).getExtraData()
What do I need to do to get the timecode for a frame? Not the frame count.