How to convert RTMP stream to RTSP stream?

1.Use happytime rtsp pusher to convert RTMP stream to RTSP stream

Happytime rtsp pusher supports converting RTMP streams to RTSP streams.
Open the rtsp pusher configuration file config.xml and edit the pusher node.

<pusher>
    <src>rtmp://192.168.1.3/myapp/mystream</src>
    ......
</pusher>

<src>
The push data source, it supports the following parameters:
filename: local media files
rtsp stream : streaming media data from rtsp server, specify the rtsp stream address as the push source
rtmp stream : streaming media data from rtmp server, specify the rtmp stream address as the push source
http mjpeg stream : streaming media data from http mjpeg server, specify the http mjpeg stream address as the push source
screenlive : streaming media data from living screen
videodevice : streaming media data from the camera
audiodevice : streaming media data from the audio device
screenlive+audiodevice: streaming video from the living screen and streaming audio from the audio device
videodevice+audiodevice: streaming video from the video device and streaming audio from the audio device

If your system have multiple video capture device, you can use
videodeviceN, the N to specify the video capture device index, start from 0, such as:
videodevice ; stream video from the first video device
videodevice1 ; stream video from the second video device
The audio device and screen similar to the video device

Below is the setup example:

<config>
......

<pusher>
    <src>rtmp://192.168.1.3/myapp/mystream1</src>
    ......
</pusher>

<pusher>
    <src>rtmp://192.168.1.4/myapp/mystream2</src>
    ......
</pusher>

......
</config>

2.Use happytime rtsp server to convert RTMP stream to RTSP stream

Happytime rtsp server supports converting RTMP streams to RTSP streams.
Open the rtsp server configuration file config.xml and edit the proxy node.

<proxy>
    <suffix>proxy</suffix>
    <url>rtmp://192.168.1.3/myapp/mystream</url>
    <user></user>
    <pass></pass>
    ......
</proxy>

<suffix>
Specify the rtsp stream suffix, you can play the proxy stream from:
rtsp://youip/suffix

<url>
The original rtsp/rtmp/http mjpeg stream address

<user><pass>
Specify the original rtsp/rtmp/http mjpeg stream address login user and password information

Below is the setup example:

<config>
......

<proxy>
    <suffix>proxy1</suffix>
    <url>rtmp://192.168.1.3/myapp/mystream1</url>
    <user></user>
    <pass></pass>
    ......
</proxy>

<proxy>
    <suffix>proxy2</suffix>
    <url>rtmp://192.168.1.3/myapp/mystream1</url>
    <user></user>
    <pass></pass>
    ......
</proxy>

......
</config>