HydrogenAudio

Lossy Audio Compression => Opus => Topic started by: DorianN on 2022-11-03 10:32:34

Title: OpusOgg Timestamp
Post by: DorianN on 2022-11-03 10:32:34
Hello,

I'm developping my own RTMP solution with PortAudio, LibOpus and LibOgg (in C++).

I get the audio with PortAudio, I encode it with Opus and I package it with Ogg.

When I send my ogg buffer in RTMP server, it plays it very well. Instead for the listeners, the stream always start at position 0 (the very beginning). So if someone joins the stream after 1 minute, he will have 1 minute latency, because he will start the stream from the very beginning.

How to specify the timestamp in Ogg File Opus Encoding ? Is there anything to add in Ogg header or Opus header ?

Thanks