[sip-comm-dev] Video Capture Device on Ubuntu


#1

Hello List,

I tried the whole week to get access to my capture device on a ubuntu 8.10 with FMJ/JMF, but it did not succeed.
Either the capture device could not be detected by FMJ/JMF, an exception with an unsupported format appeared
or the captured video was white. I used a logitech quickcam for notebooks and a logitech quickcam S3500.
Since the SC has also video streaming support, I hopefully look forward to get answers on possible hardware
configurations that work on other machines.

Greetings
raina

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hi,

we are currently using the lti-civil and FMJ datasource. Yes there are some input formats which are not supported by
lti-civil. I was going to look at one such case. Can you send the exception with the format number and also the output
of v4l-info command, which shows all the supported formats of your device.

damencho

Rainer Steinegger wrote:

···

Hello List,

I tried the whole week to get access to my capture device on a ubuntu 8.10 with FMJ/JMF, but it did not succeed.
Either the capture device could not be detected by FMJ/JMF, an exception with an unsupported format appeared
or the captured video was white. I used a logitech quickcam for notebooks and a logitech quickcam S3500.
Since the SC has also video streaming support, I hopefully look forward to get answers on possible hardware
configurations that work on other machines.

Greetings
raina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hello damencho,

thanks for the fast reply. I am quite a little bit frustrated by using
java to access the capture device, but I want to implement - within my
diploma thesis - a video conferencing software based on FMJ/JMF.
Therefore I have to evaluate the API, but without getting any picture
its really hard to do so :wink:

the exception is:
...
unknown or unsupported format: 1448695129
...

and the v4l-info command offers the following (i hope its the right one):
### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
  driver : "uvcvideo"
  card : "USB2.0 UVC PC Camera"
  bus_info : "0000:00:1a.7"
  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 : unknown
  fmt.pix.priv : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
  id : 9963776
  type : INTEGER
  name : "Brightness"
  minimum : 0
  maximum : 128
  step : 1
  default_value : 3
  flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
  id : 9963777
  type : INTEGER
  name : "Contrast"
  minimum : 0
  maximum : 10
  step : 1
  default_value : 10
  flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
  id : 9963778
  type : INTEGER
  name : "Saturation"
  minimum : 0
  maximum : 9
  step : 1
  default_value : 7
  flags : 0
    VIDIOC_QUERYCTRL(BASE+3)
  id : 9963779
  type : INTEGER
  name : "Hue"
  minimum : 0
  maximum : 5
  step : 1
  default_value : 0
  flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
  name : "USB2.0 UVC PC Camera"
  type : 0x1 [CAPTURE]
  channels : 1
  audios : 0
  maxwidth : 1280
  maxheight : 1024
  minwidth : 48
  minheight : 32

channels
ioctl VIDIOCGCHAN: Invalid argument

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
  brightness : 1536
  hue : 0
  colour : 50972
  contrast : 65535
  whiteness : 50790
  depth : 16
  palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

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

raina

Damian Minkov wrote:

···

Hi,

we are currently using the lti-civil and FMJ datasource. Yes there are
some input formats which are not supported by
lti-civil. I was going to look at one such case. Can you send the
exception with the format number and also the output
of v4l-info command, which shows all the supported formats of your device.

damencho

Rainer Steinegger wrote:

Hello List,

I tried the whole week to get access to my capture device on a ubuntu
8.10 with FMJ/JMF, but it did not succeed.
Either the capture device could not be detected by FMJ/JMF, an
exception with an unsupported format appeared
or the captured video was white. I used a logitech quickcam for
notebooks and a logitech quickcam S3500.
Since the SC has also video streaming support, I hopefully look
forward to get answers on possible hardware
configurations that work on other machines.

Greetings
raina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--

/**
* Rainer Steinegger
* Entwickler
*
* Synyx GmbH & Co. KG
* OpenSource Solutions
* Karlstr. 68
* 76137 Karlsruhe
*
* phone +49(0)721 66 24 866
* fax +49(0)721 66 48 877
* eMail rainer.steinegger@synyx.de
* www http://www.synyx.de
* irc irc.synyx.de
*
* Sitz der Gesellschaft: Karlsruhe
* Registergericht: Mannheim
* Handelsregisternummer: HRA 4793
* USt-IdNr.: DE249264296
*
* Komplement�rin: Elatech Verwaltungs GmbH
* Sitz der Gesellschaft: Karlsruhe
* Gesch�ftsf�hrer: Markus Daniel
* Registergericht: Mannheim
* Handelsregisternummer: HRB 7250
*/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi,

