Showing posts with label camera. Show all posts
Showing posts with label camera. Show all posts

Monday, March 12, 2018

Setting up motion camera software on raspbian


Raspbian has gotten the motion daemon integrated in, but all is not smooth yet.

you need to enable the raspberry pi camera with configuration changes to be sure that it is enabled.

0.0 create a boot media with latest raspbian, write on windows as needed

0.1 for newest stretch version of raspberry pi, enable wifi if necessary.
0.1a   with the media mounted on the creation host
0.1a.1   touch /boot/ssh to make sure ssh is enabled after boot
0.1a.2   put in wpa_supplicant.conf as needed

0.9 log in once booted up

1. sudo apt-get update

2. sudo apt-get -y install motion

3. in raspi-config
3a   set timezone
3b   set hostname
3c   enable camera
3d   resize media if using standard initial raspbian release image from 1.5mb

4.  change /etc/motion/motion.conf
4a.  change to allow non local control page access 8080
4b.  change to allow non local camera stream access 8081
4c.  change to run daemon if started manually

5. add  bcm2835-v4l2 to /etc/modules to get
5a. change /etc/default/motion to auto start
5b. set to get systemctl to start @ boot   sudo systemctl enable motion
5c. change permissions on /var/log/motion/motion so daemonized motion can access it
5d. change permissions on /var/lib/motion directory so daemonized motion can access it

6a. sudo systemctl enable motion
6b. sudo service motion start

7.  some reboots will be required.

00 optional

00.1  command;
          vcgencmd get_camera
       will show whether camera is supported and detected

Note for headless setup

on the boot volume (on system creating boot media)

Must be done before first boot.  Will not work subsequently (for the ssh enable)

touch /boot/ssh

Create wireless connection if need be.  This is the only way to start a pi zerow headless.
Contents of /etc/wpa_supplicant/wpa_supplicant.conf:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="YOUR_SSID_HERE"
    psk="YOUR_SECRET_PASSPHRASE_HERE"
    id_str="SOME_DESCRIPTIVE_NAME"
}
 
 

Another page setup

 
https://www.instructables.com/id/How-to-Make-Raspberry-Pi-Webcam-Server-and-Stream-/ 
 
 
Maximum resolutions
 
V1  2592 × 1944 pixels
V2  3280 × 2464 pixels
 
 

--30--

Sunday, October 2, 2016

Viewing Foscam FI9803P stream with VLC



Use VLC stream viewing to view cameras:  how to construct URLs

Model FI9803P camera

http://foscam.us/media/mconnect_uploadfiles/f/i/fi9803p%20user%20manual.pdf

2.4 Using the VLC player This camera supports RTSP streaming, here you can
view the camera using VLC player.
RTSP URL
rtsp:// [user name][:password]@IP: RTSP port number/videosream

The part in the square bracket s may be omitted.  user name & password:
The user name and password to access the camera.
This part can be omitted.
IP: WAN or LAN IP address.
Videostream: Here support some mode .
When the network speed is bad, here you had better select videoSub.
For example: IP: 192.168.1.11
RTSP Port number : 554
User name : admin
Password : 123
Here I can enter one of the following URLs in the VLC.
1) rtsp://admin: 123 @192.168.1.11: 554 /videoMain
2) rtsp:// @192.168.1.11: 554 /videoMain
3) rtsp://: 123 @192.168.1.11: 554 /videoMain
4) rtsp://admin@192.168.1.11: 554 /videoMain

Open the VLC, and go to Media  Open Network Stream option, then enter the
URL into VLC

Shortcuts:

Create windows shortcut by copying the VLC shortcut, and add it to the "target:" field
of the shortcut

On linux create a shortcut on the desktop by whatever means and add the rstp URL
to the target address as well.

xx