Getting the CNC4PC machining camera to work on Linux

I’ve been eyeing this little camera from CNC4PC for a while and I wound up picking one up while I was at the 2012 cnc workshop.

CNC4PC machining camera

Sooner or later, I’m going to use it for machining, but actually I have some other things I want to do with it first:

  • My daughter had been doing a photographic bug collection but most of these have been on a larger scale. It would be pretty cool to get some shots of some really tiny bugs.
  • I’ve been meaning on to a inspection on my furnace plenum to see if it needs to be cleaned. I thought this would be an ideal use for this little camera.
  • I have heavy treadmill against the wall that I need to get the model number off.

Anyway… when I first purchased the camera I was in a rush to figured out how to get it to work, so  I didn’t bother leaving any notes.
So we missed an ideal bug opportunity.   Plus, I needed to get the model number off my treadmill and it just dawned on me that this camera could come in handy…. So darned it time to document.

Ok. Some I’m still running 64 bit 10.04 Ubuntu on my laptop.

https://help.ubuntu.com/community/Webcam

Lets see if I can retrace my steps here.
I have cheese installed and when I run the application it displays the webcam on my laptop and not the cnc4pc camera.  (Ok… I remember that issues.)
It seems like cheese will fire up ok, displaying my laptop webcam.  But if I have the usb webcam installed as well and fire it up.. It crashes?  Playing around with it.  The crash seems to occur when I access the usb camera…

Googling… It seems like cheese has issues from time to time.  Ok.. Next step need to figure out the identity of the webcam by checking devices before and and after plugging it in.

jonas@jonas-laptop:~$ ls /dev/video*
/dev/video0
jonas@jonas-laptop:~$ ls /dev/audio*
/dev/audio
jonas@jonas-laptop:~$ # Now I’m plugging in the usb webcam
jonas@jonas-laptop:~$ ls /dev/video*
/dev/video0  /dev/video1
jonas@jonas-laptop:~$ ls /dev/audio*
/dev/audio
jonas@jonas-laptop:~$

There is a plug on the camera… (Might be of audio?)
So… I tried this from terminal and it works

jonas@jonas-laptop:~$ vlc v4l2:///dev/video1
VLC media player 1.0.6 Goldeneye
[0x12a9888] main libvlc: Running vlc with the default interface. Use ‘cvlc’ to use vlc without interface.
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::begin: Paint device returned engine == 0, type: 1

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *