There are loads of other things you can do such as enable a basic remote control interface, tweak the JPEG quality, set up regular snapshots (by default, snapshots are taken only when motion is detected), customise the text which is overlaid onto the image and change the location to which images are saved (by default these go into /tmp/motion which is deleted whenever the Pi is rebooted). (Press Ctrl+X, Y then Enter to save changes and quit the nano editor) If you want to take regular snapshots whether motion is detected or not, you can change the following line (the value is in seconds): snapshot_interval 60 If you want to change the port on which the stream is served (default 8080) – replace 1234 with the desired port number: webcam_port 1234īy default, the camera will only start capturing images (and video) if it detects motion. If you want the stream to be viewable from other computers on the network (rather than just the Pi itself): webcam_localhost off To increase the resolution to the maximum supported by the EyeToy, change the following lines: width 640 height 480 To enable daemon mode (so you can run the software in the background without it tying up your terminal): daemon on Edit the config file: sudo nano /etc/motion/nf.This should automatically install the required ‘ffmpeg’ package – if not you can just do sudo apt-get install ffmpeg.Install the ‘motion’package: sudo apt-get install motion.The Raspberry Pi supports a number of cameras, not just the EyeToy, so if you have a spare one lying around, give it a go. The steps below are based on this forum thread, with some changes to reflect my own experience. Having heard about the new camera driver built into the kernel of the new Raspbian OS image, I decided to have a play, using my PS3 EyeToy camera.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |