Author Topic: WebCam Driver Question  (Read 62759 times)

Remy

  • Hero Member
  • *****
  • Posts: 761
  • Karma: +12/-1
    • View Profile
Re: WebCam Driver Question
« Reply #60 on: February 14, 2021, 02:00:41 am »
High Martin,

First check your webcam is working.
Try this for video
webcam /m/s |ffprobe -v error -show_entries stream=width,height -of default=noprint_wrappers=1:nokey=0 -i -
You should get default video size if it is working or an error message
If mjpeg isn't working ! try yuyv
webcam /u/s |ffprobe -v error -show_entries stream=width,height -of default=noprint_wrappers=1:nokey=0 -i -

Try this for audio
(from your output, my be you'll have 4 supported sample rate)
webcam /a24000 |ffprobe -v error -show_streams \PIPE\Webcam\Audio |more
You'll find in it 24000 or if not supporting, default supported sample rate is provided into the displayed messages
note: |more for better review messages or you can route them into a text file

You can test other sample rate to find out which ones are supported
Here, same sample rates you can try:
8000  11025 16000 24000 32000 22050 44100 48000

If you get information in both cases, than your webcam works.
Then, after starting webcam /a24000, run ffmpeg -y -i \PIPE\Webcam\Audio -c:a copy audio.wav 
« Last Edit: February 14, 2021, 02:14:42 am by Remy »

Wim Brul

  • Sr. Member
  • ****
  • Posts: 300
  • Karma: +26/-0
    • View Profile
    • Wim's home page
Re: WebCam Driver Question
« Reply #61 on: February 14, 2021, 12:40:59 pm »
Hi Wim

This is what I get:

webcam.exe /a24000:
Code: [Select]
[X:\HOME\DOWNLOADS\WEBCAM00-20210120]webcam.exe /a24000
started.
format:mjpg
 acquire webcam
 set configuration
 negotiate video format
/a server (audio) On-Line.
 obtain video format
 commit video format
 set video alt interface
 set audio frequency
 starting iso video
 set audio mike volume
 set audio alt interface
 starting iso audio
[00000057]
obtain audio error.

Hi Martin, thank you for testing.  The [00000057] error code means parameter error and it occurs because webcam.exe uses the wrong isochronous frame length for audio. I have to correct that. This error has to be corrected first so do not spend more time in trying to get it working for audio.

Wim

P.S. Added: I think I got it fixed. Use the attached Webcam00-20210214.zip and see what does.
« Last Edit: February 14, 2021, 04:40:59 pm by Wim Brul »

Wim Brul

  • Sr. Member
  • ****
  • Posts: 300
  • Karma: +26/-0
    • View Profile
    • Wim's home page
Re: WebCam Driver Question
« Reply #62 on: February 01, 2022, 11:10:53 am »
I have now released UVC Webcam Server for OS/2 (ArcaOS,eComStation) as open source. Enjoy.
« Last Edit: February 01, 2022, 11:13:54 am by Wim Brul »

OS4User

  • Sr. Member
  • ****
  • Posts: 406
  • Karma: +10/-0
    • View Profile
Re: WebCam Driver Question
« Reply #63 on: February 01, 2022, 07:34:13 pm »
I have now released UVC Webcam Server for OS/2 (ArcaOS,eComStation) as open source. Enjoy.

Tnx, Wim,  for you excellent work.

Igor

  • Full Member
  • ***
  • Posts: 100
  • Karma: +12/-0
    • View Profile
Re: WebCam Driver Question
« Reply #64 on: March 20, 2022, 08:29:08 pm »
Hi Wim

Code: [Select]
webcam /a /n
started.
format:yuyv
 acquire webcam
 set configuration
 negotiate video format
 obtain video format
 commit video format
 set video alt interface
/n server (video) On-Line.
 starting iso video

USB Dock: Unknown device
Identifier: 09da:2695

<<< Device Description >>>
Type :01
USB Rev :200
Class : Miscellaneous Device (0xEF)
Subclass : Common Class (0x02)
Protocol : Interface Association (0x01)
Max. packetsize :64
Vendor  ID :0x09DA
Product ID :0x2695
Device Release# :0100
Number of Configurations:1

Configuration: 0
Length : 941
ConfigurationValue : 1
Attributes : 0x80
MaxPower : 0xFA
NumInterfaces : 4
USB_DT_UNKNOWN_FOR_ME

Interface: 0
AlternateSetting : 0
Class : Video (0x0E)
SubClass : Video Control (0x01)
Protocol : Unknown (0x00)
Endpoints : 1
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME

Endpoint: 0
Address : 0x83
Attributes : 0x03 (Irq)
MaxPacketSize : 16
Interval : 6
USB_DT_UNKNOWN_FOR_ME

Interface: 1
AlternateSetting : 0
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 0
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME

Interface: 1
AlternateSetting : 1
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 128
Interval : 1

Interface: 1
AlternateSetting : 2
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 256
Interval : 1

Interface: 1
AlternateSetting : 3
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 800
Interval : 1

Interface: 1
AlternateSetting : 4
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 2848
Interval : 1

Interface: 1
AlternateSetting : 5
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 4896
Interval : 1

Interface: 1
AlternateSetting : 6
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 5120
Interval : 1
USB_DT_UNKNOWN_FOR_ME

Interface: 2
AlternateSetting : 0
Class : Audio (0x01)
SubClass : Control Device (0x01)
Protocol : Unknown (0x00)
Endpoints : 0
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME

Interface: 3
AlternateSetting : 0
Class : Audio (0x01)
SubClass : Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 0

Interface: 3
AlternateSetting : 1
Class : Audio (0x01)
SubClass : Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME

Endpoint: 0
Address : 0x84
Attributes : 0x05 (Iso)
MaxPacketSize : 192
Interval : 4
USB_DT_UNKNOWN_FOR_ME

I do not work with the sound from the camera. Could you help with this?
« Last Edit: March 20, 2022, 08:35:44 pm by Igor »

Remy

  • Hero Member
  • *****
  • Posts: 761
  • Karma: +12/-1
    • View Profile
Re: WebCam Driver Question
« Reply #65 on: March 21, 2022, 12:16:33 am »
using pipe video only:
webcam /d09DA:2695:0100/n/i1  !
« Last Edit: March 21, 2022, 12:19:41 am by Remy »

Igor

  • Full Member
  • ***
  • Posts: 100
  • Karma: +12/-0
    • View Profile
Re: WebCam Driver Question
« Reply #66 on: March 21, 2022, 12:25:43 am »
using pipe video only:
webcam /d09DA:2695:0100/n/i1  !

Video works in default configuration. Audio does not work (microphone).

Wim Brul

  • Sr. Member
  • ****
  • Posts: 300
  • Karma: +26/-0
    • View Profile
    • Wim's home page
Re: WebCam Driver Question
« Reply #67 on: March 21, 2022, 12:29:59 pm »
Hi Wim

Code: [Select]
webcam /a /n
started.
format:yuyv
 acquire webcam
 set configuration
 negotiate video format
 obtain video format
 commit video format
 set video alt interface
/n server (video) On-Line.
 starting iso video

USB Dock: Unknown device
Identifier: 09da:2695

<<< Device Description >>>
Type :01
USB Rev :200
Class : Miscellaneous Device (0xEF)
Subclass : Common Class (0x02)
Protocol : Interface Association (0x01)
Max. packetsize :64
Vendor  ID :0x09DA
Product ID :0x2695
Device Release# :0100
Number of Configurations:1

Configuration: 0
Length : 941
ConfigurationValue : 1
Attributes : 0x80
MaxPower : 0xFA
NumInterfaces : 4
USB_DT_UNKNOWN_FOR_ME

Interface: 0
AlternateSetting : 0
Class : Video (0x0E)
SubClass : Video Control (0x01)
Protocol : Unknown (0x00)
Endpoints : 1
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME

Endpoint: 0
Address : 0x83
Attributes : 0x03 (Irq)
MaxPacketSize : 16
Interval : 6
USB_DT_UNKNOWN_FOR_ME

Interface: 1
AlternateSetting : 0
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 0
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME

Interface: 1
AlternateSetting : 1
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 128
Interval : 1

Interface: 1
AlternateSetting : 2
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 256
Interval : 1

Interface: 1
AlternateSetting : 3
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 800
Interval : 1

Interface: 1
AlternateSetting : 4
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 2848
Interval : 1

Interface: 1
AlternateSetting : 5
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 4896
Interval : 1

Interface: 1
AlternateSetting : 6
Class : Video (0x0E)
SubClass : Video Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1

Endpoint: 0
Address : 0x81
Attributes : 0x05 (Iso)
MaxPacketSize : 5120
Interval : 1
USB_DT_UNKNOWN_FOR_ME

Interface: 2
AlternateSetting : 0
Class : Audio (0x01)
SubClass : Control Device (0x01)
Protocol : Unknown (0x00)
Endpoints : 0
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME

Interface: 3
AlternateSetting : 0
Class : Audio (0x01)
SubClass : Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 0

Interface: 3
AlternateSetting : 1
Class : Audio (0x01)
SubClass : Streaming (0x02)
Protocol : Unknown (0x00)
Endpoints : 1
USB_DT_UNKNOWN_FOR_ME
USB_DT_UNKNOWN_FOR_ME

Endpoint: 0
Address : 0x84
Attributes : 0x05 (Iso)
MaxPacketSize : 192
Interval : 4
USB_DT_UNKNOWN_FOR_ME

I do not work with the sound from the camera. Could you help with this?

Hi Igor,

Let me try. I have some questions for you to answer first...

1. Are you using ArcaOS or eComStation or what? Which version?
2. Are you using ArcaOS or Lars Erdmann drivers? Which version? 
3. Is this camera the only camera connected to your system?
4. Does your laptop have a builtin camera? Is it enabled in the bios?
5  What version of webcam.exe are you using?

Following Remy's suggestion /dN you select the proper camera to be used.
So "webcam /d09DA:2695:0100 /a" forces to use the proper camera.

Following Remy's suggestion /iN you reduce video bandwidth.
So "webcam /d09DA:2695:0100 /a /i1 uses less video bandwidth.

Wim

Igor

  • Full Member
  • ***
  • Posts: 100
  • Karma: +12/-0
    • View Profile
Re: WebCam Driver Question
« Reply #68 on: March 22, 2022, 03:26:43 pm »
Hi Igor,

Let me try. I have some questions for you to answer first...

1. Are you using ArcaOS or eComStation or what? Which version?
2. Are you using ArcaOS or Lars Erdmann drivers? Which version? 
3. Is this camera the only camera connected to your system?
4. Does your laptop have a builtin camera? Is it enabled in the bios?
5  What version of webcam.exe are you using?

Following Remy's suggestion /dN you select the proper camera to be used.
So "webcam /d09DA:2695:0100 /a" forces to use the proper camera.

Following Remy's suggestion /iN you reduce video bandwidth.
So "webcam /d09DA:2695:0100 /a /i1 uses less video bandwidth.

Wim

Hi Wim,
1. I use ArcaOS 5.0.7
2. ArcaOS drivers 12.11
3. Is this the only camera in USB interface
4. This is desktop computer
5  W.M.Brul:00.20210214
Specify on the command line "/d09DA:2695:0100" leads to this error:
Code: [Select]
started.
format:yuyv
 acquire webcam
 set configuration
 negotiate video format
 obtain video format
 commit video format
 set video alt interface
[0000804C]
obtain video error.

At the same time, the launch of the program with the "webcam /a /n" parameters allows you to view the video from the camera.

Wim Brul

  • Sr. Member
  • ****
  • Posts: 300
  • Karma: +26/-0
    • View Profile
    • Wim's home page
Re: WebCam Driver Question
« Reply #69 on: March 22, 2022, 06:20:07 pm »
Hallo Igor,

I think I know now where the problem is. It is in the scanning of the usb descriptors.  Please send me the "lsusb -d 09da:2695 -v" report of your camera.

Wim

Igor

  • Full Member
  • ***
  • Posts: 100
  • Karma: +12/-0
    • View Profile
Re: WebCam Driver Question
« Reply #70 on: March 22, 2022, 07:45:25 pm »
Hallo Igor,

I think I know now where the problem is. It is in the scanning of the usb descriptors.  Please send me the "lsusb -d 09da:2695 -v" report of your camera.

Wim
Hi Wim,

See attache.

Wim Brul

  • Sr. Member
  • ****
  • Posts: 300
  • Karma: +26/-0
    • View Profile
    • Wim's home page
Re: WebCam Driver Question
« Reply #71 on: March 23, 2022, 11:25:17 am »
Hallo Igor,

I think I know now where the problem is. It is in the scanning of the usb descriptors.  Please send me the "lsusb -d 09da:2695 -v" report of your camera.

Wim
Hi Wim,

See attache.
Thank you Igor. Try the attached. This patched version enables audio for your A4tech FHD 1080P PC Camera only. It should not be used with any other webcam.
 

Igor

  • Full Member
  • ***
  • Posts: 100
  • Karma: +12/-0
    • View Profile
Re: WebCam Driver Question
« Reply #72 on: March 23, 2022, 01:21:48 pm »
Hi Wim,

I tested this version.
The first:
Code: [Select]
start webcam /a /n
started.
format:yuyv
 acquire webcam
 set configuration
 negotiate video format
/a server (audio) On-Line.
 obtain video format
 commit video format
 set video alt interface
[0000804C]
obtain video error.
/n server (video) On-Line.
 set audio frequency
 set audio mike volume
[00008040]
obtain audio error.
The second and beyond:
Code: [Select]
start webcam /a /n
started.
format:yuyv
 acquire webcam
 set configuration
 negotiate video format
/a server (audio) On-Line.
 obtain video format
 commit video format
 set video alt interface
/n server (video) On-Line.
 set audio frequency
 starting iso video
 set audio mike volume
[00008040]
obtain audio error.

Igor

  • Full Member
  • ***
  • Posts: 100
  • Karma: +12/-0
    • View Profile
Re: WebCam Driver Question
« Reply #73 on: March 23, 2022, 01:29:38 pm »
Hi Wim,

There is an assumption that the program lacks delays. Or the device cannot be immediately connected by the program. Because after initializing the device (after connecting to the connector), it does not work. When restarted, the video works, but the sound also does not connect. I assume that somewhere a waiting cycle is required or a retry of the connection is required.

Wim Brul

  • Sr. Member
  • ****
  • Posts: 300
  • Karma: +26/-0
    • View Profile
    • Wim's home page
Re: WebCam Driver Question
« Reply #74 on: March 23, 2022, 05:08:47 pm »
Hallo Igor.
Hi Wim,

There is an assumption that the program lacks delays. Or the device cannot be immediately connected by the program. Because after initializing the device (after connecting to the connector), it does not work. When restarted, the video works, but the sound also does not connect. I assume that somewhere a waiting cycle is required or a retry of the connection is required.
You may be right about this. But I noticed that - set audio mike volume - resulted in error [00008040] which I think needs to be resolved first.
So this time I disabled that function to see if that makes a difference. Hopefully both video and audio streaming start working that way.

Wim