Wowza Community

need timecode for video frame in overlay

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.

Hello there and welcome to the Wowza support forum.

If you are still looking for a solution, consider opening a ticket with support (although they may suggest you) post a request to the find a consultant forum.

Regards,

Salvadore