Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple OPUS Frame sizes (5ms) #32

Open
benbullnz opened this issue Sep 17, 2021 · 0 comments
Open

Support multiple OPUS Frame sizes (5ms) #32

benbullnz opened this issue Sep 17, 2021 · 0 comments

Comments

@benbullnz
Copy link

Hi,

I'm wondering if it is possible to support OPUS encoded audio with different opus frame sizes.
At the moment RTSPtoWebRTC has issues with anything other than 20ms frame sizes, and i'm wondering if this is hard coded in VDK as per this line in codec.go?

func (self OpusCodecData) PacketDuration(data []byte) (time.Duration, error) {
return time.Duration(20) * time.Millisecond, nil
}

Below are two audio only streams encoded with 20ms and 5ms opus frame sizes. Both streams play fine in ffplay/gst-launch.

rtsp://35.213.221.96:554/test // (20ms)
rtsp://35.213.221.96:554/test_5 // (5ms)

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant