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

Unable to get RTSP audio stream for PCMA #9393

Closed
SreeniMannem opened this issue Sep 6, 2021 · 3 comments
Closed

Unable to get RTSP audio stream for PCMA #9393

SreeniMannem opened this issue Sep 6, 2021 · 3 comments
Assignees
Labels

Comments

@SreeniMannem
Copy link

Hi Team, i am using ExoPlayer 2.15.0 version to stream RTSP using ip camera. My Ip camera is having below configurations

Video: a=rtpmap:96 H264/90000
Audio: a=rtpmap:8 PCMA/8000/1

I am able to get Video but Audio is missing from the output stream. This is a known issue it seems, from @claincly comment for one of my question. Reference

I have gone through ExoPlayer docs, mentioned like here by adding Ffmpeg extension we can achieve this.

Now my question is, shall we play audio by adding Ffmpeg Extension with the existing ExoPlayer v2.15.0?

Thanks in advance!!!

@claincly
Copy link
Contributor

claincly commented Sep 6, 2021

In RTSP/RTP, a bitstream is split into UDP-packet sized chunks, and sent through the network in RTP packets. The chunks are usually smaller than 1500 bytes.

You can only use ffmpeg to render the reconstructed bitstream. In ExoPlayer the RtpPayloadReaders demux the incoming RTP packet and reconstructing the bitstream. So what's missing is an RtpPayloadReader that handles PCMA RTP packets, using ffmpeg will not help.

The only way around this: implement RFC3551 as RtpPcmaReader. We don't have it planned at the moment. In the meantime, you may find this implementation helpful.

@SreeniMannem
Copy link
Author

Thanks @claincly for your detailed explanation. For the time being, i will try with the above mentioned implementation.

@claincly claincly changed the title Unable to get stream with Audio by using RTSP for ip camera Unable to get RTSP audio stream for PCMA Sep 10, 2021
@claincly
Copy link
Contributor

I'm closing this issue for now, please feel free to re-open if you have further questions.

@google google locked and limited conversation to collaborators Nov 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants