Welcome, Guest
Username Password: Remember me

Which video device can we access on Reeti
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Which video device can we access on Reeti

Which video device can we access on Reeti 6 years, 6 months ago #71

In order to have several clients using the same video device, Reeti has a "fakecamera" /dev/video2 which is a virtual fake device of /dev/video0

So :
- /dev/video0 is not accessible (it is already used by fakecamera process)
- /dev/video1 is accessible by only one client : however, considering usb 2.0 controlers flow limitation, the maximum configuration is 320x240 at 10 fps
- /dev/video2 is accessible by several clients : configuration is set to 25 fps, 640x480 resolution.

If you don't need the fakecamera, and you need some different resolutions and frame rates configurations :
- kill fakecamera process (sudo pkill fake*)
or
- suppress fakecamera from reeti launch script : edit /reetiPrograms/script/cameraInit.sh and suppress fakecamera (all lines from 7 to 15)

Once you suppressed fakecamera process, you can record (or view) one or both camera in any resolution compatible with usb2.0 flow limitation of a usb2.0 controller

Here are a few combinaisons that works :

Two camera in 640x480 @ 10 fps:
- ffmpeg -f video4linux2 -s 640x480 -r 10 -i /dev/video0 -f alsa -ac 2 -i hw:0 output0.avi
- ffmpeg -f video4linux2 -s 640x480 -r 10 -i /dev/video1 output1.avi

One camera in 640x480 @ 30 fps and one in 320x240 @ 10 fps:
- ffmpeg -f video4linux2 -s 640x480 -r 30 -i /dev/video0 -f alsa -ac 2 -i hw:0 output0.avi
- ffmpeg -f video4linux2 -s 320x240 -r 10 -i /dev/video1 output1.avi

One camera in 1280x720 @ 10 fps and one in 424x240 @ 10 fps
- ffmpeg -f video4linux2 -s 1280x720 -r 10 -i /dev/video0 -f alsa -ac 2 -i hw:0 output0.avi
- ffmpeg -f video4linux2 -s 320x240 -r 10 -i /dev/video1 output1.avi

One camera in 1280x720 @ 30 fps (in mjpeg format) and one in 424x240 @ 10 fps
- ffmpeg -f video4linux2 -vcodec mjpeg -s 1280x720 -r 30 -i /dev/video0 -f alsa -ac 2 -i hw:0 output0.avi
- ffmpeg -f video4linux2 -s 320x240 -r 10 -i /dev/video1 output1.avi

If you want to try some other combinaison, the attached file gives you all formats that Reeti webcams accept (resolution and framerates for raw images YUYV format and for mjpeg format). Note that 720p format @ 30 fps is only accessible in mjpeg format.

File Attachment:

File Name: hd5000.formats.txt
File Size: 5 KB
  • Page:
  • 1
Time to create page: 0.13 seconds