pedroSG94 / RTSP-Server

Plugin of rtmp-rtsp-stream-client-java to stream directly to RTSP player.
Apache License 2.0
202 stars 64 forks source link

Publish server stream #61

Closed FunnyDevs closed 2 years ago

FunnyDevs commented 2 years ago

Hello pedro! I use the rtsp server to do some manipulations with ffmpeg, but i should need even to publish the stream to a remote wowza server but i can't use ffmpeg because i need the adaptive bitrate of your rtsp client librart (https://github.com/pedroSG94/rtmp-rtsp-stream-client-java). Could i publish the local rtsp server through the client library?

pedroSG94 commented 2 years ago

Re stream to another server? It is not possible because I haven't a way to capture a stream in this library. It is only for push. If you can find a way to get video and audio data from your server you can use RtspClient or RtmpClient and send it to other server.

FunnyDevs commented 2 years ago

I can get the stream with ffmpeg in a pipe(i use this library https://github.com/tanersener/ffmpeg-kit/wiki/Pipe-Support) and read the stream as a standard FileInputStream, but then i don't know to push this stream of bytes to RtspClient.

pedroSG94 commented 2 years ago

The way to extract raw H264/AAC packets must be developed by yourself (I don't know that library and how to get buffers from that, you should ask in the library issues or study it). After that, you can follow this issue that explain how to use RtspClient: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/issues/1033#event-5870585859

FunnyDevs commented 2 years ago

ok, it works!! Thank you again :)