as I see the supported format for your camera is YUYV. We made some changes to lti-cvil we also submitted most of the changes to
their mailing list, but I think the guys didn't have time to integrate it into their trunk and publish new versions of the lib.
You can grab the jars and native libs from sip-communicator trunk. Try with them to see have we added successfully support and for your device.
The files in trunk you need :
- lib/installer-exclude/lti-civil-no_s_w_t.jar (I don't think this is needed the changes are only in native code)
- lib/native/linux/libcivil.so
- lib/native/linux-64/libcivil.so

Cheers
damencho

Rainer Steinegger wrote:

···

Hello damencho,

thanks for the fast reply. I am quite a little bit frustrated by using
java to access the capture device, but I want to implement - within my
diploma thesis - a video conferencing software based on FMJ/JMF.
Therefore I have to evaluate the API, but without getting any picture
its really hard to do so :wink:

the exception is:
...
unknown or unsupported format: 1448695129
...

and the v4l-info command offers the following (i hope its the right one):
### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
  driver : "uvcvideo"
  card : "USB2.0 UVC PC Camera"
  bus_info : "0000:00:1a.7"
  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 : unknown
  fmt.pix.priv : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
  id : 9963776
  type : INTEGER
  name : "Brightness"
  minimum : 0
  maximum : 128
  step : 1
  default_value : 3
  flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
  id : 9963777
  type : INTEGER
  name : "Contrast"
  minimum : 0
  maximum : 10
  step : 1
  default_value : 10
  flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
  id : 9963778
  type : INTEGER
  name : "Saturation"
  minimum : 0
  maximum : 9
  step : 1
  default_value : 7
  flags : 0
    VIDIOC_QUERYCTRL(BASE+3)
  id : 9963779
  type : INTEGER
  name : "Hue"
  minimum : 0
  maximum : 5
  step : 1
  default_value : 0
  flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
  name : "USB2.0 UVC PC Camera"
  type : 0x1 [CAPTURE]
  channels : 1
  audios : 0
  maxwidth : 1280
  maxheight : 1024
  minwidth : 48
  minheight : 32

channels
ioctl VIDIOCGCHAN: Invalid argument

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
  brightness : 1536
  hue : 0
  colour : 50972
  contrast : 65535
  whiteness : 50790
  depth : 16
  palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

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

raina

Damian Minkov wrote:
  

Hi,

we are currently using the lti-civil and FMJ datasource. Yes there are
some input formats which are not supported by
lti-civil. I was going to look at one such case. Can you send the
exception with the format number and also the output
of v4l-info command, which shows all the supported formats of your device.

damencho

Rainer Steinegger wrote:
    

Hello List,

I tried the whole week to get access to my capture device on a ubuntu
8.10 with FMJ/JMF, but it did not succeed.
Either the capture device could not be detected by FMJ/JMF, an
exception with an unsupported format appeared
or the captured video was white. I used a logitech quickcam for
notebooks and a logitech quickcam S3500.
Since the SC has also video streaming support, I hopefully look
forward to get answers on possible hardware
configurations that work on other machines.

Greetings
raina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Hello damencho,

with the native libraries out of the trunk the capturing works, but I am
faced with a new problem. The captured video does not have the - erm -
natural colors (have a look at http://steinegger.net/capture.png). I
tried some other configurations but the result was always the same, the
dimension and anything else does not change at all.
Do you have any idea to solve this problem?

Greetings
raina

Damian Minkov wrote:

···

Hi,

as I see the supported format for your camera is YUYV. We made some
changes to lti-cvil we also submitted most of the changes to
their mailing list, but I think the guys didn't have time to integrate
it into their trunk and publish new versions of the lib.
You can grab the jars and native libs from sip-communicator trunk. Try
with them to see have we added successfully support and for your device.
The files in trunk you need :
- lib/installer-exclude/lti-civil-no_s_w_t.jar (I don't think this is
needed the changes are only in native code)
- lib/native/linux/libcivil.so
- lib/native/linux-64/libcivil.so

Cheers
damencho

Rainer Steinegger wrote:

Hello damencho,

thanks for the fast reply. I am quite a little bit frustrated by using
java to access the capture device, but I want to implement - within my
diploma thesis - a video conferencing software based on FMJ/JMF.
Therefore I have to evaluate the API, but without getting any picture
its really hard to do so :wink:

the exception is:
...
unknown or unsupported format: 1448695129
...

and the v4l-info command offers the following (i hope its the right one):
### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
    driver : "uvcvideo"
    card : "USB2.0 UVC PC Camera"
    bus_info : "0000:00:1a.7"
    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 : unknown
    fmt.pix.priv : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
    id : 9963776
    type : INTEGER
    name : "Brightness"
    minimum : 0
    maximum : 128
    step : 1
    default_value : 3
    flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
    id : 9963777
    type : INTEGER
    name : "Contrast"
    minimum : 0
    maximum : 10
    step : 1
    default_value : 10
    flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
    id : 9963778
    type : INTEGER
    name : "Saturation"
    minimum : 0
    maximum : 9
    step : 1
    default_value : 7
    flags : 0
    VIDIOC_QUERYCTRL(BASE+3)
    id : 9963779
    type : INTEGER
    name : "Hue"
    minimum : 0
    maximum : 5
    step : 1
    default_value : 0
    flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
    name : "USB2.0 UVC PC Camera"
    type : 0x1 [CAPTURE]
    channels : 1
    audios : 0
    maxwidth : 1280
    maxheight : 1024
    minwidth : 48
    minheight : 32

channels
ioctl VIDIOCGCHAN: Invalid argument

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
    brightness : 1536
    hue : 0
    colour : 50972
    contrast : 65535
    whiteness : 50790
    depth : 16
    palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

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

raina

Damian Minkov wrote:

Hi,

we are currently using the lti-civil and FMJ datasource. Yes there are
some input formats which are not supported by
lti-civil. I was going to look at one such case. Can you send the
exception with the format number and also the output
of v4l-info command, which shows all the supported formats of your
device.

damencho

Rainer Steinegger wrote:
   

Hello List,

I tried the whole week to get access to my capture device on a ubuntu
8.10 with FMJ/JMF, but it did not succeed.
Either the capture device could not be detected by FMJ/JMF, an
exception with an unsupported format appeared
or the captured video was white. I used a logitech quickcam for
notebooks and a logitech quickcam S3500.
Since the SC has also video streaming support, I hopefully look
forward to get answers on possible hardware
configurations that work on other machines.

Greetings
raina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--

/**
* Rainer Steinegger
* Entwickler
*
* Synyx GmbH & Co. KG
* OpenSource Solutions
* Karlstr. 68
* 76137 Karlsruhe
*
* phone +49(0)721 66 24 866
* fax +49(0)721 66 48 877
* eMail rainer.steinegger@synyx.de
* www http://www.synyx.de
* irc irc.synyx.de
*
* Sitz der Gesellschaft: Karlsruhe
* Registergericht: Mannheim
* Handelsregisternummer: HRA 4793
* USt-IdNr.: DE249264296
*
* Komplement�rin: Elatech Verwaltungs GmbH
* Sitz der Gesellschaft: Karlsruhe
* Gesch�ftsf�hrer: Markus Daniel
* Registergericht: Mannheim
* Handelsregisternummer: HRB 7250
*/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Hi again,

last week I saw such a case (the colors). And I have a machine and I can reproduce the problem.
I'll be fixing it today so stay tuned. I've just entered an issue for this problem:
https://sip-communicator.dev.java.net/issues/show_bug.cgi?id=575

damencho

Rainer Steinegger wrote:

···

Hello damencho,

with the native libraries out of the trunk the capturing works, but I am
faced with a new problem. The captured video does not have the - erm -
natural colors (have a look at http://steinegger.net/capture.png). I
tried some other configurations but the result was always the same, the
dimension and anything else does not change at all.
Do you have any idea to solve this problem?

Greetings
raina

Damian Minkov wrote:
  

Hi,

as I see the supported format for your camera is YUYV. We made some
changes to lti-cvil we also submitted most of the changes to
their mailing list, but I think the guys didn't have time to integrate
it into their trunk and publish new versions of the lib.
You can grab the jars and native libs from sip-communicator trunk. Try
with them to see have we added successfully support and for your device.
The files in trunk you need :
- lib/installer-exclude/lti-civil-no_s_w_t.jar (I don't think this is
needed the changes are only in native code)
- lib/native/linux/libcivil.so
- lib/native/linux-64/libcivil.so

Cheers
damencho

Rainer Steinegger wrote:
    

Hello damencho,

thanks for the fast reply. I am quite a little bit frustrated by using
java to access the capture device, but I want to implement - within my
diploma thesis - a video conferencing software based on FMJ/JMF.
Therefore I have to evaluate the API, but without getting any picture
its really hard to do so :wink:

the exception is:
...
unknown or unsupported format: 1448695129
...

and the v4l-info command offers the following (i hope its the right one):
### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
    driver : "uvcvideo"
    card : "USB2.0 UVC PC Camera"
    bus_info : "0000:00:1a.7"
    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 : unknown
    fmt.pix.priv : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
    id : 9963776
    type : INTEGER
    name : "Brightness"
    minimum : 0
    maximum : 128
    step : 1
    default_value : 3
    flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
    id : 9963777
    type : INTEGER
    name : "Contrast"
    minimum : 0
    maximum : 10
    step : 1
    default_value : 10
    flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
    id : 9963778
    type : INTEGER
    name : "Saturation"
    minimum : 0
    maximum : 9
    step : 1
    default_value : 7
    flags : 0
    VIDIOC_QUERYCTRL(BASE+3)
    id : 9963779
    type : INTEGER
    name : "Hue"
    minimum : 0
    maximum : 5
    step : 1
    default_value : 0
    flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
    name : "USB2.0 UVC PC Camera"
    type : 0x1 [CAPTURE]
    channels : 1
    audios : 0
    maxwidth : 1280
    maxheight : 1024
    minwidth : 48
    minheight : 32

channels
ioctl VIDIOCGCHAN: Invalid argument

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
    brightness : 1536
    hue : 0
    colour : 50972
    contrast : 65535
    whiteness : 50790
    depth : 16
    palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

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

raina

Damian Minkov wrote:

Hi,

we are currently using the lti-civil and FMJ datasource. Yes there are
some input formats which are not supported by
lti-civil. I was going to look at one such case. Can you send the
exception with the format number and also the output
of v4l-info command, which shows all the supported formats of your
device.

damencho

Rainer Steinegger wrote:
   

Hello List,

I tried the whole week to get access to my capture device on a ubuntu
8.10 with FMJ/JMF, but it did not succeed.
Either the capture device could not be detected by FMJ/JMF, an
exception with an unsupported format appeared
or the captured video was white. I used a logitech quickcam for
notebooks and a logitech quickcam S3500.
Since the SC has also video streaming support, I hopefully look
forward to get answers on possible hardware
configurations that work on other machines.

Greetings
raina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

Hi,

I've just committed new changes to civil libs for linux.
Can you test them and report does they fix your problem.

Thanks
damencho

Rainer Steinegger wrote:

···

Hello damencho,

with the native libraries out of the trunk the capturing works, but I am
faced with a new problem. The captured video does not have the - erm -
natural colors (have a look at http://steinegger.net/capture.png). I
tried some other configurations but the result was always the same, the
dimension and anything else does not change at all.
Do you have any idea to solve this problem?

Greetings
raina

Damian Minkov wrote:
  

Hi,

as I see the supported format for your camera is YUYV. We made some
changes to lti-cvil we also submitted most of the changes to
their mailing list, but I think the guys didn't have time to integrate
it into their trunk and publish new versions of the lib.
You can grab the jars and native libs from sip-communicator trunk. Try
with them to see have we added successfully support and for your device.
The files in trunk you need :
- lib/installer-exclude/lti-civil-no_s_w_t.jar (I don't think this is
needed the changes are only in native code)
- lib/native/linux/libcivil.so
- lib/native/linux-64/libcivil.so

Cheers
damencho

Rainer Steinegger wrote:
    

Hello damencho,

thanks for the fast reply. I am quite a little bit frustrated by using
java to access the capture device, but I want to implement - within my
diploma thesis - a video conferencing software based on FMJ/JMF.
Therefore I have to evaluate the API, but without getting any picture
its really hard to do so :wink:

the exception is:
...
unknown or unsupported format: 1448695129
...

and the v4l-info command offers the following (i hope its the right one):
### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
    driver : "uvcvideo"
    card : "USB2.0 UVC PC Camera"
    bus_info : "0000:00:1a.7"
    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 : unknown
    fmt.pix.priv : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
    id : 9963776
    type : INTEGER
    name : "Brightness"
    minimum : 0
    maximum : 128
    step : 1
    default_value : 3
    flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
    id : 9963777
    type : INTEGER
    name : "Contrast"
    minimum : 0
    maximum : 10
    step : 1
    default_value : 10
    flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
    id : 9963778
    type : INTEGER
    name : "Saturation"
    minimum : 0
    maximum : 9
    step : 1
    default_value : 7
    flags : 0
    VIDIOC_QUERYCTRL(BASE+3)
    id : 9963779
    type : INTEGER
    name : "Hue"
    minimum : 0
    maximum : 5
    step : 1
    default_value : 0
    flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
    name : "USB2.0 UVC PC Camera"
    type : 0x1 [CAPTURE]
    channels : 1
    audios : 0
    maxwidth : 1280
    maxheight : 1024
    minwidth : 48
    minheight : 32

channels
ioctl VIDIOCGCHAN: Invalid argument

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
    brightness : 1536
    hue : 0
    colour : 50972
    contrast : 65535
    whiteness : 50790
    depth : 16
    palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

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

raina

Damian Minkov wrote:

Hi,

we are currently using the lti-civil and FMJ datasource. Yes there are
some input formats which are not supported by
lti-civil. I was going to look at one such case. Can you send the
exception with the format number and also the output
of v4l-info command, which shows all the supported formats of your
device.

damencho

Rainer Steinegger wrote:
   

Hello List,

I tried the whole week to get access to my capture device on a ubuntu
8.10 with FMJ/JMF, but it did not succeed.
Either the capture device could not be detected by FMJ/JMF, an
exception with an unsupported format appeared
or the captured video was white. I used a logitech quickcam for
notebooks and a logitech quickcam S3500.
Since the SC has also video streaming support, I hopefully look
forward to get answers on possible hardware
configurations that work on other machines.

Greetings
raina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#8

Hello damencho,

great work ! It just works like expected.

Thanks

Damian Minkov wrote:

···

Hi,

I've just committed new changes to civil libs for linux.
Can you test them and report does they fix your problem.

Thanks
damencho

Rainer Steinegger wrote:

Hello damencho,

with the native libraries out of the trunk the capturing works, but I am
faced with a new problem. The captured video does not have the - erm -
natural colors (have a look at http://steinegger.net/capture.png). I
tried some other configurations but the result was always the same, the
dimension and anything else does not change at all.
Do you have any idea to solve this problem?

Greetings
raina

Damian Minkov wrote:

Hi,

as I see the supported format for your camera is YUYV. We made some
changes to lti-cvil we also submitted most of the changes to
their mailing list, but I think the guys didn't have time to integrate
it into their trunk and publish new versions of the lib.
You can grab the jars and native libs from sip-communicator trunk. Try
with them to see have we added successfully support and for your device.
The files in trunk you need :
- lib/installer-exclude/lti-civil-no_s_w_t.jar (I don't think this is
needed the changes are only in native code)
- lib/native/linux/libcivil.so
- lib/native/linux-64/libcivil.so

Cheers
damencho

Rainer Steinegger wrote:
   

Hello damencho,

thanks for the fast reply. I am quite a little bit frustrated by using
java to access the capture device, but I want to implement - within my
diploma thesis - a video conferencing software based on FMJ/JMF.
Therefore I have to evaluate the API, but without getting any picture
its really hard to do so :wink:

the exception is:
...
unknown or unsupported format: 1448695129
...

and the v4l-info command offers the following (i hope its the right
one):
### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
    driver : "uvcvideo"
    card : "USB2.0 UVC PC Camera"
    bus_info : "0000:00:1a.7"
    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 : unknown
    fmt.pix.priv : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
    id : 9963776
    type : INTEGER
    name : "Brightness"
    minimum : 0
    maximum : 128
    step : 1
    default_value : 3
    flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
    id : 9963777
    type : INTEGER
    name : "Contrast"
    minimum : 0
    maximum : 10
    step : 1
    default_value : 10
    flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
    id : 9963778
    type : INTEGER
    name : "Saturation"
    minimum : 0
    maximum : 9
    step : 1
    default_value : 7
    flags : 0
    VIDIOC_QUERYCTRL(BASE+3)
    id : 9963779
    type : INTEGER
    name : "Hue"
    minimum : 0
    maximum : 5
    step : 1
    default_value : 0
    flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
    name : "USB2.0 UVC PC Camera"
    type : 0x1 [CAPTURE]
    channels : 1
    audios : 0
    maxwidth : 1280
    maxheight : 1024
    minwidth : 48
    minheight : 32

channels
ioctl VIDIOCGCHAN: Invalid argument

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
    brightness : 1536
    hue : 0
    colour : 50972
    contrast : 65535
    whiteness : 50790
    depth : 16
    palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

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

raina

Damian Minkov wrote:

Hi,

we are currently using the lti-civil and FMJ datasource. Yes there are
some input formats which are not supported by
lti-civil. I was going to look at one such case. Can you send the
exception with the format number and also the output
of v4l-info command, which shows all the supported formats of your
device.

damencho

Rainer Steinegger wrote:
          

Hello List,

I tried the whole week to get access to my capture device on a ubuntu
8.10 with FMJ/JMF, but it did not succeed.
Either the capture device could not be detected by FMJ/JMF, an
exception with an unsupported format appeared
or the captured video was white. I used a logitech quickcam for
notebooks and a logitech quickcam S3500.
Since the SC has also video streaming support, I hopefully look
forward to get answers on possible hardware
configurations that work on other machines.

Greetings
raina

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail:
dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--

/**
* Rainer Steinegger
* Entwickler
*
* Synyx GmbH & Co. KG
* OpenSource Solutions
* Karlstr. 68
* 76137 Karlsruhe
*
* phone +49(0)721 66 24 866
* fax +49(0)721 66 48 877
* eMail rainer.steinegger@synyx.de
* www http://www.synyx.de
* irc irc.synyx.de
*
* Sitz der Gesellschaft: Karlsruhe
* Registergericht: Mannheim
* Handelsregisternummer: HRA 4793
* USt-IdNr.: DE249264296
*
* Komplement�rin: Elatech Verwaltungs GmbH
* Sitz der Gesellschaft: Karlsruhe
* Gesch�ftsf�hrer: Markus Daniel
* Registergericht: Mannheim
* Handelsregisternummer: HRB 7250
*/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#9

Hy Damencho

I got the same problem with my webcam.

The exception :
unknown or unsupported format: 861030210

Output of v4l-info :

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
  driver : "stk11xx"
  card : "Syntek USB Video Camera"
  bus_info : "usb-0000:00:1d.7-6"
  version : 1.3.1
  capabilities : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards
    VIDIOC_ENUMSTD(0)
  index : 0
  id : 0x0 []
  name : "webcam"
  frameperiod.numerator : 0
  frameperiod.denominator : 0
  framelines : 0

inputs
    VIDIOC_ENUMINPUT(0)
  index : 0
  name : "USB"
  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 : "rgb24"
  pixelformat : 0x33424752 [RGB3]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
  type : VIDEO_CAPTURE
  fmt.pix.width : 640
  fmt.pix.height : 480
  fmt.pix.pixelformat : 0x33524742 [BGR3]
  fmt.pix.field : NONE
  fmt.pix.bytesperline : 1920
  fmt.pix.sizeimage : 921600
  fmt.pix.colorspace : SRGB
  fmt.pix.priv : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
  id : 9963776
  type : INTEGER
  name : "Brightness"
  minimum : 0
  maximum : 65280
  step : 1
  default_value : 32512
  flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
  id : 9963777
  type : INTEGER
  name : "Contrast"
  minimum : 0
  maximum : 65280
  step : 1
  default_value : 32512
  flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
  id : 9963778
  type : INTEGER
  name : "Saturation"
  minimum : 0
  maximum : 65280
  step : 1
  default_value : 32512
  flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
  name : "stk11xx"
  type : 0x1 [CAPTURE]
  channels : 1
  audios : 0
  maxwidth : 640
  maxheight : 480
  minwidth : 80
  minheight : 60

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

tuner
ioctl VIDIOCGTUNER: Unknown error 515

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
  brightness : 32767
  hue : 65535
  colour : 32767
  contrast : 32767
  whiteness : 32767
  depth : 24
  palette : RGB24

buffer
    VIDIOCGFBUF
  base : (nil)
  height : 0
  width : 0
  depth : 0
  bytesperline : 0

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

Thanks,

Damien

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#10

Hi,

thank you for your help resolving this issue.
The changes can be found in r5034.

damencho

Damien Roth wrote:

···

Hy Damencho

I got the same problem with my webcam.

The exception :
unknown or unsupported format: 861030210

Output of v4l-info :

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
  driver : "stk11xx"
  card : "Syntek USB Video Camera"
  bus_info : "usb-0000:00:1d.7-6"
  version : 1.3.1
  capabilities : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards
    VIDIOC_ENUMSTD(0)
  index : 0
  id : 0x0 []
  name : "webcam"
  frameperiod.numerator : 0
  frameperiod.denominator : 0
  framelines : 0

inputs
    VIDIOC_ENUMINPUT(0)
  index : 0
  name : "USB"
  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 : "rgb24"
  pixelformat : 0x33424752 [RGB3]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
  type : VIDEO_CAPTURE
  fmt.pix.width : 640
  fmt.pix.height : 480
  fmt.pix.pixelformat : 0x33524742 [BGR3]
  fmt.pix.field : NONE
  fmt.pix.bytesperline : 1920
  fmt.pix.sizeimage : 921600
  fmt.pix.colorspace : SRGB
  fmt.pix.priv : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
  id : 9963776
  type : INTEGER
  name : "Brightness"
  minimum : 0
  maximum : 65280
  step : 1
  default_value : 32512
  flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
  id : 9963777
  type : INTEGER
  name : "Contrast"
  minimum : 0
  maximum : 65280
  step : 1
  default_value : 32512
  flags : 0
    VIDIOC_QUERYCTRL(BASE+2)
  id : 9963778
  type : INTEGER
  name : "Saturation"
  minimum : 0
  maximum : 65280
  step : 1
  default_value : 32512
  flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
  name : "stk11xx"
  type : 0x1 [CAPTURE]
  channels : 1
  audios : 0
  maxwidth : 640
  maxheight : 480
  minwidth : 80
  minheight : 60

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

tuner
ioctl VIDIOCGTUNER: Unknown error 515

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
  brightness : 32767
  hue : 65535
  colour : 32767
  contrast : 32767
  whiteness : 32767
  depth : 24
  palette : RGB24

buffer
    VIDIOCGFBUF
  base : (nil)
  height : 0
  width : 0
  depth : 0
  bytesperline : 0

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

Thanks,

Damien

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#11

Hi

I just tested the webcam and it work perfectly :slight_smile:

But, I can't have a preview in the configuration panel.

In the attached file, you can see the exceptions throwed (there is
some GTK errors related to my current theme).

webcam.log (20.5 KB)

···

+
Damien


#12

Hi Damien,

Thanks. It's a known issue filed as #567 (Linux Tool>Options>Media
video preview doesn't work).

Regards,
Lubo

···

On Thu, Feb 19, 2009 at 12:15 PM, Damien Roth <damien.roth@gmail.com> wrote:

Hi

I just tested the webcam and it work perfectly :slight_smile:

But, I can't have a preview in the configuration panel.

In the attached file, you can see the exceptions throwed (there is
some GTK errors related to my current theme).

+
Damien

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#13

Hello again,

I am trying to integrate the civil libraries out of the nightly build.
But I am faced with the problem that the captured swing view component
has the dimension 0,0. The light of the webcam also started and it seems
all working fine except for the missing video.

Has anybody made the same experience and solved it already?

Regards,
raina

Lubomir Marinov wrote:

···

Hi Damien,

Thanks. It's a known issue filed as #567 (Linux Tool>Options>Media
video preview doesn't work).

Regards,
Lubo

On Thu, Feb 19, 2009 at 12:15 PM, Damien Roth <damien.roth@gmail.com> wrote:

Hi

I just tested the webcam and it work perfectly :slight_smile:

But, I can't have a preview in the configuration panel.

In the attached file, you can see the exceptions throwed (there is
some GTK errors related to my current theme).

+
Damien

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

--

/**
* Rainer Steinegger
* Entwickler
*
* Synyx GmbH & Co. KG
* OpenSource Solutions
* Karlstr. 68
* 76137 Karlsruhe
*
* phone +49(0)721 66 24 866
* fax +49(0)721 66 48 877
* eMail rainer.steinegger@synyx.de
* www http://www.synyx.de
* irc irc.synyx.de
*
* Sitz der Gesellschaft: Karlsruhe
* Registergericht: Mannheim
* Handelsregisternummer: HRA 4793
* USt-IdNr.: DE249264296
*
* Komplement�rin: Elatech Verwaltungs GmbH
* Sitz der Gesellschaft: Karlsruhe
* Gesch�ftsf�hrer: Markus Daniel
* Registergericht: Mannheim
* Handelsregisternummer: HRB 7250
*/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net