1 | initial version |
To open an RTSP stream with FFmpeg using the same URL, you can use the following command:
ffmpeg -rtsp_transport tcp -i RTSP_URL output.mp4
This command uses the -rtsp_transport tcp
flag to specify that the transport protocol should be TCP instead of the default UDP. This can help improve stability and reliability when streaming over unreliable networks.
The RTSP_URL
should be replaced with the actual URL of the RTSP stream that you want to open.
The output.mp4
is the filename of the video file that you want to save the RTSP stream to. If you don't want to save the stream, you can remove this parameter and FFmpeg will simply display the stream in the console.