RTSP Stream to File With VLC

0

1

I am trying to record an RTSP stream from my IP camera to my PC using VLC. It is h264.

I use this command (plus many more I tried)

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv rtsp://192.168.1.9:554/real_stream --sout=#transcode{acodec=none}:file{dst=D:\\CCTV\\TV.mp4,no-overwrite}

The streaming is working, as I can view the stream in VLC with no problem.

It's the --sout that is not working. The file is saved to disk, but when I try to play it, it doesn't play.

How can I proceed on this issue?

Here are some of the other options I tried

--sout=#transcode{vcodec=h264,scale=Auto,acodec=none}:file{dst=D:\\CCTV\\test1.mp4,no-overwrite}
--sout='#standard{access=file,mux=ts,dst=D:\CCTV\recording.mpg}'
--sout='#transcode{venc=x264{aud,profile=baseline,level=30,no-cabac},vcodec=h264,vb=800,width=640,height=480,fps=24.0}:std{mux=mp4,dst="D:/CCTV/Test1.mp4",access=file}'
--sout file/mp4:test.mp4

I'm not trying to recode the stream, I just want to dump it out.

peter

Posted 2018-06-30T22:35:03.643

Reputation: 575

No answers