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?
73 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].MP4Tt should be :
vlc rtsp:// --sout=file/ps:aa.mpg 4 Go to Media → Open 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)