[jitsi-dev] [jitsi~svn:8335] Attempt to fix upside-down webcam problems on some computers is NOT working // video still upside-down


#1

hello.

commit 8335 is not working for my laptop, video is still upside-down. the video is good with skype, cheese and ekiga. i am using ubuntu 10.10, tried 11.10 as well. jitsi version is 1.0-beta1-nightly.build.3689. what kind of information can i provide to get this fixed?

cheers,
marc


#2

Hi Tikal,

Commit 8335 was for Windows only upside-down problem and not for Linux.

Can you provide output of v4l-info (as root or sudo) command please (package v4l-conf).

BTW what is the model/type of your laptop ?

Regards,

···

--
Seb

Le 17/10/11 12:06, Tikal a �crit :

hello.

commit 8335 is not working for my laptop, video is still upside-down. the video is good with skype, cheese and ekiga. i am using ubuntu 10.10, tried 11.10 as well. jitsi version is 1.0-beta1-nightly.build.3689. what kind of information can i provide to get this fixed?

cheers,
marc


#3

Hi Seb.

Here is the output of v4l-info:

root@ubuntu:~# v4l-info

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
    driver : "uvcvideo"
    card : "USB 2.0 UVC 0.3M Webcam"
    bus_info : "usb-0000:00:1a.7-3"
    version : 0.1.0
    capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
    index : 0
    name : "Camera 1"
    type : CAMERA
    audioset : 0
    tuner : 0
    std : 0x0 []
    status : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
    index : 0
    type : VIDEO_CAPTURE
    flags : 0
    description : "YUV 4:2:2 (YUYV)"
    pixelformat : 0x56595559 [YUYV]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
    type : VIDEO_CAPTURE
    fmt.pix.width : 640
    fmt.pix.height : 480
    fmt.pix.pixelformat : 0x56595559 [YUYV]
    fmt.pix.field : NONE
    fmt.pix.bytesperline : 1280
    fmt.pix.sizeimage : 614400
    fmt.pix.colorspace : SRGB
    fmt.pix.priv : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
    id : 9963776
    type : INTEGER
    name : "Brightness"
    minimum : -64
    maximum : 64
    step : 1
    default_value : 10
    flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
    id : 9963777
    type : INTEGER
    name : "Contrast"
    minimum : 0
    maximum : 95
    step : 1
    default_value : 30
    flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
    id : 9963778
    type : INTEGER
    name : "Saturation"
    minimum : 0
    maximum : 128
    step : 1
    default_value : 67
    flags : 0
    VIDIOC_QUERYCTRL(BASE+3)
    id : 9963779
    type : INTEGER
    name : "Hue"
    minimum : -40
    maximum : 40
    step : 1
    default_value : 3
    flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
    name : "USB 2.0 UVC 0.3M Webcam"
    type : 0x1 [CAPTURE]
    channels : 1
    audios : 0
    maxwidth : 640
    maxheight : 480
    minwidth : 48
    minheight : 32

channels
    VIDIOCGCHAN(0)
    channel : 0
    name : "Camera 1"
    tuners : 0
    flags : 0x0 []
    type : CAMERA
    norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
    brightness : 37887
    hue : 35225
    colour : 34303
    contrast : 20695
    whiteness : 14336
    depth : 16
    palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
    VIDIOCGWIN
    x : 0
    y : 0
    width : 640
    height : 480
    chromakey : 0
    flags : 0

this is the lsusb-output:

Bus 001 Device 003: ID 064e:a136 Suyin Corp.

The Notebook is a Asus UL30

Cheers,
Tikal

···

On 17/10/11 13:46, Sebastien Vincent wrote:

Hi Tikal,

Commit 8335 was for Windows only upside-down problem and not for Linux.

Can you provide output of v4l-info (as root or sudo) command please (package v4l-conf).

BTW what is the model/type of your laptop ?

Regards,
--
Seb

Le 17/10/11 12:06, Tikal a �crit :

hello.

commit 8335 is not working for my laptop, video is still upside-down. the video is good with skype, cheese and ekiga. i am using ubuntu 10.10, tried 11.10 as well. jitsi version is 1.0-beta1-nightly.build.3689. what kind of information can i provide to get this fixed?

cheers,
marc


#4

Hi Tikal,

It is known that on some laptop, camera are mounted upside-down.

You have some solutions :
- Your camera driver (module) has support for vertical flip but as I see it is uvcvideo so it is is not possible;
- Modify the kernel driver directly, it is a bit extreme but it was the solution I used for my previous Lenovo U330 laptop. Hopefully the kernel patches are at http://ubuntuforums.org/showthread.php?t=838210
- A more simple solution (I have personnaly never try this ones), try to launch Jitsi with:

