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:


How may I achieve the same?

  • it is not spam quiestion – incel Dec 30 '13 at 16:22
  • i'm trying to save this video, but i can not unfortenately. I have tried to save it with ffmpeg, but the result I got was with numerous mistakes – incel Dec 30 '13 at 16:22
  • You know, I have read a bunch of answers to "how could i save a rtsp stream video?" , but it did not work for this particular example – incel Dec 30 '13 at 16:26
  • Dumindu Mahawela, i tried, i got RTMPDump v2.4 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL WARNING: Unknown protocol! WARNING: You haven't specified an output file (-o filename), using stdout Connecting ... ERROR: RTMP_Connect0, failed to connect socket. 110 (Connection timed out) – incel Dec 30 '13 at 16:38
  • Is it legal to save this video? – Alvar Dec 30 '13 at 16:39

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://a1966.v1252936.c125293.g.vq.akamaistream.net/7/1966/125293/v0001/mp4.od.origin.zdf.de.gl-systemhaus.de/dach/zdf/13/12/131231_buniatishvili_kuk_1456k_p13v11.mp4 --sout=file/ps:aa.mpg
  • I have tried it, the result had error (for example, audio and video were unsynchronised) – incel Dec 30 '13 at 16:54
  • If So first play it by media> ` Network stream` and paste url and click on play. then while it is playing, go to media> Convert/Save.. and do above. – user224082 Dec 30 '13 at 17:00
  • ok, I will try it, but I am not sure it will help. But anyway thank You for your help! – incel Dec 30 '13 at 17:24
  • I tried. I can download it. May be a problem in your VLC. Also try with rtmpsuck [URL] – user224082 Dec 30 '13 at 17:26

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


Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.