Hi all,
Installing the newer v4l drivers from hg repo solved my webcam video being vertically flipped in ekiga, but not in skype, which I can not explain, as skype image seems sensible to guvcview settings (seen with guvcview --control_only). Do you have a probable explanation even if skype is non free code (I am forced to use it, working in a changing network environment, not suitable for SIP-based solutions)? Could libv4l help me to solve this problem by forcing vflip (through a hard coded patch at first, ultimately an environment variable or so, even if it is not clean enough to be included in the lib official code)? I have development skills although I do not know much about driver-level development. If you show me the way to go I can probably try a few things and hopefully get a simple solution working, at least for me, perhaps for others too...
Thanks in advance, Regards, Florent Cayré.
On 04/25/2009 11:29 AM, Florent Cayré wrote:
Hi all,
Installing the newer v4l drivers from hg repo solved my webcam video being vertically flipped in ekiga, but not in skype, which I can not explain, as skype image seems sensible to guvcview settings (seen with guvcview --control_only). Do you have a probable explanation even if skype is non free code (I am forced to use it, working in a changing network environment, not suitable for SIP-based solutions)? Could libv4l help me to solve this problem by forcing vflip (through a hard coded patch at first, ultimately an environment variable or so, even if it is not clean enough to be included in the lib official code)? I have development skills although I do not know much about driver-level development. If you show me the way to go I can probably try a few things and hopefully get a simple solution working, at least for me, perhaps for others too...
Hi,
What sort of webcam do you have ? Are you already using libv4l ? And if so which version ?
Can you try running skype like this: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
?
Regards,
Hans
Hello Hans,
thanks for you answer. My webcam is the ASUS X5AV laptop integrated webcam. Here is the beginning of the 'lsusb -v -d 04f2:b106' command :
Bus 008 Device 004: ID 04f2:b106 Chicony Electronics Co., Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 ? bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x04f2 Chicony Electronics Co., Ltd idProduct 0xb106 bcdDevice 18.07 iManufacturer 2 Chicony Electronics Co., Ltd iProduct 1 CNF7246 iSerial 0 bNumConfigurations 1 ...
I am already using libv4l-0.5.8-1 (ubuntu jaunty) and tried 'LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so skype', but it does not correct skype video vertical inversion. In Jaunty, I also have a vertically flipped image in ekiga.
Regards, Florent.
2009/4/27 Hans de Goede j.w.r.degoede@hhs.nl
On 04/25/2009 11:29 AM, Florent Cayré wrote:
Hi all,
Installing the newer v4l drivers from hg repo solved my webcam video being vertically flipped in ekiga, but not in skype, which I can not explain, as skype image seems sensible to guvcview settings (seen with guvcview --control_only). Do you have a probable explanation even if skype is non free code (I am forced to use it, working in a changing network environment, not suitable for SIP-based solutions)? Could libv4l help me to solve this problem by forcing vflip (through a hard coded patch at first, ultimately an environment variable or so, even if it is not clean enough to be included in the lib official code)? I have development skills although I do not know much about driver-level development. If you show me the way to go I can probably try a few things and hopefully get a simple solution working, at least for me, perhaps for others too...
Hi,
What sort of webcam do you have ? Are you already using libv4l ? And if so which version ?
Can you try running skype like this: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
?
Regards,
Hans
On 04/28/2009 12:38 AM, Florent Cayré wrote:
Hello Hans,
thanks for you answer. My webcam is the ASUS X5AV laptop integrated webcam. Here is the beginning of the 'lsusb -v -d 04f2:b106' command :
Bus 008 Device 004: ID 04f2:b106 Chicony Electronics Co., Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 ? bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x04f2 Chicony Electronics Co., Ltd idProduct 0xb106 bcdDevice 18.07 iManufacturer 2 Chicony Electronics Co., Ltd iProduct 1 CNF7246 iSerial 0 bNumConfigurations 1 ...
I am already using libv4l-0.5.8-1 (ubuntu jaunty) and tried 'LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so skype', but it does not correct skype video vertical inversion. In Jaunty, I also have a vertically flipped image in ekiga.
Ok,
So that is a uvc camera. In your original mail you wrote that the image was no longer upside down in ekiga when you updated the kernel driver to the hg version, but still upside down in skype, did I understand that correctly?
Maybe there is an option in ekiga somewhere to correct and upside down image in software and you enabled this option ?
Note that libv4l can fix the upside down image in software, but before going there I would first like to figure out why its upside down in some apps only thats weird. Now if it is always upside down, things are easy to fix.
Regards,
Hans
Hello,
I can no more reproduce the situation where the image is upside down in ekiga and not in skype, but it occurred, and it is really weird indeed (it is now always upside-down). Maybe skype uses the driver in a odd way, like using a low level API for getting raw video data and making a part of the decoding itself? I really do not know and do not have enough v4l knowledge to figure it out... If skype does so, there is perhaps no clean solution at all. But it would be nice to try a libv4l software solution in this case, because I think the reason why the image is upside down is that ASUS just integrated the webcam upside down, so it may be found on another laptop in the right direction... What do you think?
Regards, Florent.
2009/4/28 Hans de Goede j.w.r.degoede@hhs.nl
On 04/28/2009 12:38 AM, Florent Cayré wrote:
Hello Hans,
thanks for you answer. My webcam is the ASUS X5AV laptop integrated webcam. Here is the beginning of the 'lsusb -v -d 04f2:b106' command :
Bus 008 Device 004: ID 04f2:b106 Chicony Electronics Co., Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 ? bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x04f2 Chicony Electronics Co., Ltd idProduct 0xb106 bcdDevice 18.07 iManufacturer 2 Chicony Electronics Co., Ltd iProduct 1 CNF7246 iSerial 0 bNumConfigurations 1 ...
I am already using libv4l-0.5.8-1 (ubuntu jaunty) and tried 'LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so skype', but it does not correct skype video vertical inversion. In Jaunty, I also have a vertically flipped image in ekiga.
Ok,
So that is a uvc camera. In your original mail you wrote that the image was no longer upside down in ekiga when you updated the kernel driver to the hg version, but still upside down in skype, did I understand that correctly?
Maybe there is an option in ekiga somewhere to correct and upside down image in software and you enabled this option ?
Note that libv4l can fix the upside down image in software, but before going there I would first like to figure out why its upside down in some apps only thats weird. Now if it is always upside down, things are easy to fix.
Regards,
Hans
On 04/28/2009 10:19 AM, Florent Cayré wrote:
Hello,
I can no more reproduce the situation where the image is upside down in ekiga and not in skype, but it occurred, and it is really weird indeed (it is now always upside-down).
Ok, always upside down is good, that can be fixed :)
As a workaround, install libv4l-0.5.97 from src, get the tarbal here: http://people.atrpms.net/~hdegoede/libv4l-0.5.97.tar.gz
First make sure you have *no* other versions of libv4l installed, do: rm -fr /usr/lib/libv4l* /usr/local/lib/libv4l*
Then untar the tarbal and do a simple make, make install
Then do: export LIBV4LCONTROL_FLAGS=3
And then run skype like this: LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so skype
Now your image should be the right way up.
I would like to modify libv4l to recognize your model laptop and do this automatically (with you needing to set the flags). For that I need to have the DMI info from your laptop, so I can put this inside libv4l, can you please run the following command: dmidecode > log
And send me the resulting log file ?
Thanks,
Hans
Maybe skype uses the driver in a odd
way, like using a low level API for getting raw video data and making a part of the decoding itself? I really do not know and do not have enough v4l knowledge to figure it out... If skype does so, there is perhaps no clean solution at all. But it would be nice to try a libv4l software solution in this case, because I think the reason why the image is upside down is that ASUS just integrated the webcam upside down, so it may be found on another laptop in the right direction... What do you think?
Regards, Florent.
2009/4/28 Hans de Goede <j.w.r.degoede@hhs.nl mailto:j.w.r.degoede@hhs.nl>
On 04/28/2009 12:38 AM, Florent Cayré wrote: Hello Hans, thanks for you answer. My webcam is the ASUS X5AV laptop integrated webcam. Here is the beginning of the 'lsusb -v -d 04f2:b106' command : Bus 008 Device 004: ID 04f2:b106 Chicony Electronics Co., Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 ? bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x04f2 Chicony Electronics Co., Ltd idProduct 0xb106 bcdDevice 18.07 iManufacturer 2 Chicony Electronics Co., Ltd iProduct 1 CNF7246 iSerial 0 bNumConfigurations 1 ... I am already using libv4l-0.5.8-1 (ubuntu jaunty) and tried 'LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so skype', but it does not correct skype video vertical inversion. In Jaunty, I also have a vertically flipped image in ekiga. Ok, So that is a uvc camera. In your original mail you wrote that the image was no longer upside down in ekiga when you updated the kernel driver to the hg version, but still upside down in skype, did I understand that correctly? Maybe there is an option in ekiga somewhere to correct and upside down image in software and you enabled this option ? Note that libv4l can fix the upside down image in software, but before going there I would first like to figure out why its upside down in some apps only thats weird. Now if it is always upside down, things are easy to fix. Regards, Hans
-- Ce message est la propriété de SecondWeb et peut contenir des informations confidentielles. Si vous n'êtes pas le destinataire désigné, nous vous remercions de bien vouloir nous en aviser immédiatement et de nous retourner ce message ou de le détruire, sans faire un quelconque usage de son contenu, ni le communiquer ou le diffuser, ni en prendre copie, électronique ou non.
This message is the property of SecondWeb and may contain confidential information. If you are not the designated recipient, please notify us immediately and return the message to us or destroy it, without making any use whatsoever of the contents thereof. Furthermore you should not forward or copy the message by electronic or other means.
Hello Hans,
this solved the problem, for both ekiga and skype. Thanks very much!
Please find the information you asked for attached to this mail.
Googling around, I found some other people with similar issues and some driver related fixes (see http://blog.cristiantm.com.br/2008/07/14/dereks-hack-to-fix-w7s-flipped-webc...). The fix is likely to be included in the kernel one day, meaning some coordination efforts are needed... hope you can handle that.
Best regards, and thanks again for your help, Florent.
2009/4/28 Hans de Goede j.w.r.degoede@hhs.nl
On 04/28/2009 10:19 AM, Florent Cayré wrote:
Hello,
I can no more reproduce the situation where the image is upside down in ekiga and not in skype, but it occurred, and it is really weird indeed (it is now always upside-down).
Ok, always upside down is good, that can be fixed :)
As a workaround, install libv4l-0.5.97 from src, get the tarbal here: http://people.atrpms.net/~hdegoede/libv4l-0.5.97.tar.gzhttp://people.atrpms.net/%7Ehdegoede/libv4l-0.5.97.tar.gz
First make sure you have *no* other versions of libv4l installed, do: rm -fr /usr/lib/libv4l* /usr/local/lib/libv4l*
Then untar the tarbal and do a simple make, make install
Then do: export LIBV4LCONTROL_FLAGS=3
And then run skype like this: LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so skype
Now your image should be the right way up.
I would like to modify libv4l to recognize your model laptop and do this automatically (with you needing to set the flags). For that I need to have the DMI info from your laptop, so I can put this inside libv4l, can you please run the following command: dmidecode > log
And send me the resulting log file ?
Thanks,
Hans
Maybe skype uses the driver in a odd
way, like using a low level API for getting raw video data and making a part of the decoding itself? I really do not know and do not have enough v4l knowledge to figure it out... If skype does so, there is perhaps no clean solution at all. But it would be nice to try a libv4l software solution in this case, because I think the reason why the image is upside down is that ASUS just integrated the webcam upside down, so it may be found on another laptop in the right direction... What do you think?
Regards, Florent.
2009/4/28 Hans de Goede <j.w.r.degoede@hhs.nl mailto: j.w.r.degoede@hhs.nl>
On 04/28/2009 12:38 AM, Florent Cayré wrote:
Hello Hans, thanks for you answer. My webcam is the ASUS X5AV laptop integrated webcam. Here is the beginning of the 'lsusb -v -d 04f2:b106' command : Bus 008 Device 004: ID 04f2:b106 Chicony Electronics Co., Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 239 Miscellaneous Device bDeviceSubClass 2 ? bDeviceProtocol 1 Interface Association bMaxPacketSize0 64 idVendor 0x04f2 Chicony Electronics Co., Ltd idProduct 0xb106 bcdDevice 18.07 iManufacturer 2 Chicony Electronics Co., Ltd iProduct 1 CNF7246 iSerial 0 bNumConfigurations 1 ... I am already using libv4l-0.5.8-1 (ubuntu jaunty) and tried 'LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so skype', but it does not correct skype video vertical inversion. In Jaunty, I also have a vertically flipped image in ekiga.
Ok,
So that is a uvc camera. In your original mail you wrote that the image was no longer upside down in ekiga when you updated the kernel driver to the hg version, but still upside down in skype, did I understand that correctly?
Maybe there is an option in ekiga somewhere to correct and upside down image in software and you enabled this option ?
Note that libv4l can fix the upside down image in software, but before going there I would first like to figure out why its upside down in some apps only thats weird. Now if it is always upside down, things are easy to fix.
Regards,
Hans
-- Ce message est la propriété de SecondWeb et peut contenir des informations confidentielles. Si vous n'êtes pas le destinataire désigné, nous vous remercions de bien vouloir nous en aviser immédiatement et de nous retourner ce message ou de le détruire, sans faire un quelconque usage de son contenu, ni le communiquer ou le diffuser, ni en prendre copie, électronique ou non.
This message is the property of SecondWeb and may contain confidential information. If you are not the designated recipient, please notify us immediately and return the message to us or destroy it, without making any use whatsoever of the contents thereof. Furthermore you should not forward or copy the message by electronic or other means.
On 04/29/2009 09:23 PM, Florent Cayré wrote:
Hello Hans,
this solved the problem, for both ekiga and skype. Thanks very much!
Your welcome.
Please find the information you asked for attached to this mail.
Thanks,
I've added DMI based detection of upside down cams to libv4l, and your notebook as the first to the list of cams which will be using this, can you please try this version: http://people.atrpms.net/~hdegoede/libv4l-0.5.98test.tar.gz
Without doing the "export LIBV4LCONTROL_FLAGS=3" thing ? (to be sure you can do a "unset LIBV4LCONTROL_FLAGS")
Again here are simple installation instructions
Preparation: 1. Download it 2. Check if your current version is installed as /usr/lib/libv4l2.so.0 or: /usr/lib64/libv4l2.so.0
Install: tar xvfz libv4l-0.5.98test.tar.gz cd libv4l-0.5.97 make
And then depending on wether you have it in lib or lib64 do: make install PREFIX=/usr LIBDIR=/usr/lib or: make install PREFIX=/usr LIBDIR=/usr/lib64
After this try using skype again and the image should still be the right way up:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype or: LD_PRELOAD=/usr/lib64/libv4l/v4l2convert.so skype
Regards,
Hans
Hello Hans,
sorry I do not have access to this laptop anymore, because it was not mine. I will try to get in touch with its owner and let you know.
Regards, Florent.
2009/5/17 Hans de Goede hdegoede@redhat.com
On 04/29/2009 09:23 PM, Florent Cayré wrote:
Hello Hans,
this solved the problem, for both ekiga and skype. Thanks very much!
Your welcome.
Please find the information you asked for attached to this mail.
Thanks,
I've added DMI based detection of upside down cams to libv4l, and your notebook as the first to the list of cams which will be using this, can you please try this version: http://people.atrpms.net/~hdegoede/libv4l-0.5.98test.tar.gzhttp://people.atrpms.net/%7Ehdegoede/libv4l-0.5.98test.tar.gz
Without doing the "export LIBV4LCONTROL_FLAGS=3" thing ? (to be sure you can do a "unset LIBV4LCONTROL_FLAGS")
Again here are simple installation instructions
Preparation:
- Download it
- Check if your current version is installed as
/usr/lib/libv4l2.so.0 or: /usr/lib64/libv4l2.so.0
Install: tar xvfz libv4l-0.5.98test.tar.gz cd libv4l-0.5.97 make
And then depending on wether you have it in lib or lib64 do: make install PREFIX=/usr LIBDIR=/usr/lib or: make install PREFIX=/usr LIBDIR=/usr/lib64
After this try using skype again and the image should still be the right way up:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype or: LD_PRELOAD=/usr/lib64/libv4l/v4l2convert.so skype
Regards,
Hans