export LIBV4LCONTROL_FLAGS=3 && jitsi

Regards,

···

--
Seb

Le 17/10/11 13:58, Tikal a �crit :

Hi Seb.

Here is the output of v4l-info:

root@ubuntu:~# v4l-info

### v4l2 device info [/dev/video0] ###
general info
     VIDIOC_QUERYCAP
     driver : "uvcvideo"
     card : "USB 2.0 UVC 0.3M Webcam"
     bus_info : "usb-0000:00:1a.7-3"
     version : 0.1.0
     capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
     VIDIOC_ENUMINPUT(0)
     index : 0
     name : "Camera 1"
     type : CAMERA
     audioset : 0
     tuner : 0
     std : 0x0 []
     status : 0x0 []

video capture
     VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
     index : 0
     type : VIDEO_CAPTURE
     flags : 0
     description : "YUV 4:2:2 (YUYV)"
     pixelformat : 0x56595559 [YUYV]
     VIDIOC_G_FMT(VIDEO_CAPTURE)
     type : VIDEO_CAPTURE
     fmt.pix.width : 640
     fmt.pix.height : 480
     fmt.pix.pixelformat : 0x56595559 [YUYV]
     fmt.pix.field : NONE
     fmt.pix.bytesperline : 1280
     fmt.pix.sizeimage : 614400
     fmt.pix.colorspace : SRGB
     fmt.pix.priv : 0

controls
     VIDIOC_QUERYCTRL(BASE+0)
     id : 9963776
     type : INTEGER
     name : "Brightness"
     minimum : -64
     maximum : 64
     step : 1
     default_value : 10
     flags : 0
     VIDIOC_QUERYCTRL(BASE+1)
     id : 9963777
     type : INTEGER
     name : "Contrast"
     minimum : 0
     maximum : 95
     step : 1
     default_value : 30
     flags : 0
     VIDIOC_QUERYCTRL(BASE+2)
     id : 9963778
     type : INTEGER
     name : "Saturation"
     minimum : 0
     maximum : 128
     step : 1
     default_value : 67
     flags : 0
     VIDIOC_QUERYCTRL(BASE+3)
     id : 9963779
     type : INTEGER
     name : "Hue"
     minimum : -40
     maximum : 40
     step : 1
     default_value : 3
     flags : 0

### video4linux device info [/dev/video0] ###
general info
     VIDIOCGCAP
     name : "USB 2.0 UVC 0.3M Webcam"
     type : 0x1 [CAPTURE]
     channels : 1
     audios : 0
     maxwidth : 640
     maxheight : 480
     minwidth : 48
     minheight : 32

channels
     VIDIOCGCHAN(0)
     channel : 0
     name : "Camera 1"
     tuners : 0
     flags : 0x0 []
     type : CAMERA
     norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
     VIDIOCGPICT
     brightness : 37887
     hue : 35225
     colour : 34303
     contrast : 20695
     whiteness : 14336
     depth : 16
     palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
     VIDIOCGWIN
     x : 0
     y : 0
     width : 640
     height : 480
     chromakey : 0
     flags : 0

this is the lsusb-output:

Bus 001 Device 003: ID 064e:a136 Suyin Corp.

The Notebook is a Asus UL30

Cheers,
Tikal

On 17/10/11 13:46, Sebastien Vincent wrote:

Hi Tikal,

Commit 8335 was for Windows only upside-down problem and not for Linux.

Can you provide output of v4l-info (as root or sudo) command please (package v4l-conf).

BTW what is the model/type of your laptop ?

Regards,
--
Seb

Le 17/10/11 12:06, Tikal a �crit :

hello.

commit 8335 is not working for my laptop, video is still upside-down. the video is good with skype, cheese and ekiga. i am using ubuntu 10.10, tried 11.10 as well. jitsi version is 1.0-beta1-nightly.build.3689. what kind of information can i provide to get this fixed?

cheers,
marc


#5

Hello Seb.

Thanks for you tips. unfortunately the workarounds ar not working for me. I checked the ubuntu-thread and also tried the export-suggestion. I understand that my notebook-model might have a camera that is flipped upside-down. but i am wondering why cheese and ekiga show it the right way. are you sure this is a driver/webcam-problem?

Regards,
tikal

···

On 17/10/11 14:33, Sebastien Vincent wrote:

Hi Tikal,

It is known that on some laptop, camera are mounted upside-down.

You have some solutions :
- Your camera driver (module) has support for vertical flip but as I see it is uvcvideo so it is is not possible;
- Modify the kernel driver directly, it is a bit extreme but it was the solution I used for my previous Lenovo U330 laptop. Hopefully the kernel patches are at http://ubuntuforums.org/showthread.php?t=838210
- A more simple solution (I have personnaly never try this ones), try to launch Jitsi with:

