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

Live Streaming Decoding #12

Open
sberniz opened this issue May 23, 2020 · 7 comments
Open

Live Streaming Decoding #12

sberniz opened this issue May 23, 2020 · 7 comments

Comments

@sberniz
Copy link

sberniz commented May 23, 2020

Hi, does this have the option for live steram decoding?. I am in need of one. and this is the closest. but not sure if it works. Please let me know, and if you have sample code.
thanks

@anthumchris
Copy link
Owner

anthumchris commented May 23, 2020

If the stream is an Ogg Opus byte stream it should work. I think the internal opusfile lib requires the Ogg header page to be appended first. I haven't tried out-of-sequence Ogg Opus files. Have you seen the Opus example at fetch-stream-audio?

@sberniz
Copy link
Author

sberniz commented May 24, 2020 via email

@anthumchris
Copy link
Owner

Yes, it does client-side decoding. Happy to help, feel free to email me directly and I can make some time.

@adminy
Copy link

adminy commented Dec 3, 2020

Its too slow for streaming, I had to save the decoded frames into a list and play the audio with a delay.

@anthumchris
Copy link
Owner

anthumchris commented Dec 3, 2020

@adminy Have you seen the fetch-stream-audio example? You may consider posting a question on StackOverflow if you're encountering difficulties with your code so the community can possibly assist you.

@adminy
Copy link

adminy commented Dec 4, 2020

No thanks @anthumchris, I am sticking with libopus of course, but I don't need programming help.
I found out something new from fetch-stream-audio, which is constructing audio buffers ahead of time.
The reason I am saying it's slow is because I'm going to be using it in a voice call application, so for me the goal is to reduce latency as much as possible (dropping frames is normal), I think I'm almost there. I'll also be refactoring the code for mono channel sound.

As for the network infrastructure, it will be web sockets since it's a stream not a static file. So again, it is very important that I improve that latency.

@anthumchris
Copy link
Owner

Nice one! Sounds like a fun project.

Repository owner deleted a comment from guest271314 Nov 21, 2023
Repository owner deleted a comment from guest271314 Nov 21, 2023
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

3 participants