WhepFrom
WHEP to RTP/RTSP tool
This tool has three working mode:
rtprtsp as clientrtsp as server
RTP
RTP mode need target and sdp file
bash
whepfrom -o rtp://{target_ip}?video={video_port}&audio={audio_port} -w http://localhost:7777/whep/777 --sdp-file output.sdpbash
whepfrom -o rtp://localhost?video=9000&audio=9002 -w http://localhost:7777/whep/777 --sdp-file output.sdpUse ffplay play
bash
ffplay -protocol_whitelist rtp,file,udp -i output.sdpUse vlc play
bash
vlc output.sdpRTSP Server
It's default mode
This example is whepfrom as RTSP Server, use ffplay as client use RTSP pull stream
bash
whepfrom -w http://localhost:7777/whep/777 -o rtsp-listen://0.0.0.0:8551Player
bash
ffplay rtsp://localhost:8551Use transport tcp
bash
ffplay rtsp://localhost:8551 -rtsp_transport tcpRTSP Client
whepfrom as a client, push stream from RTSP Server
bash
whepfrom -w http://localhost:7777/whip/777 -o rtsp://127.0.0.1:8554Use transport tcp
bash
whepfrom -w http://localhost:7777/whep/test-rtsp -o rtsp://localhost:8554/test-rtsp?transport=tcp