export LIBV4LCONTROL_FLAGS=3 && jitsi

Regards,
--
Seb

Le 17/10/11 13:58, Tikal a �crit :

Hi Seb.

Here is the output of v4l-info:

root@ubuntu:~# v4l-info

### v4l2 device info [/dev/video0] ###
general info
     VIDIOC_QUERYCAP
     driver : "uvcvideo"
     card : "USB 2.0 UVC 0.3M Webcam"
     bus_info : "usb-0000:00:1a.7-3"
     version : 0.1.0
     capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
     VIDIOC_ENUMINPUT(0)
     index : 0
     name : "Camera 1"
     type : CAMERA
     audioset : 0
     tuner : 0
     std : 0x0 []
     status : 0x0 []

video capture
     VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
     index : 0
     type : VIDEO_CAPTURE
     flags : 0
     description : "YUV 4:2:2 (YUYV)"
     pixelformat : 0x56595559 [YUYV]
     VIDIOC_G_FMT(VIDEO_CAPTURE)
     type : VIDEO_CAPTURE
     fmt.pix.width : 640
     fmt.pix.height : 480
     fmt.pix.pixelformat : 0x56595559 [YUYV]
     fmt.pix.field : NONE
     fmt.pix.bytesperline : 1280
     fmt.pix.sizeimage : 614400
     fmt.pix.colorspace : SRGB
     fmt.pix.priv : 0

controls
     VIDIOC_QUERYCTRL(BASE+0)
     id : 9963776
     type : INTEGER
     name : "Brightness"
     minimum : -64
     maximum : 64
     step : 1
     default_value : 10
     flags : 0
     VIDIOC_QUERYCTRL(BASE+1)
     id : 9963777
     type : INTEGER
     name : "Contrast"
     minimum : 0
     maximum : 95
     step : 1
     default_value : 30
     flags : 0
     VIDIOC_QUERYCTRL(BASE+2)
     id : 9963778
     type : INTEGER
     name : "Saturation"
     minimum : 0
     maximum : 128
     step : 1
     default_value : 67
     flags : 0
     VIDIOC_QUERYCTRL(BASE+3)
     id : 9963779
     type : INTEGER
     name : "Hue"
     minimum : -40
     maximum : 40
     step : 1
     default_value : 3
     flags : 0

### video4linux device info [/dev/video0] ###
general info
     VIDIOCGCAP
     name : "USB 2.0 UVC 0.3M Webcam"
     type : 0x1 [CAPTURE]
     channels : 1
     audios : 0
     maxwidth : 640
     maxheight : 480
     minwidth : 48
     minheight : 32

channels
     VIDIOCGCHAN(0)
     channel : 0
     name : "Camera 1"
     tuners : 0
     flags : 0x0 []
     type : CAMERA
     norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
     VIDIOCGPICT
     brightness : 37887
     hue : 35225
     colour : 34303
     contrast : 20695
     whiteness : 14336
     depth : 16
     palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
     VIDIOCGWIN
     x : 0
     y : 0
     width : 640
     height : 480
     chromakey : 0
     flags : 0

this is the lsusb-output:

Bus 001 Device 003: ID 064e:a136 Suyin Corp.

The Notebook is a Asus UL30

Cheers,
Tikal

On 17/10/11 13:46, Sebastien Vincent wrote:

Hi Tikal,

Commit 8335 was for Windows only upside-down problem and not for Linux.

Can you provide output of v4l-info (as root or sudo) command please (package v4l-conf).

BTW what is the model/type of your laptop ?

Regards,
--
Seb

Le 17/10/11 12:06, Tikal a �crit :

hello.

commit 8335 is not working for my laptop, video is still upside-down. the video is good with skype, cheese and ekiga. i am using ubuntu 10.10, tried 11.10 as well. jitsi version is 1.0-beta1-nightly.build.3689. what kind of information can i provide to get this fixed?

cheers,
marc


#6

Hi Tikal,

For skype/cheese/ekiga, do you have modify the way it starts with libv4l (i.e. LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype) ?

