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

Play Raw OPUS. #609

Open
elshnkhll opened this issue Nov 13, 2023 · 4 comments
Open

Play Raw OPUS. #609

elshnkhll opened this issue Nov 13, 2023 · 4 comments
Labels

Comments

@elshnkhll
Copy link

elshnkhll commented Nov 13, 2023

Thanks for GREAT work and countless hours invested into this unique project.

I am receiving raw OPUS packets (~120 byte) on a port of ESP32 every 20ms. Packets are not wrapped (no MP3 or OGG). First byte (TOC) is F4 = 11110100, meaning they are in CELT mode, stereo and 1 frame per packet, 48000 sample rate. Is it feasible to adapt your code to play this kind of stream?

Thanks in advance.
With wishes of success.

@schreibfaul1
Copy link
Owner

I don't know that exactly. Do you have an example of such a file?

@elshnkhll
Copy link
Author

elshnkhll commented Nov 25, 2023

It is not a file. I am getting UDP packets delivered to a port of ESP32. Similar to RTSP, but without any headers. Here is a payload example extracted from the event.data of a single event:

0010: f4 07 1b 7c e7 ec a4 5f ce 40
0020: 90 38 c2 7e 5d e0 99 9c 73 bc 45 8b fb 45 56 fb
0030: 6b 8d d5 df 30 b2 bb a1 dd a5 9b c1 5a 68 ae 0c
0040: f5 97 0c d0 3f 2e ec f7 f1 54 90 c3 c7 7b 71 ef
0050: c9 ec 53 d2 e0 58 91 8d 85 60 55 f7 92 35 99 fe
0060: a0 d3 0c 52 f7 ab 4e 19 20 01 ed 1b c5 f4 03 1b
0070: 3f b3 7c 97 8b 9e d2 36 d2 cf ce 43 e2 d7 9e 58
0080: f3 4b 05 a4 14 01 b7 32 19 ad

Copy link

github-actions bot commented Jan 6, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 6, 2024
@kulikalov
Copy link

@elshnkhll did you figure this out?

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

No branches or pull requests

3 participants