How to convert RTSP/RTMP stream to PS stream?

Happytime gb28181 device supports converting RTSP/RTMP streams to PS streams.
Open the gb28181 device configuration file config.xml and edit the channel node.

<channel>
    <cid>34020000001310000001</cid>
    <cname>channel1</cname>
    <media_url>rtsp://192.168.1.3/live</media_url>
    ......
</channel>

<media_url>
Specify GB28181 Device 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 data source
rtmp stream : streaming media data from rtmp server, specify the rtmp stream address as the data source
http mjpeg stream : streaming media data from http mjpeg server, specify the http mjpeg stream address as the data 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