@@ -234,67 +234,18 @@ <h2><a name="Basic_Setup"></a> Basic Setup </h2>
234
234
< p > </ p >
235
235
236
236
< a name ="basic_setup_picam "> </ a >
237
- < strong > The raspberry Pi camera</ strong > is set up multiple ways depending upon the distro being used.
238
- < p > </ p >
239
- In the Raspbian version based upon Debian release of 'bullseye' (and presumably later releases), Raspbian
240
- allows access to the PI camera via an application called
237
+ < strong > The raspberry Pi camera</ strong > is set up via an application called
241
238
< i > < small > < code > libcamera</ code > </ small > </ i > . < i > < small > < code > libcamera</ code > </ small > </ i > provides
242
239
access to the camera as a v4l2 device but this interface is only available when using a special
243
240
application. Users must run Motion using the
244
241
command < i > < small > < code > libcamerify motion</ code > </ small > </ i > and
245
242
then specify the /dev/videoX device in the Motion configuration file.
246
243
< p > </ p >
247
- The PI camera's drivers expose the camera's full functionality as a set of low-level /dev/videoX
248
- devices, while Motion (and other applications) expect a single high-level /dev/videoX device. The
249
- libcamerify wrapper transparently manages these low-level devices and presents a high-level
250
- interface on one of the /dev/videoX device nodes to Motion
251
- (< a href ="https://libcamera.org/docs.html#v4l2-compatibility-layer "> libcamera docs</ a > ).
252
- < p > </ p >
253
244
With just one camera connected to the Pi, the device name should normally be
254
245
< i > < small > < code > /dev/video0</ code > </ small > </ i > . With multiple cameras connected, e.g. a regular
255
- USB web and the Pi camera, you should use the device names provided by V4L
256
- (< i > < small > < code > v4l2-ctl --list-devices</ code > </ small > </ i > ). The wrapper doesn't seem to affect
257
- the device names seen by Motion. In the below example, the PI camera is at
258
- < i > < small > < code > /dev/video2</ code > </ small > </ i > while an external USB camera is at
259
- < i > < small > < code > /dev/video0</ code > </ small > </ i > ("CSI" stands for the
260
- < a href ="https://en.wikipedia.org/wiki/Camera_Serial_Interface "> interface used by the Pi camera</ a > ).
261
- < p > </ p >
262
- Also, /dev/videoN names are dynamically assigned and may not always point to the same camera (e.g.
263
- when a USB camera is hot-plugged). Take a look at the stable symlinks under
264
- < i > < small > < code > /dev/v4l/by-path/</ code > </ small > </ i > and consider using them in your Motion config
265
- instead of /dev/videoX.
266
- < pre >
267
- root@raspberrypi:~# v4l2-ctl --list-devices
268
- unicam (platform:3f801000.csi):
269
- /dev/video2 # < == PI Camera
270
- /dev/media2
271
-
272
- bcm2835-codec-decode (platform:bcm2835-codec):
273
- /dev/video10 # < === Low level devices
274
- /dev/video11 # for the Pi cam, ignore
275
- ....
276
-
277
- bcm2835-isp (platform:bcm2835-isp):
278
- /dev/video13 # < === Low level devices
279
- /dev/video14 # for the Pi cam, ignore
280
- ....
281
-
282
- Venus USB2.0 Camera: Venus USB2 (usb-3f980000.usb-1.2):
283
- /dev/video0 # < == USB webcam
284
- /dev/video1
285
- /dev/media4
286
- </ pre >
287
- < p > </ p >
288
- For Raspbian releases prior to 'bullseye', the PI camera can be set up two different ways. If Motion is installed by using the
289
- apt packages (e.g. apt-get install motion), then the camera must be set up using the bcm2835-v4l2 module which creates
290
- a v4l2 device for the camera. Users will need to install this module using the
291
- command < code > sudo modprobe bcm2835-v4l2</ code > . This
292
- will set up the camera as a normal v4l2 device and it can be accessed via a standard /dev/videoX device. If Motion is
293
- built from source or installed via the deb packages on the project release page, then an additional option is to set
294
- up the camera using the < a href ="#mmalcam_name " > mmalcam_name</ a > parameter or using
295
- the bcm2835-v4l2 module. < strong > When Motion is installed via apt, the mmalcam option is not available.</ strong >
296
- It has been noted that this historical method of accessing the PI camera may be available in newer
297
- releases via the enabling the legacy camera stack but it is unclear how long this method will be permitted.
246
+ USB web and the Pi camera, you will need to determine the device associated with the
247
+ Pi camera and the USB camera. The list of devices can be seen using the command
248
+ (< i > < small > < code > v4l2-ctl --list-devices</ code > </ small > </ i > ).
298
249
< p > </ p >
299
250
300
251
< a name ="basic_setup_composite "> </ a >
0 commit comments