Ask Your Question
3

How can FFmpeg open an RTSP stream with the same URL?

asked 2023-05-14 18:47:54 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-14 19:14:02 +0000

scrum gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-14 18:47:54 +0000

Seen: 17 times

Last updated: May 14 '23