[PD] webcam problem in Gem with Ubuntu Intrepid/Pd-extended 0.41.4-rc3

Hans-Christoph Steiner hans at at.or.at
Thu May 28 16:00:14 CEST 2009


Is there something that can be done in Pd-extended to make this work?   
Should all of the build farm machines have libv4l-dev installed?

.hc

On May 28, 2009, at 6:09 AM, Fränk Zimmer wrote:

> The Gem version in the recent pd-ectended does not suppoert  
> video4linux2.
> I tried your workaround.-
>
> 1) installed the libv4l-dev with synaptics
>
> 2)
> % export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
> % pd -lib Gem
>
> It works. So I`ll  have to start pd-ext everytime with this 2 lines.
> BUT the image quality is quiete bad. Is this because of the new  
> driver ?
> Can I get a better quality? (the same as in winXP or in PDP on Ubuntu)
>
> thanks .-
>
> fraenk
>
>
> IOhannes m zmoelnig schrieb:
>> Fränk Zimmer wrote:
>>> Hm. Taking the pix_video-help patch:  I can switch from driver 0  
>>> to driver 1 by sending a message to pix_video.
>>> How do I switch to the V4L2 driver ?
>>
>> when instantiating the first [pix_video] object, you should see (on  
>> the pd-console) a list of available drivers.
>> e.g. here i see:
>> video driver 0: video4linux2
>> video driver 1: video4linux
>> video driver 2: ieee1394 for linux
>>
>> if you don't have a line with "video4linux2", then you don't have  
>> v4l2 support compiled into your version of Gem.
>>
>>
>> in this case you have to possibilities, both of them include using  
>> libv4l (apt-get install libv4l-dev)
>>
>> - compile yourself a recent verson of Gem (after installing  
>> libv4l); it should autodetect everything for you
>>
>> - libv4l also supports a wrapper (read the README of libv4l) to  
>> bring it's functionality to applications compiled without it. just do
>> % export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
>> % pd -lib Gem
>>
>> in the latter case, Gemwill still use v4l1 ("video4linux"), but the  
>> wrapper should transparently translate this to v4l2
>>
>>
>> tell us whether this works.
>>
>> mfgasdr
>> IOhannes
>>
>
>
> -- 
>
> Fränk Zimmer
>
> visit: http://fz.mur.at
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list




----------------------------------------------------------------------------

All mankind is of one author, and is one volume; when one man dies,  
one chapter is not torn out of the book, but translated into a better  
language; and every chapter must be so translated.... -John Donne






More information about the Pd-list mailing list