-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Can support aac codes, which payloadtype=104? #1888
Comments
the number "104" seems is dynamic, but it can be identify by "MPEG4-GENERIC" |
Hey @yourchanges WebRTC doesn't support AAC unfortunately. You will have to transcode to Opus or PCM. We could add support to |
Get it,Thank you very much!
Sean DuBois ***@***.***>于2021年7月16日 周五23:15写道:
… Hey @yourchanges <https://github.com/yourchanges>
WebRTC doesn't support AAC unfortunately. You will have to transcode to
Opus or PCM.
We could add support to github.com/pion/rtp or maybe add a library that
makes transcoding easier, but we can't play AAC in the browser.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1888 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADYLEXZKDV3LLFXOICQBXTTYBEKJANCNFSM5APH7AUQ>
.
|
Could you add support to github.com/pion/rtp or maybe add a library that makes transcoding (aac->pcm) easier? |
Do you have a source on WebRTC not support AAC? I have seen that in a lot of places, but as far as I can tell, AAC support for WebRTC is 100% up to the browser and not required to be supported. Likely because it is not an open codec. MDN actually says multiple times that the docs they list are only the required ones and that browsers can choose to add more.
You can also see on MDN's page for AAC or caniuse that AAC is supported in nearly every browser. |
Hey @AngellusMortis rfc7874 has Opus, PCMA/PCMU and CN as REQUIRED. Nothing is stopping WebRTC agents from supporting AAC. However libwebrtc the implementation used in every web browser does not have AAC If you want to do Pion <-> Pion you can specify AAC in the MediaEngine and send the packets. |
@Sean-Der thanks for the response. That really helps me fill in the part I was missing. One of my co-workers who knows a bit more about WebRTC also pointed the same thing out. Browser's WebRTC implementation is 100% separate from their own media implementations so it cannot reuse system codecs and/or other codecs supported from elsewhere. That definitely seems maddeningly annoying. |
@AngellusMortis best of luck on what you are building! I have seen users do If you want to chat/throw ideas my way I am always around in Slack. Best of luck with your project :) |
Hi @Sean-Der |
@Sean-Der Is there any example to transcode an audio channel (AAC) to OPUS/PCM? |
I test on a Hik camera, but can't get the audio works, so please support the aac codecs, thank you!
here is the stream info:
the original audio stream is: " Stream #0:1: Audio: aac, 16000 Hz, mono, fltp"
it seems not h264 standard aac codecs, it will work on webrtc ?
I use pion v2.2.26, it only has
and my HIK media server's audio acc payloadtype is 104, here is rtsp despcrtion
The text was updated successfully, but these errors were encountered: