anthumchris / fetch-stream-audio

Low Latency web audio playback examples for decoding audio streams in chunks with Fetch & Streams APIs

Home Page:https://fetch-stream-audio.anthum.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

save opus packet to ogg container

vinnitu opened this issue · comments

Hello!

I know it is off-topic. But it is related.

I have opus packets which is merged from 2 frames.
Size of packet can be great than 255 byte (max segment size in ogg page)
I can split this packet into two packets with single frame and save each in separated segment.

But... Can we simple split packet into parts\chunks 255 bytes + last part less then 255
ang put it in sequence segments into ogg page?

It doesnt work to me (maybe incorrect code). But I am interesting how to handle it properly? We really need to repack doubled packets to separated packet? or not?

Sorry for my bad english.

Hey there. I apologize for not being able to answer, but I wanted to respond as quickly as possible. I would recommend StackOverflow for any questions relating Ogg that are not specific to the code in this repository

thank you