On Tuesday 20 August 2013 09:15:36 Viesturs Lācis did opine:

> 2013/8/20 Gene Heskett <ghesk...@wdtv.com>
> 
> > On Monday 19 August 2013 16:57:28 Viesturs Lؤپcis did opine:
> > > 4) it took me a while to figure out, how to get video from camera
> > > captured and displayed on screen - I did not find any documentation
> > > for this particular application;
> > 
> > Plumb totally, absolutely point double ought zip.
> > 
> > I found the authors addresses and sent them a msg yesterday, but no
> > response so far.
> 
> What I had to do to see camera image in that camview window, opened from
> terminal, are these steps:
> 1) on the left side I selected Input --> USB2.0 Camera [or something
> similar, it was the only line with USB2.0]
> 2) on the right side I changed the resolution to match the camera -
> 640x480 3) on the left side I selected Output --> OpenGL
> 
> And that was it - I had camera image.

Here, the only thing I have in /dev/usb/hiddev0 disappears if I unplug the 
mouse.  Cheese uses /dev/video0, and works well, but that doesn't seem to 
be available to camview, so it wants to use "input.v4l2:0" which camview 
correctly identify's as a Microsoft LifeView Webcam or something like that.

Cheese can use either of these:
gene@shop:~/linuxcnc/configs/my-mill-atom$ ls -l /dev/video*
crw-rw----+ 1 root video 81, 0 2013-08-18 14:47 /dev/video0
crw-rw----+ 1 root video 81, 1 2013-08-18 21:13 /dev/video1

where video1 is the color bar output of the vivi module, which also works 
with cheese.

When I run camview without any -c argument, it shows the screen snapshot 
you can see as soon as I change the perms on it, as the screenshot in the 
Genes-os9-stf/LCNC link on my web page. You should be able to see it now.  
But as you can see, camview calls the camera input.v4l2:0 and vivi is 
input.v4l2:1, and neither work although when dbl-clicked on to open the 
buttons in the right panel, both are reported as "streaming", and if I 
select the camera, its active led comes on just like it does when cheese is 
running it.

And on the console that I launched camview from is this:

** (camview:14854): WARNING **: Unable to load pixbuf

Which is likely the reason I can't see anything in camview.

And I have anything with pixbuf in its name that synaptic can find 
installed.

Does an lsmod show a pixbuf module loaded on your machine?  I do not.

Or maybe it shows in the Xorg.0.log?

Strangely, that box has NOT been rebooted that I know of since the camera 
was plugged in, but because it has a take a pix button on it, it is 
included in the Xorg.0.log!  Not once but 2 or 3 times because its been 
unplugged & replugged about that many times as I've been trying to make it 
work.  I was not aware that that logfile was ever written to again once the 
machine was fully booted.

Something else I just found, there is a util to update the pixbuf loaders, 
which claims to update the /etc/gtk-2.0/ file by the similar name, but it 
doesn't exist on my box, only a file named im-multipress.conf exists there. 
According to its text, its related to mobile phne that speak german ?

What do you have in your /etc/gtk-2.0 directory?

> I added a little crossmark in the centre, tweaked a little brightness on
> input settings and then saved it as "camviewcfg" in the machine config
> folder.
> 
> 
> Unforch, I am getting the impression all these folks have given up on
> hardy
> 
> >  so its up to us to make it work on Lucid or Precise when that time
> >  comes &
> > 
> > they've went on to greener pastures, or in the case of the MIT fellow,
> > graduated & gone while MIT is using the old email account for an empty
> > holding spot.  Or something.  I haven't rx'd a bounce from either
> > address yet but that sometimes take 3-4 days.
> > 
> > Anyway, it seems that you have gotten father than I have, can you loan
> > me your magic twanger? :)  I may yet have a file in the wrong
> > directory or whatever.
> 
> I have Lucid :)))
> Sorry for not specifying it explicitly in my previous email.

So do I, and I had assumed you were too since Hardy (8.04 LTS) is long 
since out of support.
 
> Frank, thank you, I will try G43 H99
> 
> And one more question: this line calls for a little gladevcp panel:
> EMBED_TAB_COMMAND = camview-emc -C camviewcfg -g togle-caa.ui -H
> campins.hal -w {XID}

Here I had to use a lowercase "-c" to get all the buttons. An uppercase -C 
is an error:

gene@shop:~/linuxcnc/configs/my-mill-atom$ camview -C camviewcfg
camview: invalid option -- 'C'
usage: camview [options]

camview is a graphical tool for viewing and testing image processing
chains.  It uses GTK+ 2.0, OpenGL, and libcamunits.

Options:
  -c, --chain NAME     Load chain from file NAME
  --no-gui             Run without a GUI.  If --no-gui is specified,
                       then -c is required.
  --plugin-path PATH   Add the directories in PATH to the plugin
                       search path.  PATH should be a colon-delimited
                       list.
  -h, --help           Show this help text and exit

And, because by the time I got done adding to the [HALUI] section, I have 
at least 9 entries now, it will be necessary to edit campins.hal because 
the enumerations will be wrong.   Until we fix that our buttons will be 
scrambled or more likely disabled because that code exits on the first 
error, which here is reported for mdi-command-00 from campins.hal.  I 
think, from reading psha's web page, we'll need to start the campins.hal 
mdi-command stuffs at 04?, enumerating upward as as we go.  I haven't 
worked all that out just yet since my camera isn't working.
  
> I currently have pyvcp panel in Axis. Is that ok? I have an impression
> that only one type of these panels can be used at a time - either pyvcp
> _or_ gladevcp.

I think so, I have a pyvcp spindle speed slider display, and the extra 
buttons are drawn just below that on the right side of the backplot.
But because of the above noted error, are do nothing buttons here.

So I just installed the rest of gtk-2.0 and rebooted, but I still get the 
same can't load pixbuf error as shown above, instantly on running camview 
from the shell, long before the gui is drawn.

Are you running on a D525MW atom board?

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
My views 
<http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
When you're in command, command.
                -- Admiral Nimitz
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to