Raspberry Pi Camera VLC Network Monitoring

Memo

The Raspberry Pi has a network port and a camera that can be used. Of course, resources cannot be wasted. Next, I will use an infrared camera to make a camera monitoring that can be used day and night~

Connect the CSI camera of the Raspberry Pi. I use the one with infrared light and light sensor control. The infrared light will automatically turn on only at night. This can save power and ensure the working efficiency of the infrared lamp.

Then, the Raspberry Pi is connected with a wired connection, because I am pulling it from upstairs to downstairs, and the wireless will be unstable, so I use a wired connection with the Raspberry Pi. After the connection is complete, confirm that the network of the Raspberry Pi is connected. It is best to set the IP of the Raspberry Pi to be a fixed IP, which is convenient for viewing the camera data in the future.

The next step is to monitor the configuration, and write a script to let the Raspberry Pi enter the monitoring. Surveillance is actually video... But the Raspberry Pi video has a disadvantage, that is, the video can only be output by HDMI, or it can only be output and cannot be recorded. Then I will use the network to record here. First of all, the memory card of the Raspberry Pi should be larger, or you can also connect an external U disk or hard disk. Then, turn on the camera and stream with VLC.

If VLC is not installed, install it first

apt-get -y install vlc

aspivid -o - -t 0 -w 640 -h 360 -fps 25|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264 &> /dev/null

The above is a video with a recording resolution of 640x360, the frame number is 25 frames, and the camera data is sent out through the 8090 port.

On the computer or mobile phone, just find a vlc player, and then enter http://ip address: 8090, you can see the camera video.

From: http://jingyan.eeboard.com/article/73782

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324913336&siteId=291194637