T
T
teymurgahramanov2019-02-02 10:38:06
RTMP
teymurgahramanov, 2019-02-02 10:38:06

How to find the correct RTMP URL to input in ffmpeg?

I have RTMP URL for Reolink-RLC410 camera:
rtmp://111.111.111.111:1935/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=admin
This URL works fine with VLC and OBS but I can't use this URL with FFMPEG to capture the RTMP stream.
So how can I convert this URL to the format that FFMPEG requires?
Required syntax:
rtmp://[username:[email protected]]server[:port][/app][/instance][/playpath]
https://www.ffmpeg.org/ffmpeg-all.html#rtmp

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Bazarnov, 2019-04-23
@bazden

Good afternoon. Precisely rtMp, not rtSp ?
For RTSP it works like this:
ffmpeg -rtsp_transport tcp -i "rtsp://111.111.111.111:1935//bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=admin" -vcodec copy -an -f h264 /tmp /output.mp4
Possibly similar for RTMP. Pay attention to the rtsp_transport option - without an explicit indication that the protocol works through tcp - the rtsp stream did not rise.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question