i have ogg format file containing opus frames. per requirement, need parse file (frames/packets), , send opus compressed data remote device through rtp.
my question in 1 rtp packet (assuming 48khz sampling rate)
1. 1 opus frame sent
2. or multiple opus frames sent
3. or 1 packet per ogg file format specification, may 1 frame, 2 frames or arbitrary number of frames sent
each opus rtp packet contains only 1 opus packet, defined opus specification. may contain more 1 opus frame internally, must have correct header bytes signal , conform other rules, make sure mean same thing spec "frame".
basically, want send each opus packet out of ogg file in own rtp packet. there's no packing @ rtp payload level. don't send id or comment headers in first 2 packets of .opus ogg stream, , of course need prepend rtp headers appropriate flags, timestamp , on.
see https://git.xiph.org/?p=opus-tools.git;a=blob;f=src/opusrtp.c#l517 toy implementation of this.
Comments
Post a Comment