How to record IP camera video throught RTSP

Some IP webcams requires Quicktime to show the image throught the browser.
To get the full URI with the video source, you can get it from a virtual machine with windows throught wireshark like this:

rtsp://192.168.1.100:554/user=admin&password=&channel=1&stream=0.sdp

To reproduce it with vlc, use this command:

vlc "rtsp://192.168.1.100:554/user=admin&password=&channel=1&stream=0.sdp"

Probably you should see the first frame as static frame and the following error:

Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)

You can install libvdpau-va-gl1 dependencie, but the problem persists.
If you prefer to use vlc (if you compile it with hw acceleration), you can enable the option --avcodec-hw vdpau

If you don't have vlc with hw acceleration enabled, you can use mvp. To install it, follow these steps:

sudo apt-get install mpv

To reproduce the video and dump it, you can use te following command:

mpv "rtsp://192.168.1.100:554/user=admin&password=&channel=1&stream=0.sdp" -o output.mp4 --oautofps --oneverdrop

You can add the option --no-audio if you like.
Enjoy it!



Comments

Popular posts from this blog

Exception: Could not find a default OpenFlow controller in Mininet

How to fix Android when developer options are not available for this user

Webcam streaming throught VLC with YUY2 compatibility