Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: OpusOgg Timestamp (Read 1571 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

OpusOgg Timestamp

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