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

feed aac raw data to rtspserver #77

Closed
SolarisYan opened this issue Jun 6, 2022 · 1 comment
Closed

feed aac raw data to rtspserver #77

SolarisYan opened this issue Jun 6, 2022 · 1 comment

Comments

@SolarisYan
Copy link

I use the RtspCameraExample's RTSP Server in iOS with ReplayKit2, If I pass the pcm data directly into the server with Audio_source_ReceivedAudioFrame, it's not work. So i convert the pcm data to aac format,
Is it possible to pass the raw data of aac directly to the server? like
rtspServer.FeedInAudioPacket(timestamp_ms, aac_data); and i see sdp.Append(media header info if we had AAC or other audio codec) at here, and i have add them like here.

m= audio 49230 RTP/AVP 96
a= rtpmap:96 mpeg4-generic/48000/6
a= fmtp:96 streamtype= 5; profile-level-id= 16; mode= AAC-hbr;config= 11B0; sizeLength= 13; indexLength= 3;indexDeltaLength= 3; constantDuration= 1024

i use VLC Player, but there no Channels and Bits per sample info, how i can play it, thanks a lot

@SolarisYan
Copy link
Author

does the aac_data need with the ADTS header?

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