How to save a file being streamed using Real Time Streaming Protocol?

I want to save an mp4 video file which is being streamed using rtsp://.

I have tried to save it using ffmpeg, but the result I got was with numerous mistakes. I tried VLC also, but the video and audio were unsynchcronised. 'rtmpdump' does not work neither.

For example, I want to save the following video being streamed using this protocol:

rtsp://

How may I achieve the same?

7

3 Answers

Open the VLC media player.

Go to the :

Media> Convert/Save..

Here Paste the URL.

Then click on the Convert/Save button.

You can also save it with command line:

vlc [STREAM URL] --sout=file/ps:[FILE NAME].MP4

Tt should be :

vlc rtsp:// --sout=file/ps:aa.mpg
4

Go to MediaOpen Network Stream, paste your RSTP link and instead of Play pick Stream menu item. Choose a File as destination, add a filename. Check Display locally, if you want your stream to be played during recording (otherwise a black screen will be "played"). Uncheck Activate Transcoding, if you need to capture original stream without any transcoding (which you probably do).

Another option is by using ffmpeg, like this:

ffmpeg -i rtsp://source_url_full_file_name -acodec copy -vcodec copy local_target_file_name.mp4

(source)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like