Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Can PulseDroidRTP play RTP streams sent by ffmpeg? #10

Open
dilyanpalauzov opened this issue Mar 27, 2022 · 2 comments
Open

Can PulseDroidRTP play RTP streams sent by ffmpeg? #10

dilyanpalauzov opened this issue Mar 27, 2022 · 2 comments

Comments

@dilyanpalauzov
Copy link

I would like to use ``ffmpeg` to send RPT over multicast and PulseDroidRtp to get the sound.

When I call /usr/bin/ffmpeg -re -i ZZZ.mp3 -filter_complex 'aresample=8000,asetnsamples=n=160' -acodec pcm_mulaw -ac 1 -f rtp udp://239.239.239.240:4444 I can listen the file over VLC for Android. But on PulseDroidRtp, when I configure with the IP and port above, MTU 320 (default), channels 1, channel mask 0, my Android device buzzes when something is played, but it is unclear what is played.

Is it possible ot play with PulseAudioRtp the RTP stream send by ffmpeg over multicase, as stated above?

@wenxin-wang
Copy link
Owner

Sorry for the long wait. Please try:

/usr/bin/ffmpeg -re -i ZZZ.mp -filter_complex 'aresample=48000,asetnsamples=n=140' -acodec pcm_s16be -f s16be -ac 1 -f rtp udp://224.0.0.56:4010

I managed to play some music with this.

Please refer to the README for why these parameters are needed:

@dilyanpalauzov
Copy link
Author

Thanks for your answer. Unfortunately it does not help me. I have hardware, which announces the input from /usr/bin/ffmpeg -re -i ZZZ.mp3 -filter_complex 'aresample=8000,asetnsamples=n=160' -acodec pcm_mulaw -ac 1 -f rtp udp://239.239.239.240:4444. The invocation cannot be changed. Thus, I am looking for Android software, which accepts and plays the output of the above command.

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

No branches or pull requests

2 participants