Using a non-ft camera with the TXT

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
winijenh
Beiträge: 29
Registriert: 31 Okt 2010, 21:45

Using a non-ft camera with the TXT

Beitrag von winijenh » 31 Jan 2015, 18:09

I don't have an ft camera, and I'm trying to use some other webcam (Logitech QuickCam® Pro for Notebooks) with the TXT. However, ROBOPro is not receiving any pictures from my webcam. Anybody some idea what the requirements are for a webcam to function with the TXT?

The TXT is recognizing my camera ok. If I login to the TXT with ssh (usrid/pwd ROBOPro/ROBOPro) I can see the following:
$ lsusb
Bus 001 Device 002: ID 046d:0991 Logitech, Inc. QuickCam Pro for Notebooks
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : MJPEG

Index : 1
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUV 4:2:2 (YUYV)

v4l2-ctl --list-formats-ext
<shows a long list of sizes for both formats, including:>
Size: Discrete 320x240
Interval: Discrete 0.033 s (30.000 fps)
Interval: Discrete 0.067 s (15.000 fps)
The mpeg_streamer in /var/psg/WebCam works as well with my camera in YUV mode. Running Test.sh turns the TXT into a web server, and my computer/browser shows the webcam video when pointed at the TXT (http://192.168.7.2:8080, when connecting via USB). The TXT says it uses YUV:
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 320 x 240
i: Frames Per Second.: 25
i: Format............: YUV
i: JPEG Quality......: 85
o: www-folder-path...: ./www/
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled
However if I try that in MJPEG mode (remove '-y' and '-q 85' options from the input stream in Test.sh), the browser doesn't show the picture and says the streams contains errors.
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 320 x 240
i: Frames Per Second.: 15
i: Format............: MJPEG
o: www-folder-path...: ./www/
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled
When I use ROBOPro, and activate the preview in the camera tab, I get no video from the TXT. The led on the camera turns on, but the TXT sends no video. Is ROBOPro expecting mjpg mode (which clearly doesn't work well with my camera, despite the fact that it does seem to have the capability)?

Anybody know what capabilities the ft camera has? What shows when running the above commands? How is the TXT sending video data to ROBOPro? mjpeg, or something else?

Thanks for any info you can provide.

Regards,
Willem Evert Nijenhuis.

vleeuwen
Beiträge: 1597
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: Using a non-ft camera with the TXT

Beitrag von vleeuwen » 31 Jan 2015, 19:21

I tested this with a Philips SPC1000NC web cam and this was doing well, including receiving images in RoboPro.

Antworten