pedroSG94 / RootEncoder

RootEncoder for Android (rtmp-rtsp-stream-client-java) is a stream encoder to push video/audio to media servers using protocols RTMP, RTSP, SRT and UDP with all code written in Java/Kotlin
Apache License 2.0
2.54k stars 772 forks source link

Take input from external RTSP source / transmux to pusher #734

Closed t3therdev closed 3 years ago

t3therdev commented 3 years ago

Hi, we are looking to see how we can expand on this library to include support for rtsp sources. Currently we want to allow the user to select between android cameras and external RTSP sources (h264 video and aac audio), we need to be able to preview/display them as well as transmux to push to rtsp the same way the android camera is. For example we want to take the rtsp in and take the h264 nals or rtsp payload and insert it where the normal encoder would go in your library, so that we could push it the same way as android cameras.

pedroSG94 commented 3 years ago

You have multiples ways to get RTSP video/audio from external RTSP sources. I did an example using VLC but only support video: https://github.com/pedroSG94/AndroidReStreamer You need find a way to get audio and video and send it to RtspClient class.