I see many Linux and even Windows users that has problem with upside-down camera as of 2011 (see http://forum.skype.com/index.php?showtopic=783733) and the fix that usealy works is to use the LD_PRELOAD method. That's why I ask.

For Jitsi, it is currently not working (no video) but I have an uncommited patch that should fix it so that we can use the following command: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so jitsi (maybe the libv4l so files are located in /usr/lib/i386-linux-gnu/libv4l /usr/lib/x86_64-linux-gnu/libv4l in debian like distributions).

I also remember that cheese has a vertical flip in its options, is it checked ?

Regards,

···

--
Seb

Le 18/10/11 14:22, Tikal a �crit :

Hello Seb.

Thanks for you tips. unfortunately the workarounds ar not working for me. I checked the ubuntu-thread and also tried the export-suggestion. I understand that my notebook-model might have a camera that is flipped upside-down. but i am wondering why cheese and ekiga show it the right way. are you sure this is a driver/webcam-problem?

Regards,
tikal

On 17/10/11 14:33, Sebastien Vincent wrote:

Hi Tikal,

It is known that on some laptop, camera are mounted upside-down.

You have some solutions :
- Your camera driver (module) has support for vertical flip but as I see it is uvcvideo so it is is not possible;
- Modify the kernel driver directly, it is a bit extreme but it was the solution I used for my previous Lenovo U330 laptop. Hopefully the kernel patches are at http://ubuntuforums.org/showthread.php?t=838210
- A more simple solution (I have personnaly never try this ones), try to launch Jitsi with:

export LIBV4LCONTROL_FLAGS=3&& jitsi

Regards,
--
Seb

Le 17/10/11 13:58, Tikal a �crit :

Hi Seb.

Here is the output of v4l-info:

root@ubuntu:~# v4l-info

### v4l2 device info [/dev/video0] ###
general info
      VIDIOC_QUERYCAP
      driver : "uvcvideo"
      card : "USB 2.0 UVC 0.3M Webcam"
      bus_info : "usb-0000:00:1a.7-3"
      version : 0.1.0
      capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
      VIDIOC_ENUMINPUT(0)
      index : 0
      name : "Camera 1"
      type : CAMERA
      audioset : 0
      tuner : 0
      std : 0x0 []
      status : 0x0 []

video capture
      VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
      index : 0
      type : VIDEO_CAPTURE
      flags : 0
      description : "YUV 4:2:2 (YUYV)"
      pixelformat : 0x56595559 [YUYV]
      VIDIOC_G_FMT(VIDEO_CAPTURE)
      type : VIDEO_CAPTURE
      fmt.pix.width : 640
      fmt.pix.height : 480
      fmt.pix.pixelformat : 0x56595559 [YUYV]
      fmt.pix.field : NONE
      fmt.pix.bytesperline : 1280
      fmt.pix.sizeimage : 614400
      fmt.pix.colorspace : SRGB
      fmt.pix.priv : 0

controls
      VIDIOC_QUERYCTRL(BASE+0)
      id : 9963776
      type : INTEGER
      name : "Brightness"
      minimum : -64
      maximum : 64
      step : 1
      default_value : 10
      flags : 0
      VIDIOC_QUERYCTRL(BASE+1)
      id : 9963777
      type : INTEGER
      name : "Contrast"
      minimum : 0
      maximum : 95
      step : 1
      default_value : 30
      flags : 0
      VIDIOC_QUERYCTRL(BASE+2)
      id : 9963778
      type : INTEGER
      name : "Saturation"
      minimum : 0
      maximum : 128
      step : 1
      default_value : 67
      flags : 0
      VIDIOC_QUERYCTRL(BASE+3)
      id : 9963779
      type : INTEGER
      name : "Hue"
      minimum : -40
      maximum : 40
      step : 1
      default_value : 3
      flags : 0

### video4linux device info [/dev/video0] ###
general info
      VIDIOCGCAP
      name : "USB 2.0 UVC 0.3M Webcam"
      type : 0x1 [CAPTURE]
      channels : 1
      audios : 0
      maxwidth : 640
      maxheight : 480
      minwidth : 48
      minheight : 32

channels
      VIDIOCGCHAN(0)
      channel : 0
      name : "Camera 1"
      tuners : 0
      flags : 0x0 []
      type : CAMERA
      norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
      VIDIOCGPICT
      brightness : 37887
      hue : 35225
      colour : 34303
      contrast : 20695
      whiteness : 14336
      depth : 16
      palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
      VIDIOCGWIN
      x : 0
      y : 0
      width : 640
      height : 480
      chromakey : 0
      flags : 0

this is the lsusb-output:

Bus 001 Device 003: ID 064e:a136 Suyin Corp.

The Notebook is a Asus UL30

Cheers,
Tikal

On 17/10/11 13:46, Sebastien Vincent wrote:

Hi Tikal,

Commit 8335 was for Windows only upside-down problem and not for Linux.

Can you provide output of v4l-info (as root or sudo) command please (package v4l-conf).

BTW what is the model/type of your laptop ?

Regards,
--
Seb

Le 17/10/11 12:06, Tikal a �crit :

hello.

commit 8335 is not working for my laptop, video is still upside-down. the video is good with skype, cheese and ekiga. i am using ubuntu 10.10, tried 11.10 as well. jitsi version is 1.0-beta1-nightly.build.3689. what kind of information can i provide to get this fixed?

cheers,
marc


#7

Hi again,

In SVN revision 9032 and in next build 3725 (currently baking), you can use the libv4l way (that we can find in many forum post about Linux upside down camera). In other words, launch Jitsi with:

LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so jitsi

Can you tell us if build 3725 works for you with this workaround ?

We will try to see if there is another way, more "automatic", to get it work for upside-down camera on Linux.

Regards,

···

--
Seb

Le 19/10/11 10:19, Sebastien Vincent a �crit :

Hi Tikal,

For skype/cheese/ekiga, do you have modify the way it starts with libv4l (i.e. LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype) ?

I see many Linux and even Windows users that has problem with upside-down camera as of 2011 (see http://forum.skype.com/index.php?showtopic=783733) and the fix that usealy works is to use the LD_PRELOAD method. That's why I ask.

For Jitsi, it is currently not working (no video) but I have an uncommited patch that should fix it so that we can use the following command: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so jitsi (maybe the libv4l so files are located in /usr/lib/i386-linux-gnu/libv4l /usr/lib/x86_64-linux-gnu/libv4l in debian like distributions).

I also remember that cheese has a vertical flip in its options, is it checked ?

Regards,
--
Seb

Le 18/10/11 14:22, Tikal a �crit :

Hello Seb.

Thanks for you tips. unfortunately the workarounds ar not working for me. I checked the ubuntu-thread and also tried the export-suggestion. I understand that my notebook-model might have a camera that is flipped upside-down. but i am wondering why cheese and ekiga show it the right way. are you sure this is a driver/webcam-problem?

Regards,
tikal

On 17/10/11 14:33, Sebastien Vincent wrote:

Hi Tikal,

It is known that on some laptop, camera are mounted upside-down.

You have some solutions :
- Your camera driver (module) has support for vertical flip but as I see it is uvcvideo so it is is not possible;
- Modify the kernel driver directly, it is a bit extreme but it was the solution I used for my previous Lenovo U330 laptop. Hopefully the kernel patches are at http://ubuntuforums.org/showthread.php?t=838210
- A more simple solution (I have personnaly never try this ones), try to launch Jitsi with:

export LIBV4LCONTROL_FLAGS=3&& jitsi

Regards,
--
Seb

Le 17/10/11 13:58, Tikal a �crit :

Hi Seb.

Here is the output of v4l-info:

root@ubuntu:~# v4l-info

### v4l2 device info [/dev/video0] ###
general info
      VIDIOC_QUERYCAP
      driver : "uvcvideo"
      card : "USB 2.0 UVC 0.3M Webcam"
      bus_info : "usb-0000:00:1a.7-3"
      version : 0.1.0
      capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
      VIDIOC_ENUMINPUT(0)
      index : 0
      name : "Camera 1"
      type : CAMERA
      audioset : 0
      tuner : 0
      std : 0x0 []
      status : 0x0 []

video capture
      VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
      index : 0
      type : VIDEO_CAPTURE
      flags : 0
      description : "YUV 4:2:2 (YUYV)"
      pixelformat : 0x56595559 [YUYV]
      VIDIOC_G_FMT(VIDEO_CAPTURE)
      type : VIDEO_CAPTURE
      fmt.pix.width : 640
      fmt.pix.height : 480
      fmt.pix.pixelformat : 0x56595559 [YUYV]
      fmt.pix.field : NONE
      fmt.pix.bytesperline : 1280
      fmt.pix.sizeimage : 614400
      fmt.pix.colorspace : SRGB
      fmt.pix.priv : 0

controls
      VIDIOC_QUERYCTRL(BASE+0)
      id : 9963776
      type : INTEGER
      name : "Brightness"
      minimum : -64
      maximum : 64
      step : 1
      default_value : 10
      flags : 0
      VIDIOC_QUERYCTRL(BASE+1)
      id : 9963777
      type : INTEGER
      name : "Contrast"
      minimum : 0
      maximum : 95
      step : 1
      default_value : 30
      flags : 0
      VIDIOC_QUERYCTRL(BASE+2)
      id : 9963778
      type : INTEGER
      name : "Saturation"
      minimum : 0
      maximum : 128
      step : 1
      default_value : 67
      flags : 0
      VIDIOC_QUERYCTRL(BASE+3)
      id : 9963779
      type : INTEGER
      name : "Hue"
      minimum : -40
      maximum : 40
      step : 1
      default_value : 3
      flags : 0

### video4linux device info [/dev/video0] ###
general info
      VIDIOCGCAP
      name : "USB 2.0 UVC 0.3M Webcam"
      type : 0x1 [CAPTURE]
      channels : 1
      audios : 0
      maxwidth : 640
      maxheight : 480
      minwidth : 48
      minheight : 32

channels
      VIDIOCGCHAN(0)
      channel : 0
      name : "Camera 1"
      tuners : 0
      flags : 0x0 []
      type : CAMERA
      norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
      VIDIOCGPICT
      brightness : 37887
      hue : 35225
      colour : 34303
      contrast : 20695
      whiteness : 14336
      depth : 16
      palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
      VIDIOCGWIN
      x : 0
      y : 0
      width : 640
      height : 480
      chromakey : 0
      flags : 0

this is the lsusb-output:

Bus 001 Device 003: ID 064e:a136 Suyin Corp.

The Notebook is a Asus UL30

Cheers,
Tikal

On 17/10/11 13:46, Sebastien Vincent wrote:

Hi Tikal,

Commit 8335 was for Windows only upside-down problem and not for Linux.

Can you provide output of v4l-info (as root or sudo) command please (package v4l-conf).

BTW what is the model/type of your laptop ?

Regards,
--
Seb

Le 17/10/11 12:06, Tikal a �crit :

hello.

commit 8335 is not working for my laptop, video is still upside-down. the video is good with skype, cheese and ekiga. i am using ubuntu 10.10, tried 11.10 as well. jitsi version is 1.0-beta1-nightly.build.3689. what kind of information can i provide to get this fixed?

cheers,
marc


#8

Hi.

build 3725 in combination with 'LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so jitsi' is workin just fine. webcam is not upside-down anymore. thanks for the fix and the great work in general.

regards,
tikal

···

On 20/10/11 16:11, Sebastien Vincent wrote:

Hi again,

In SVN revision 9032 and in next build 3725 (currently baking), you can use the libv4l way (that we can find in many forum post about Linux upside down camera). In other words, launch Jitsi with:

LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so jitsi

Can you tell us if build 3725 works for you with this workaround ?

We will try to see if there is another way, more "automatic", to get it work for upside-down camera on Linux.

Regards,
--
Seb

Le 19/10/11 10:19, Sebastien Vincent a �crit :

Hi Tikal,

For skype/cheese/ekiga, do you have modify the way it starts with libv4l (i.e. LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype) ?

I see many Linux and even Windows users that has problem with upside-down camera as of 2011 (see http://forum.skype.com/index.php?showtopic=783733) and the fix that usealy works is to use the LD_PRELOAD method. That's why I ask.

For Jitsi, it is currently not working (no video) but I have an uncommited patch that should fix it so that we can use the following command: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so jitsi (maybe the libv4l so files are located in /usr/lib/i386-linux-gnu/libv4l /usr/lib/x86_64-linux-gnu/libv4l in debian like distributions).

I also remember that cheese has a vertical flip in its options, is it checked ?

Regards,
--
Seb

Le 18/10/11 14:22, Tikal a �crit :

Hello Seb.

Thanks for you tips. unfortunately the workarounds ar not working for me. I checked the ubuntu-thread and also tried the export-suggestion. I understand that my notebook-model might have a camera that is flipped upside-down. but i am wondering why cheese and ekiga show it the right way. are you sure this is a driver/webcam-problem?

Regards,
tikal

On 17/10/11 14:33, Sebastien Vincent wrote:

Hi Tikal,

It is known that on some laptop, camera are mounted upside-down.

You have some solutions :
- Your camera driver (module) has support for vertical flip but as I see it is uvcvideo so it is is not possible;
- Modify the kernel driver directly, it is a bit extreme but it was the solution I used for my previous Lenovo U330 laptop. Hopefully the kernel patches are at http://ubuntuforums.org/showthread.php?t=838210
- A more simple solution (I have personnaly never try this ones), try to launch Jitsi with:

export LIBV4LCONTROL_FLAGS=3&& jitsi

Regards,
--
Seb

Le 17/10/11 13:58, Tikal a �crit :

Hi Seb.

Here is the output of v4l-info:

root@ubuntu:~# v4l-info

### v4l2 device info [/dev/video0] ###
general info
      VIDIOC_QUERYCAP
      driver : "uvcvideo"
      card : "USB 2.0 UVC 0.3M Webcam"
      bus_info : "usb-0000:00:1a.7-3"
      version : 0.1.0
      capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
      VIDIOC_ENUMINPUT(0)
      index : 0
      name : "Camera 1"
      type : CAMERA
      audioset : 0
      tuner : 0
      std : 0x0 []
      status : 0x0 []

video capture
      VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
      index : 0
      type : VIDEO_CAPTURE
      flags : 0
      description : "YUV 4:2:2 (YUYV)"
      pixelformat : 0x56595559 [YUYV]
      VIDIOC_G_FMT(VIDEO_CAPTURE)
      type : VIDEO_CAPTURE
      fmt.pix.width : 640
      fmt.pix.height : 480
      fmt.pix.pixelformat : 0x56595559 [YUYV]
      fmt.pix.field : NONE
      fmt.pix.bytesperline : 1280
      fmt.pix.sizeimage : 614400
      fmt.pix.colorspace : SRGB
      fmt.pix.priv : 0

controls
      VIDIOC_QUERYCTRL(BASE+0)
      id : 9963776
      type : INTEGER
      name : "Brightness"
      minimum : -64
      maximum : 64
      step : 1
      default_value : 10
      flags : 0
      VIDIOC_QUERYCTRL(BASE+1)
      id : 9963777
      type : INTEGER
      name : "Contrast"
      minimum : 0
      maximum : 95
      step : 1
      default_value : 30
      flags : 0
      VIDIOC_QUERYCTRL(BASE+2)
      id : 9963778
      type : INTEGER
      name : "Saturation"
      minimum : 0
      maximum : 128
      step : 1
      default_value : 67
      flags : 0
      VIDIOC_QUERYCTRL(BASE+3)
      id : 9963779
      type : INTEGER
      name : "Hue"
      minimum : -40
      maximum : 40
      step : 1
      default_value : 3
      flags : 0

### video4linux device info [/dev/video0] ###
general info
      VIDIOCGCAP
      name : "USB 2.0 UVC 0.3M Webcam"
      type : 0x1 [CAPTURE]
      channels : 1
      audios : 0
      maxwidth : 640
      maxheight : 480
      minwidth : 48
      minheight : 32

channels
      VIDIOCGCHAN(0)
      channel : 0
      name : "Camera 1"
      tuners : 0
      flags : 0x0 []
      type : CAMERA
      norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
      VIDIOCGPICT
      brightness : 37887
      hue : 35225
      colour : 34303
      contrast : 20695
      whiteness : 14336
      depth : 16
      palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
      VIDIOCGWIN
      x : 0
      y : 0
      width : 640
      height : 480
      chromakey : 0
      flags : 0

this is the lsusb-output:

Bus 001 Device 003: ID 064e:a136 Suyin Corp.

The Notebook is a Asus UL30

Cheers,
Tikal

On 17/10/11 13:46, Sebastien Vincent wrote:

Hi Tikal,

Commit 8335 was for Windows only upside-down problem and not for Linux.

Can you provide output of v4l-info (as root or sudo) command please (package v4l-conf).

BTW what is the model/type of your laptop ?

Regards,
--
Seb

Le 17/10/11 12:06, Tikal a �crit :

hello.

commit 8335 is not working for my laptop, video is still upside-down. the video is good with skype, cheese and ekiga. i am using ubuntu 10.10, tried 11.10 as well. jitsi version is 1.0-beta1-nightly.build.3689. what kind of information can i provide to get this fixed?

cheers,
marc


#9

Hi Tikal,

Thanks for your feedback!

···

--
Seb

Le 21/10/11 12:27, Tikal a �crit :

Hi.

build 3725 in combination with 'LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so jitsi' is workin just fine. webcam is not upside-down anymore. thanks for the fix and the great work in general.

regards,
tikal

On 20/10/11 16:11, Sebastien Vincent wrote:

Hi again,

In SVN revision 9032 and in next build 3725 (currently baking), you can use the libv4l way (that we can find in many forum post about Linux upside down camera). In other words, launch Jitsi with:

LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so jitsi

Can you tell us if build 3725 works for you with this workaround ?

We will try to see if there is another way, more "automatic", to get it work for upside-down camera on Linux.

Regards,
--
Seb

Le 19/10/11 10:19, Sebastien Vincent a �crit :

Hi Tikal,

For skype/cheese/ekiga, do you have modify the way it starts with libv4l (i.e. LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype) ?

I see many Linux and even Windows users that has problem with upside-down camera as of 2011 (see http://forum.skype.com/index.php?showtopic=783733) and the fix that usealy works is to use the LD_PRELOAD method. That's why I ask.

For Jitsi, it is currently not working (no video) but I have an uncommited patch that should fix it so that we can use the following command: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so jitsi (maybe the libv4l so files are located in /usr/lib/i386-linux-gnu/libv4l /usr/lib/x86_64-linux-gnu/libv4l in debian like distributions).

I also remember that cheese has a vertical flip in its options, is it checked ?

Regards,
--
Seb

Le 18/10/11 14:22, Tikal a �crit :

Hello Seb.

Thanks for you tips. unfortunately the workarounds ar not working for me. I checked the ubuntu-thread and also tried the export-suggestion. I understand that my notebook-model might have a camera that is flipped upside-down. but i am wondering why cheese and ekiga show it the right way. are you sure this is a driver/webcam-problem?

Regards,
tikal

On 17/10/11 14:33, Sebastien Vincent wrote:

Hi Tikal,

It is known that on some laptop, camera are mounted upside-down.

You have some solutions :
- Your camera driver (module) has support for vertical flip but as I see it is uvcvideo so it is is not possible;
- Modify the kernel driver directly, it is a bit extreme but it was the solution I used for my previous Lenovo U330 laptop. Hopefully the kernel patches are at http://ubuntuforums.org/showthread.php?t=838210
- A more simple solution (I have personnaly never try this ones), try to launch Jitsi with:

export LIBV4LCONTROL_FLAGS=3&& jitsi

Regards,
--
Seb

Le 17/10/11 13:58, Tikal a �crit :

Hi Seb.

Here is the output of v4l-info:

root@ubuntu:~# v4l-info

### v4l2 device info [/dev/video0] ###
general info
       VIDIOC_QUERYCAP
       driver : "uvcvideo"
       card : "USB 2.0 UVC 0.3M Webcam"
       bus_info : "usb-0000:00:1a.7-3"
       version : 0.1.0
       capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
       VIDIOC_ENUMINPUT(0)
       index : 0
       name : "Camera 1"
       type : CAMERA
       audioset : 0
       tuner : 0
       std : 0x0 []
       status : 0x0 []

video capture
       VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
       index : 0
       type : VIDEO_CAPTURE
       flags : 0
       description : "YUV 4:2:2 (YUYV)"
       pixelformat : 0x56595559 [YUYV]
       VIDIOC_G_FMT(VIDEO_CAPTURE)
       type : VIDEO_CAPTURE
       fmt.pix.width : 640
       fmt.pix.height : 480
       fmt.pix.pixelformat : 0x56595559 [YUYV]
       fmt.pix.field : NONE
       fmt.pix.bytesperline : 1280
       fmt.pix.sizeimage : 614400
       fmt.pix.colorspace : SRGB
       fmt.pix.priv : 0

controls
       VIDIOC_QUERYCTRL(BASE+0)
       id : 9963776
       type : INTEGER
       name : "Brightness"
       minimum : -64
       maximum : 64
       step : 1
       default_value : 10
       flags : 0
       VIDIOC_QUERYCTRL(BASE+1)
       id : 9963777
       type : INTEGER
       name : "Contrast"
       minimum : 0
       maximum : 95
       step : 1
       default_value : 30
       flags : 0
       VIDIOC_QUERYCTRL(BASE+2)
       id : 9963778
       type : INTEGER
       name : "Saturation"
       minimum : 0
       maximum : 128
       step : 1
       default_value : 67
       flags : 0
       VIDIOC_QUERYCTRL(BASE+3)
       id : 9963779
       type : INTEGER
       name : "Hue"
       minimum : -40
       maximum : 40
       step : 1
       default_value : 3
       flags : 0

### video4linux device info [/dev/video0] ###
general info
       VIDIOCGCAP
       name : "USB 2.0 UVC 0.3M Webcam"
       type : 0x1 [CAPTURE]
       channels : 1
       audios : 0
       maxwidth : 640
       maxheight : 480
       minwidth : 48
       minheight : 32

channels
       VIDIOCGCHAN(0)
       channel : 0
       name : "Camera 1"
       tuners : 0
       flags : 0x0 []
       type : CAMERA
       norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
       VIDIOCGPICT
       brightness : 37887
       hue : 35225
       colour : 34303
       contrast : 20695
       whiteness : 14336
       depth : 16
       palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
       VIDIOCGWIN
       x : 0
       y : 0
       width : 640
       height : 480
       chromakey : 0
       flags : 0

this is the lsusb-output:

Bus 001 Device 003: ID 064e:a136 Suyin Corp.

The Notebook is a Asus UL30

Cheers,
Tikal

On 17/10/11 13:46, Sebastien Vincent wrote:

Hi Tikal,

Commit 8335 was for Windows only upside-down problem and not for Linux.

Can you provide output of v4l-info (as root or sudo) command please (package v4l-conf).

BTW what is the model/type of your laptop ?

Regards,
--
Seb

Le 17/10/11 12:06, Tikal a �crit :

hello.

commit 8335 is not working for my laptop, video is still upside-down. the video is good with skype, cheese and ekiga. i am using ubuntu 10.10, tried 11.10 as well. jitsi version is 1.0-beta1-nightly.build.3689. what kind of information can i provide to get this fixed?

cheers,
marc