Now that we know that the stream works, we simply need to automate it such that it runs on startup. Please watch the video for further details. If you want to check the resource usage, then you can open up a new command prompt window, SSH into the board and then run the "top" command. Then, hit the open button and you should be able to view the stream. Once done, select the "Open Network" option from the File menu and enter the following URL:Īgain, be sure to use the IP address of your board.
SETTING UP IP CAM DOWNLOAD
In order to view the stream, you will have to download and use VLC. To execute the script, simply type in "./rtsp-stream.sh" and hit enter. We then need to make this script executable and that can be done by running the "chmod +x rtsp-stream.sh" command. Once this is done, press the "CTRL+X" keys and it will prompt you to save the File. The following link will take you to the relevant page which contains some documentation.
SETTING UP IP CAM UPDATE
You can update the resolution, frame rate and bitrate to suit your needs. We are simply creating a video stream using the raspivid command and we then make this available over the network using VLC. This will open up a text editor and you can then type in the contents of the script which is shown below: In order to create the script, run the following command "sudo nano rtsp-stream.sh". You can now move on to creating the script. Follow any prompts and wait for it to complete.
SETTING UP IP CAM INSTALL
This may take a while depending on your internet connection, so do have some patience.įinally, we need to install vlc and this can be done by running the "sudo apt-get install vlc" command. Follow the onscreen prompt to install the updates. Then type in sudo apt full-upgrade" and hit enter. Next, it is a good idea to update the OS so type in "sudo apt update" and hit enter. Give the board a minute and then ssh back into it like before. Select "yes" and then wait for the board to reboot. Select "yes" when it asks you if you want to enable the camera and then navigate to the "Finish" option. Navigate to the "Interfacing Options", then "Camera" and hit enter. This can be done by running the "sudo raspi-config" command. This will log you into the board.īefore we can work on the actual script, we need to enable the camera module. It will then ask you for a password, so enter "raspberry" which is the default password, and then hit enter again. It will ask you if you want to authenticate/store the key. Remember to use the IP address corresponding to your board.
SETTING UP IP CAM MAC
You can use the terminal if you are on Mac OS. Open up a command prompt window by typing in "cmd' in the start menu. The IP address of my board is 192.168.1.35 Wait for it to detect the board and then note it's IP address. Once done, enter the IP range as shown in the image and hit the start button. You can even download the legacy version on windows, which does not need any installation. Download and install AngryIP scanner as this will help us obtain it. In order to communicate with the board using ssh, we need the IP address of the board. It will take about a minute to boot completely, so do give it some time. Once done, insert a microUSB cable and power ON the board. Be gentle with the connector tabs as they are a bit delicate. We are now ready to power ON the board, so insert the microSD card into the board and connect the camera using the cable. You do not need to add any extension to the file. Simply use one of the text editors mentioned above to create a new file, and then save it to the bootdrive with the name "ssh". This allows us to remotely access and control the Raspberry Pi, over a network. It is recommended to use a text editor like notepad++ or sublime to do this. You can also download the following template and update it with your details - country code, network name and password. We then need to enable WiFi networking by creating the wpa_nf file in the boot drive. Select the image you downloaded, make sure you have selected the microSD card and then click the Flash button. Then, download and install Etcher, if you do not already have this.
To do this, head over to the downloads section of the Raspberry Pi website and download the Raspbian Lite OS. The first thing we need to do is load an operating system on the microSD card.