OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Hardware => Topic started by: Martin Iturbide on January 18, 2021, 08:33:20 pm

Title: WebCam Driver Question
Post by: Martin Iturbide on January 18, 2021, 08:33:20 pm
Hi

I'm sorry to ask this again but there are some things that sometimes do not get to well stored in my mind.

I used to test the webcam in my Thinkpad L420 with Wim's "USBECD".  I just put this on the config.sys "DEVICE=X:\OS2\BOOT\USBECD.SYS /D:05C8:0317:#### /N:$CHICON$" and used the software to show image from the camera.

But at some point I got confused on other forum posts, that you no longer needed USBECD.SYS with "UVC Webcam Support (https://home.hccnet.nl/w.m.brul/uvcvideo/index.html)".  Does "UVC Webcam Support" uses USBRESMG.SYS as driver for the webcam? or do I still need USBECD.SYS? or it depends on the webcam model?

I would appreciate some explanation that will help me with my confusion, since on the last two years I haven't been testing any webcams on ArcaOS.

Regards
Title: Re: WebCam Driver Question
Post by: Wim Brul on January 19, 2021, 02:09:23 pm
Hi Martin,

When I started developing webcam support I produced USB Webcam Tests (https://home.hccnet.nl/w.m.brul/usbvideo/index.html) that required usbecd.sys in order to function. It only supported a few webcams owned by those persons that helped me out by testing. It is not recommended to be used anymore. At that time only usbecd.sys supported the required isochronous transfers. Since then I worked on usbcalls.dll and usbresmg.sys to implement a.o. isochronous transfers and that capability is nowadays present in both ArcaOS and Lars Erdmann drivers.

After that I developed UVC Webcam Support  (https://home.hccnet.nl/w.m.brul/uvcvideo/index.html) which works with usbcalls.dll and usbresmg.sys and consists of two separate sets of programs for UVC compliant webcams. Use either the 640x480 or the 320x240 set. Use the WebCam Viewer to watch video and take snapshots or use WebSee Server and Websee Client to watch video over a tcp/ip connection and take snapshots.  Later on I developed UVC Microscope Viewer (https://home.hccnet.nl/w.m.brul/uvcscope/index.html) which works with usbcalls.dll and usbresmg.sys and consist of one program for UVC compliant webcams to inspect specimem at 640x480 resolution and take snapshots.

My latest development (for Rémy Dodin's Use of webcam (https://www.os2world.com/forum/index.php/topic,2453.msg27467.html#msg27467) for video and audio recording) works with usbcalls.dll and usbresmg.sys and contains 3 programs for UVC compliant webcams. Webcam Server obtains video and audio from your UVC webcam and acts as an HTTP server and/or named pipe server and/or streams to stdout. Webcam Monitor Video acts as named pipe or HTTP client and shows video from the Webcam Server. Webcam Monitor Audio acts as a named pipe client and plays pcm wave audio from the Webcam Server.
Title: Re: WebCam Driver Question
Post by: Remy on January 19, 2021, 07:24:03 pm
Hi Wim,

It works nice since.

Regards
Rémy
Title: Re: WebCam Driver Question
Post by: Martin Iturbide on January 19, 2021, 10:58:25 pm
Thank you very much for the explanation and patience Wim. Now I get it.

I will do some Webcam testing with the "WebCam Viewer" and usbcalls.dll/usbresmg.sys.

Regards
Title: Re: WebCam Driver Question
Post by: Wim Brul on January 20, 2021, 11:57:26 am
Hi Wim,

It works nice since.

Regards
Rémy

Hi Rémy,

Fine. In the meantime I have updated webcam.exe and wmaudio.exe and added  wmvideo.exe and I think my package is now complete.
I think I tested it with your wcc.exe but I don't remember. My memory is getting worse. I have attached it here so Martin could try these too.

@Martin - Use "webcam /n" to start the Webcam Server and use "wmvideo /n" to start the Webcam Monitor Video and see what you get.

Regards,
Wim
Title: Re: WebCam Driver Question
Post by: Martin Iturbide on January 20, 2021, 03:47:16 pm
@Martin - Use "webcam /n" to start the Webcam Server and use "wmvideo /n" to start the Webcam Monitor Video and see what you get.

Thanks Wim for the crash course. I just use it here in my Thinkpad L420 and it worked to show my webcam image.
Just one question. What if I connect a second USB Webcam, how does the program knows which webcam image to get?

Regards
Title: Re: WebCam Driver Question
Post by: Wim Brul on January 20, 2021, 04:38:06 pm
@Martin - Use "webcam /n" to start the Webcam Server and use "wmvideo /n" to start the Webcam Monitor Video and see what you get.

Thanks Wim for the crash course. I just use it here in my Thinkpad L420 and it worked to show my webcam image.
Just one question. What if I connect a second USB Webcam, how does the program knows which webcam image to get?

Regards

Webcam Server uses the first webcam that it finds. On my Dell Latitude e6500 this is the builtin webcam.
When I plugin my Logitech c250 webcam and then start Webcam Server then it will find that device.
Title: Re: WebCam Driver Question
Post by: Martin Iturbide on January 22, 2021, 08:24:17 pm
Hi

I also tested this USB webcam and worked: Ausdom USB Generic Webcam Realtek (https://www.os2world.com/wiki/index.php/Ausdom_USB_Generic_Webcam_Realtek) / 0BDA:58B0

Was some test software to try to use the USB mic of cameras?

Regards
Title: Re: WebCam Driver Question
Post by: Remy on January 22, 2021, 08:35:13 pm
Hi

I also tested this USB webcam and worked: Ausdom USB Generic Webcam Realtek (https://www.os2world.com/wiki/index.php/Ausdom_USB_Generic_Webcam_Realtek) / 0BDA:58B0

Was some test software to try to use the USB mic of cameras?

Regards

Have look here
https://www.os2world.com/forum/index.php/topic,2453.msg27426.html#msg27426

When using the USB webcam micro, use a headset to prevent larsen.
Title: Re: WebCam Driver Question
Post by: Remy on January 22, 2021, 08:36:05 pm
Hi Wim,

It works nice since.

Regards
Rémy

Hi Rémy,

Fine. In the meantime I have updated webcam.exe and wmaudio.exe and added  wmvideo.exe and I think my package is now complete.
I think I tested it with your wcc.exe but I don't remember. My memory is getting worse. I have attached it here so Martin could try these too.

@Martin - Use "webcam /n" to start the Webcam Server and use "wmvideo /n" to start the Webcam Monitor Video and see what you get.

Regards,
Wim

Hi Wim,

I'm going to give it a try.

Regards
Title: Re: WebCam Driver Question
Post by: Paul Smedley on January 23, 2021, 08:34:55 am
HI Wim,

When I started developing webcam support I produced USB Webcam Tests (https://home.hccnet.nl/w.m.brul/usbvideo/index.html) that required usbecd.sys in order to function. It only supported a few webcams owned by those persons that helped me out by testing. It is not recommended to be used anymore. At that time only usbecd.sys supported the required isochronous transfers. Since then I worked on usbcalls.dll and usbresmg.sys to implement a.o. isochronous transfers and that capability is nowadays present in both ArcaOS and Lars Erdmann drivers.

What would be cool would be cool to enhance our libusb port to support isochronous transfers - that would allow us to port libuvc and help with porting linux apps that use webcams...

Cheers,

Paul
Title: Re: WebCam Driver Question
Post by: Lars on January 23, 2021, 09:19:30 am
Once I am done updating the USB sound drivers to support "record only" devices I'll try and have a look into it.
I have never ported any SW, so it might take some time.
Title: Re: WebCam Driver Question
Post by: Paul Smedley on January 23, 2021, 10:02:29 am
Once I am done updating the USB sound drivers to support "record only" devices I'll try and have a look into it.
I have never ported any SW, so it might take some time.

The existing port of libusb is at http://trac.netlabs.org/ports/browser/libusb1/trunk

http://trac.netlabs.org/ports/browser/libusb1/trunk/libusb/os/os2_usb.c has the existing OS/2 code that only supports bulk transfers.

There are examples of other implementations in the same directory.

I can help with compiling and might even look at it myself if I get time.

Cheers,

Paul
Title: Re: WebCam Driver Question
Post by: Wim Brul on January 23, 2021, 10:08:52 am
Hi Martin,

Was some test software to try to use the USB mic of cameras?
It might be a good idea ;) to read the included webcam.txt file?

Code: [Select]
┌───────────────┐                                                ┌────────────┐
│ Webcam Server ├────────────────────────────────────────────────┤ webcam.exe │
└───────────────┘                                                └────────────┘
.
Use "webcam /a" to run named pipe server for wav audio from the microphone.
.

Code: [Select]
┌──────────────────────┐                                        ┌─────────────┐
│ Webcam Monitor Audio ├────────────────────────────────────────┤ wmaudio.exe │
└──────────────────────┘                                        └─────────────┘
.
Plays pcm wave audio from the Webcam Server. Acts as named pipe client.
Use "wmaudio" to connect the Webcam Monitor Audio to \PIPE\Webcam\Audio.
Use e.g "wmaudio /a1/v30" to play on audio adapter 1 at reduced volume.
.

Best regards,
Wim
Title: Re: WebCam Driver Question
Post by: David McKenna on January 23, 2021, 02:59:53 pm
Hi Wim,

 I have a Logitech C270 webcam (which has a built in mic) and gave your latest version a try. Copied the files to \sys\bin and following your example, opened a command prompt window and typed 'webcam /a /n'. It seemed to work and showed exactly the same as in your screen shot. Opened another command prompt window and typed 'wmvideo' and a window opened called 'Webcam Monitor' showing the webcam video - nice! Then opened yet another command prompt window and typed 'wmaudio' It looked the same as in your screen shot, but I do not get any sound to my speakers from the microphone. I also tried 'wmaudio /a1' but still no sound. Is this because of what Lars mentions as a 'record only device'?

 I assume the /a1 switch is to define the audio playback device, but how does the audio input device get chosen? I do have a microphone jack on the computer - does that interfere somehow? Trying to understand how the pieces fit together...

 Was also wondering if the audio could be made to stream by HTTP?

 Thanks for providing this fantastic software!

Regards,
Title: Re: WebCam Driver Question
Post by: Martin Iturbide on January 23, 2021, 03:21:50 pm
Hi David, can you let me know your Logitech C270 webcam hardware ID?

FYI: I had tested here:
- Logitech C920 HD Pro Webcam (https://www.os2world.com/wiki/index.php/Logitech_C920_HD_Pro_Webcam)
- Ausdom USB Generic Webcam Realtek‎‎ (https://www.os2world.com/wiki/index.php/Ausdom_USB_Generic_Webcam_Realtek)
Video is working, I have pending to test the mic.

Regards
Title: Re: WebCam Driver Question
Post by: David McKenna on January 23, 2021, 03:36:25 pm
Hi David, can you let me know your Logitech C270 webcam hardware ID?

 Hi Martin,

  Sure, it is 046d:0825 and reports itself as 'Logitech, Inc. Webcam 270'.

Regards,
Title: Re: WebCam Driver Question
Post by: Martin Iturbide on January 23, 2021, 03:40:35 pm
Thanks David.
I just created this page:  Logitech C270 HD Webcam (https://www.os2world.com/wiki/index.php/Logitech_C270_HD_Webcam)
Title: Re: WebCam Driver Question
Post by: David McKenna on January 23, 2021, 04:24:49 pm
 Well, I just tried Remy's 'WCC' program, along with Wim's latest UVC software, and video and audio from the Logitech C270 does indeed work! Bit of a mystery why sound doesn't work from the command prompt, but probably user error. Thanks Remy and Wim for putting it all together!

Regards,
Title: Re: WebCam Driver Question
Post by: Remy on January 24, 2021, 12:25:19 pm
Thanks David.
I just created this page:  Logitech C270 HD Webcam (https://www.os2world.com/wiki/index.php/Logitech_C270_HD_Webcam)

Logitech 9000 pro works good too
Title: Re: WebCam Driver Question
Post by: Lars on January 24, 2021, 12:51:58 pm
Well, I just tried Remy's 'WCC' program, along with Wim's latest UVC software, and video and audio from the Logitech C270 does indeed work! Bit of a mystery why sound doesn't work from the command prompt, but probably user error. Thanks Remy and Wim for putting it all together!

Regards,
What do you mean with "sound does not work"?
If it is about either USB sound input or sound output, I am currently working on fixing a couple of errors in the USB sound drivers. In particular if you have more than one USB audio capable device plugged in. Martin is helping me in testing.
Title: Re: WebCam Driver Question
Post by: David McKenna on January 24, 2021, 02:59:25 pm
What do you mean with "sound does not work"?

 Lars,

 Sorry I wasn't specific - I meant I did not hear anything from the speakers when running 'wmaudio' next to 'webcam /a /n' (even though there were no errors in the command prompt windows). When I run 'WCC' I do hear sound from the speakers (slightly delayed). The only USB sound device plugged in here is the microphone on the webcam, although both of your USB sound drivers are installed.

Regards,
Title: Re: WebCam Driver Question
Post by: Martin Iturbide on January 24, 2021, 03:14:34 pm
Thanks David.
I just created this page:  Logitech C270 HD Webcam (https://www.os2world.com/wiki/index.php/Logitech_C270_HD_Webcam)

Logitech 9000 pro works good too

Hi Remy

Can you please share with me the HardwareID. I created this page: Logitech_QuickCam_Pro_9000 (https://www.os2world.com/wiki/index.php/Logitech_QuickCam_Pro_9000)
If you want you can also share with me the USB hardware report. Have you test mic recording?

Regards
Title: Re: WebCam Driver Question
Post by: Martin Iturbide on January 24, 2021, 04:18:52 pm
It might be a good idea ;) to read the included webcam.txt file?

Code: [Select]
┌───────────────┐                                                ┌────────────┐
│ Webcam Server ├────────────────────────────────────────────────┤ webcam.exe │
└───────────────┘                                                └────────────┘
.
Use "webcam /a" to run named pipe server for wav audio from the microphone.
┌──────────────────────┐                                        ┌─────────────┐
│ Webcam Monitor Audio ├────────────────────────────────────────┤ wmaudio.exe │
└──────────────────────┘                                        └─────────────┘
.
Plays pcm wave audio from the Webcam Server. Acts as named pipe client.
Use "wmaudio" to connect the Webcam Monitor Audio to \PIPE\Webcam\Audio.
Use e.g "wmaudio /a1/v30" to play on audio adapter 1 at reduced volume.
.

Hi Wim

I wanted to test any kind of sound from my USB Webcam - Logitech C920 HD Pro Webcam (https://www.os2world.com/wiki/index.php/Logitech_C920_HD_Pro_Webcam)
I'm using "Webcam00-20210120.zip" and Lar's USBAUDIO.

I get this error:
Code: [Select]
[X:\HOME\DOWNLOADS\WEBCAM00-20210120]webcam /a /n
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
/n server (video) On-Line.
 set audio frequency
 starting iso video
 set audio mike volume
 set audio alt interface
 starting iso audio
[00000057]
obtain audio error.
The camera lights up. "wmvideo /n" works and provide video


And

Code: [Select]
[X:\HOME\DOWNLOADS\WEBCAM00-20210120]wmaudio /a3 /v100
started.
 opening audio input pipe
 opening ampmixer device
Unsupported format mode.
 closing audio input pipe
 closing event semaphore
 deallocating dart buffers
Invalid device ID given.
 informing dart use ended
Invalid device ID given.
 closing ampmixer device
Invalid device ID given.
stopped.


Regards

Update: Updated to webcam latest version.
Title: Re: WebCam Driver Question
Post by: Lars on January 24, 2021, 04:40:18 pm
What do you mean with "sound does not work"?

 Lars,

 Sorry I wasn't specific - I meant I did not hear anything from the speakers when running 'wmaudio' next to 'webcam /a /n' (even though there were no errors in the command prompt windows). When I run 'WCC' I do hear sound from the speakers (slightly delayed). The only USB sound device plugged in here is the microphone on the webcam, although both of your USB sound drivers are installed.

Regards,
The problem could be that AN auto switches the default Wave device when you plug in a USB device. And WCC might be smart enough to select a specific audio device for playback while wmaudio might use the default device. Sometimes,automatisms are a bad choice. As in this case.
Title: Re: WebCam Driver Question
Post by: David McKenna on January 24, 2021, 04:55:20 pm
Lars,

  It turns out my initial instinct was correct: user error. Needed to define the volume on the wmaudio command. When I tried 'wmaudio /v100' I got a nice blast of feedback! Using 'wmaudio /v70' and the sound is heard from the speakers clearly and without delay. So it's all good!

Regards,
Title: Re: WebCam Driver Question
Post by: Remy on January 24, 2021, 05:18:13 pm
Thanks David.
I just created this page:  Logitech C270 HD Webcam (https://www.os2world.com/wiki/index.php/Logitech_C270_HD_Webcam)

Logitech 9000 pro works good too

Hi Remy

Can you please share with me the HardwareID. I created this page: Logitech_QuickCam_Pro_9000 (https://www.os2world.com/wiki/index.php/Logitech_QuickCam_Pro_9000)
If you want you can also share with me the USB hardware report. Have you test mic recording?

Regards

Video + Audio are ok
HardwareID: 046D:0990:0008
Title: Re: WebCam Driver Question
Post by: Remy on January 24, 2021, 05:20:37 pm
It might be a good idea ;) to read the included webcam.txt file?

Code: [Select]
┌───────────────┐                                                ┌────────────┐
│ Webcam Server ├────────────────────────────────────────────────┤ webcam.exe │
└───────────────┘                                                └────────────┘
.
Use "webcam /a" to run named pipe server for wav audio from the microphone.
┌──────────────────────┐                                        ┌─────────────┐
│ Webcam Monitor Audio ├────────────────────────────────────────┤ wmaudio.exe │
└──────────────────────┘                                        └─────────────┘
.
Plays pcm wave audio from the Webcam Server. Acts as named pipe client.
Use "wmaudio" to connect the Webcam Monitor Audio to \PIPE\Webcam\Audio.
Use e.g "wmaudio /a1/v30" to play on audio adapter 1 at reduced volume.
.

Hi Wim

I wanted to test any kind of sound from my USB Webcam - Logitech C920 HD Pro Webcam (https://www.os2world.com/wiki/index.php/Logitech_C920_HD_Pro_Webcam)
I'm using "Webcam00-20210120.zip" and Lar's USBAUDIO.

I get this error:
Code: [Select]
[X:\HOME\DOWNLOADS\WEBCAM00-20210120]webcam /a /n
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
/n server (video) On-Line.
 set audio frequency
 starting iso video
 set audio mike volume
 set audio alt interface
 starting iso audio
[00000057]
obtain audio error.
The camera lights up. "wmvideo /n" works and provide video


And

Code: [Select]
[X:\HOME\DOWNLOADS\WEBCAM00-20210120]wmaudio /a3 /v100
started.
 opening audio input pipe
 opening ampmixer device
Unsupported format mode.
 closing audio input pipe
 closing event semaphore
 deallocating dart buffers
Invalid device ID given.
 informing dart use ended
Invalid device ID given.
 closing ampmixer device
Invalid device ID given.
stopped.


Regards

Update: Updated to webcam latest version.

Hi Martin,

It works well using latest Arca USB drivers build.

Regards
Rémy
Title: Re: WebCam Driver Question
Post by: Wim Brul on January 24, 2021, 05:43:23 pm
Hi Martin,

Quote
I wanted to test any kind of sound from my USB Webcam - Logitech C920 HD Pro Webcam
I'm using "Webcam00-20210120.zip" and Lar's USBAUDIO.

With "Lar's USBAUDIO" do say that you installed audio.zip from usbdrv237.zip ?
[00000057] obtain audio error. This is SYS0087: The parameter is incorrect.
Please attach lsusb report of this camera for me to inspect.

Regards,
Wim
Title: Re: WebCam Driver Question
Post by: Lars on January 26, 2021, 09:02:27 am
If Remy says "it works fine with ArcaOS drivers" I don't know what audio driver he actually uses. There was a dedicated 12.07 audio class 1.0 driver from AN but I think in the meantime, the AN USB stack also contains "our" drivers. To be clarified.

Anyway: I am currently doing heavy rework on USBAUDIF.DLL and also on the audio drivers. That will hopefully get us around the "unsupported format mode" error plus some other quirks. That's because DART uses the ampmixer which in turns calls into USBAUDIF.DLL which in turn calls into the audio drivers.
Title: Re: WebCam Driver Question
Post by: Lars on January 26, 2021, 11:07:22 am
Since I don't have ArcaOS: can someone enlighten me if AN not only delivers the 10.xxx USB audio drivers (at least function wise) but also the USBAUDIF.DLL that goes with it ? You should find that DLL in the \MMOS2\DLL subdirectory.
If not I'll have to contact AN and let them know that that would be essential as this DLL and the audio drivers form a set which interacts with each other and have to match (much like USBCALLS has to match USBRESMG).

In principle, the DLL could be generic for each and every audio driver but it is messed up to the point where I decided to write my own (replacing AUDIOIF.DLL) in order not to break existing things.
Title: Re: WebCam Driver Question
Post by: David McKenna on January 26, 2021, 01:05:18 pm
Lars,

 The AN supplied file USBAUDIO-12.07.exe (which is a WPI executable) does not contain USBAUDIF.DLL, so it is not installed. I have already installed your USB audio drivers, so don't have a fresh ArcaOS installation to check...

Regards,
Title: Re: WebCam Driver Question
Post by: Remy on January 26, 2021, 02:17:27 pm
To Lars

Yes, USB 12.07

Regards
Rémy

I have USB3/USB2 enabled
Title: Re: WebCam Driver Question
Post by: Lars on January 26, 2021, 04:27:32 pm
To Lars

Yes, USB 12.07

Regards
Rémy

I have USB3/USB2 enabled

Does the USB 12.07 driver package WPI contain a USB audio driver or not ? What I would like to avoid is a mess where AN is delivering our drivers but not also updating/providing USBAUDIF.DLL.
Title: Re: WebCam Driver Question
Post by: Andreas Schnellbacher on January 26, 2021, 04:40:21 pm
Yes, 12.07 contains USBAUDIO.SYS.
Title: Re: WebCam Driver Question
Post by: Lars on January 26, 2021, 04:49:53 pm
Yes, 12.07 contains USBAUDIO.SYS.
... and obviously nothing else.
Title: Re: WebCam Driver Question
Post by: Dave Yeo on January 26, 2021, 06:06:57 pm
Installed from the latest Beta, not sure about the last release.
Code: [Select]
M:\MMOS2>bldlevel usbaud2.sys
Build Level Display Facility Version 6.12.675 Sep 25 2001
(C) Copyright IBM Corporation 1993-2001
Signature:       @#Lars Erdmann:10.234#@OS/2 USB Audio 2.0 Device Driver
Vendor:          Lars Erdmann
Revision:        10.234
File Version:    10.234
Description:     OS/2 USB Audio 2.0 Device Driver

M:\MMOS2>bldlevel usbaudio.sys
Build Level Display Facility Version 6.12.675 Sep 25 2001
(C) Copyright IBM Corporation 1993-2001
Signature:       @#Lars Erdmann:10.234#@OS/2 USB Audio 1.0 Device Driver
Vendor:          Lars Erdmann
Revision:        10.234
File Version:    10.234
Description:     OS/2 USB Audio 1.0 Device Driver
and
Code: [Select]
M:\MMOS2\DLL>bldlevel usbaudif.dll
Build Level Display Facility Version 6.12.675 Sep 25 2001
(C) Copyright IBM Corporation 1993-2001
Signature:       @#Lars Erdmann:10.234#@##1## 18 Apr 2020 12:42:31     Laptop
 ::::::@@USB Audio 1.0 and 2.0 VSD
Vendor:          Lars Erdmann
Revision:        10.234
Date/Time:       18 Apr 2020 12:42:31
Build Machine:   Laptop
File Version:    10.234
Description:     USB Audio 1.0 and 2.0 VSD
Title: Re: WebCam Driver Question
Post by: Remy on January 26, 2021, 06:35:19 pm
Yes, 12.07 contains USBAUDIO.SYS.
... and obviously nothing else.

the usbaudif.dll and usbwav.dll I have installed are:
[C:\mmos2\dll]bldlevel usbaudif.dll
Build Level Display Facility Version 6.12.675 Sep 25 2001
(C) Copyright IBM Corporation 1993-2001
Signature:       @#Lars Erdmann:10.234#@##1## 18 Apr 2020 12:42:31     Laptop
 ::::::@@USB Audio 1.0 and 2.0 VSD
Vendor:          Lars Erdmann
Revision:        10.234
Date/Time:       18 Apr 2020 12:42:31
Build Machine:   Laptop
File Version:    10.234
Description:     USB Audio 1.0 and 2.0 VSD

[C:\mmos2\dll]bldlevel usbwav.dll
Build Level Display Facility Version 6.12.675 Sep 25 2001
(C) Copyright IBM Corporation 1993-2001
Signature:       @#Lars Erdmann:10.234#@##1## 18 Apr 2020 12:42:50     Laptop
 ::::::@@Filter IO Proc and MULAW/ALAW Codec for USBAUDIO
Vendor:          Lars Erdmann
Revision:        10.234
Date/Time:       18 Apr 2020 12:42:50
Build Machine:   Laptop
File Version:    10.234
Description:     Filter IO Proc and MULAW/ALAW Codec for USBAUDIO

Nothing else

About 12.07, here is wpi archive view.
Title: Re: WebCam Driver Question
Post by: Lars on January 26, 2021, 11:35:46 pm
Neither one WPI nor the other contains USBAUDIF.DLL.
So where does it come from?
Title: Re: WebCam Driver Question
Post by: Remy on January 27, 2021, 01:03:44 am
Neither one WPI nor the other contains USBAUDIF.DLL.
So where does it come from?

As it is written, yours  ;)
(usbdrv234)

It was installed during test between your driver and Arca ones trying to progress Wim's webcam driver.
Those dll's have been left.

Regards
Rémy
Title: Re: WebCam Driver Question
Post by: Dave Yeo on January 27, 2021, 02:10:13 am
Here, it is in the usbaud2.wpi, from the ArcaOS 5.0.6.4 EN ISO.
Title: Re: WebCam Driver Question
Post by: Lars on January 27, 2021, 12:37:11 pm
Ok, uniaud2.wpi is fine as it contains all necessary stuff.
In short: the ArcaOS DVD contains all that is necessary but the individual WPIs for eCS/Warp customers do not.
But there will always be the option to install my USB audio drivers while keeping all the rest of the USB stack. As the USB audio drivers tend to still change even today (it's the "youngest" driver I have worked on), maybe that is the best option anyways.
Title: Re: WebCam Driver Question
Post by: Dave Yeo on January 27, 2021, 06:03:27 pm
I think eCS/Warp people are expected to install your packages as the readme makes clear it is third party software only included as a convenience and unsupported by Arca Noae.
It is also an option during install, in the USB section IIRC, so unless someone selects it (or later installs from the ISO), it will not be installed.
Title: Re: WebCam Driver Question
Post by: Wim Brul on January 28, 2021, 10:45:08 am
Was also wondering if the audio could be made to stream by HTTP?

Yes David, that could probably be done. I am not so sure that it would work satisfactorily since I expect delayed audio (related to video) to occur when streaming that way. Is it your intention to use HTTP streaming from webcam.exe to both wmaudio.exe and wmvideo.exe at the same time? I am asking because right now it is possible to watch the HTTP video stream using firefox or seamonkey. But in my experiments (rexx server) I was not able to do the same for audio. I could made the  browser produce the sound with the <audio> tag but alas it persisted in caching that audio rendering it useless.
Title: Re: WebCam Driver Question
Post by: David McKenna on January 28, 2021, 12:21:03 pm
 Wim,
 
Is it your intention to use HTTP streaming from webcam.exe to both wmaudio.exe and wmvideo.exe at the same time?

 Yes, I was thinking of the possibility of a simple video 'chat' setup using your programs.  Not a programmer myself, so don't know what would be involved, but I'm sure none of it is easy! (or everybody would do it). Thanks for all your efforts - much appreciated!

Regards,
Title: Re: WebCam Driver Question
Post by: Dave Yeo on January 28, 2021, 04:30:06 pm
I think what needs to be done is the audio and video streams being muxed into a container such as AVI, WEBM or Matroska so that the video and audio are in sync. The program to do that is FFmpeg where you should be able to pipe or feed the files into it and get a stream out.
There's likely directions of the internet for doing it.
Even better would be to use FFmpeg's libavcodec in a program to do the muxing, beyond my abilities.
Title: Re: WebCam Driver Question
Post by: Remy on January 28, 2021, 07:36:09 pm
I think what needs to be done is the audio and video streams being muxed into a container such as AVI, WEBM or Matroska so that the video and audio are in sync. The program to do that is FFmpeg where you should be able to pipe or feed the files into it and get a stream out.
There's likely directions of the internet for doing it.
Even better would be to use FFmpeg's libavcodec in a program to do the muxing, beyond my abilities.

I'm already working on ....  under Avxcat v2

Review some information from older post:
https://www.os2world.com/forum/index.php/topic,2453.msg27476.html#msg27476

Syntax I use has changed a lot due to syncro issue and other issue using latest ffmpeg (release 4.2.2-3)
I could get better result inverting audio and video input file order.
Sharing with you, here is a working example :
Of course, You have to start Wim's exes first.
ffmpeg -y -use_wallclock_as_timestamps 1 -thread_queue_size 64 -i \PIPE\Webcam\Audio -itsoffset 1.05 -use_wallclock_as_timestamps 1 -thread_queue_size 64 -f mjpeg -i \PIPE\Webcam\Video -c:v copy -c:a copy -map 1:v:0 -map 0:a:0 mywebcam.avi

(adjust -itsoffset 1.05 value if you have video/audio not syncro)

Of course, you can make the choice to change avi to mp4 etc.... but this will introduce ffmpeg process which could impact result at this step.
I've got some better results piping ffmpeg result into an other ffmpeg process.
ffmpeg -y -use_wallclock_as_timestamps 1 -thread_queue_size 64 -i \PIPE\Webcam\Audio -itsoffset 1.05 -use_wallclock_as_timestamps 1 -thread_queue_size 64 -f mjpeg -i \PIPE\Webcam\Video -c:v copy -c:a copy -map 1:v:0 -map 0:a:0 -f avi - |ffmpeg -i - mywebcam.mp4

Output of the second ffmpeg (or directly from first process) could be of other type (e.g. flv for rtmp...). You'll have visible latency due to ffmpeg process time (some special parameters exist to reduce streaming latency but already exist)

Warning: Piping from firs FFMPEG into second FFMPEG may consume a high amount of storage
From what I could see, about 174Mb shared low storage while runing only one ffmpeg step with avi output file requires about 42Mb shared low storage.
ffmpeg -y -use_wallclock_as_timestamps 1 -thread_queue_size 64 -i \PIPE\Webcam\Audio -itsoffset 1.05 -use_wallclock_as_timestamps 1 -thread_queue_size 64 -f mjpeg -i \PIPE\Webcam\Video -c:v copy -c:a copy -map 1:v:0 -map 0:a:0 mywebcam.avi    (or -f avi mywebcam.avi or any other format)

Note: If you start webcam through WCC, you can display/control current recording using:
 ffplay -i http://127.0.0.1:14225 -x 190 -y 144
Title: Re: WebCam Driver Question
Post by: Remy on January 29, 2021, 01:25:24 am
Hi Wim,

It works nice since.

Regards
Rémy

Hi Rémy,

Fine. In the meantime I have updated webcam.exe and wmaudio.exe and added  wmvideo.exe and I think my package is now complete.
I think I tested it with your wcc.exe but I don't remember. My memory is getting worse. I have attached it here so Martin could try these too.

@Martin - Use "webcam /n" to start the Webcam Server and use "wmvideo /n" to start the Webcam Monitor Video and see what you get.

Regards,
Wim

Hi Wim,

This latest build has always 48000Hz audio output !
I went back to the previous build which allow me to set 44100Hz

Regards
Rémy
Title: Re: WebCam Driver Question
Post by: Wim Brul on January 30, 2021, 12:28:21 pm
Hi Wim,

It works nice since.

Regards
Rémy

Hi Rémy,

Fine. In the meantime I have updated webcam.exe and wmaudio.exe and added  wmvideo.exe and I think my package is now complete.
I think I tested it with your wcc.exe but I don't remember. My memory is getting worse. I have attached it here so Martin could try these too.

@Martin - Use "webcam /n" to start the Webcam Server and use "wmvideo /n" to start the Webcam Monitor Video and see what you get.

Regards,
Wim

Hi Wim,

This latest build has always 48000Hz audio output !
I went back to the previous build which allow me to set 44100Hz

Regards
Rémy

My latter build takes the audio sample frequency specified by the user and validates it against the usb audio descriptors of the webcam. Logitech c250/c270/pro9000 webcams do not support 44100 Hz. according to their audio descriptors and since the last scanned audio descriptor specifies 48000 Hz. this frequency is used. Similarly 16000 Hz. will be used by the Logitech Quickcam Pro for Notebooks because this is the only audio frequency that this webcam reports supported. This latter build is supposed to work with audio from all kinds of uvc compliant webcams.

On the contrary my former build takes the audio sample frequency specified by the user and validates it using a list of hardcoded values that work with the Logitech c250/c270/pro9000 webcams and this list includes 22050 Hz. and 44100 Hz. that happen to work on these webcams despite of the fact that their usb audio decriptors omit these. Scanning of usb audio descriptors was not yet implemented but that is really the way to go.
Title: Re: WebCam Driver Question
Post by: Martin Iturbide on January 30, 2021, 04:03:01 pm
Hi Martin,

Quote
I wanted to test any kind of sound from my USB Webcam - Logitech C920 HD Pro Webcam
I'm using "Webcam00-20210120.zip" and Lar's USBAUDIO.

Please attach lsusb report of this camera for me to inspect.


Hi

I have a strange behavior with lsusb (lsusb-20130526.zip) with this device. If I don't plug the camera, I get the normal report. If I plugged the camera, I get no report at all from any device. Even that  "webcam /n" is working fine to see video from the webcam.

Any other tip to get the USB hardware report?

Regards
Title: Re: WebCam Driver Question
Post by: Martin Iturbide on January 30, 2021, 04:10:39 pm
Hi Martin,

Quote
I wanted to test any kind of sound from my USB Webcam - Logitech C920 HD Pro Webcam
I'm using "Webcam00-20210120.zip" and Lar's USBAUDIO.

Please attach lsusb report of this camera for me to inspect.


Hi

I took this log with testlog, but I'm not sure if that is what you need Wim.

Code: [Select]
Device 1:
  ctrlID=1 DevAdr=2 ConfigVal=0 IfNo=0 Speed=2 Port=1 HubIx=3
  USB Release number=0x200 DevReleaseNumber=0x11
  Class=239 SubClass=2 Protocol=1 MaxPacketSize=64
  Vendor:Product=046d:082d NumConfigurations=1 Logitech, Inc. HD Pro Webcam C920
  Configuration: NumInterfaces=4 ConfigValue=1 StringIx=0 Attr=0x80 MaxPower=250
  Interface 0: Alt=0 nEP=1 Class=14(Video) SubClass=1 Protocol=0 StringIx=0
  Endpoint: Adr=0x83 Attr=0x3 MaxPktSize=64 Interval=8
  Interface 1: Alt=0 nEP=0 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Interface 1: Alt=1 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=192 Interval=1
  Interface 1: Alt=2 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=384 Interval=1
  Interface 1: Alt=3 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=512 Interval=1
  Interface 1: Alt=4 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=640 Interval=1
  Interface 1: Alt=5 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=800 Interval=1
  Interface 1: Alt=6 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=944 Interval=1
  Interface 1: Alt=7 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=2688 Interval=1
  Interface 1: Alt=8 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=2848 Interval=1
  Interface 1: Alt=9 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=3040 Interval=1
  Interface 1: Alt=10 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=4992 Interval=1
  Interface 1: Alt=11 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=5116 Interval=1
  Interface 2: Alt=0 nEP=0 Class=1(Audio) SubClass=1 Protocol=0 StringIx=0
  Interface 3: Alt=0 nEP=0 Class=1(Audio) SubClass=2 Protocol=0 StringIx=0
  Interface 3: Alt=1 nEP=1 Class=1(Audio) SubClass=2 Protocol=0 StringIx=0
  Interface 3: Alt=2 nEP=1 Class=1(Audio) SubClass=2 Protocol=0 StringIx=0
  Interface 3: Alt=3 nEP=1 Class=1(Audio) SubClass=2 Protocol=0 StringIx=0

Regards
Title: Re: WebCam Driver Question
Post by: Remy on January 30, 2021, 08:25:07 pm
Hi Wim,

It works nice since.

Regards
Rémy

Hi Rémy,

Fine. In the meantime I have updated webcam.exe and wmaudio.exe and added  wmvideo.exe and I think my package is now complete.
I think I tested it with your wcc.exe but I don't remember. My memory is getting worse. I have attached it here so Martin could try these too.

@Martin - Use "webcam /n" to start the Webcam Server and use "wmvideo /n" to start the Webcam Monitor Video and see what you get.

Regards,
Wim

Hi Wim,

This latest build has always 48000Hz audio output !
I went back to the previous build which allow me to set 44100Hz

Regards
Rémy

My latter build takes the audio sample frequency specified by the user and validates it against the usb audio descriptors of the webcam. Logitech c250/c270/pro9000 webcams do not support 44100 Hz. according to their audio descriptors and since the last scanned audio descriptor specifies 48000 Hz. this frequency is used. Similarly 16000 Hz. will be used by the Logitech Quickcam Pro for Notebooks because this is the only audio frequency that this webcam reports supported. This latter build is supposed to work with audio from all kinds of uvc compliant webcams.

On the contrary my former build takes the audio sample frequency specified by the user and validates it using a list of hardcoded values that work with the Logitech c250/c270/pro9000 webcams and this list includes 22050 Hz. and 44100 Hz. that happen to work on these webcams despite of the fact that their usb audio decriptors omit these. Scanning of usb audio descriptors was not yet implemented but that is really the way to go.

I checked my c270 under windows.
It supports 16bits 16000Hz, 16bits 32000Hz and 16bits 48000Hz
right, 44100 isn't listed (despite it works well) - 16000, 32000 and 48000 are real selectable frequencies.
Are they available ? (I always get 48000 as output)

Regards
Rémy     
Title: Re: WebCam Driver Question
Post by: Wim Brul on January 30, 2021, 08:49:53 pm
Hi Martin,

Quote
I wanted to test any kind of sound from my USB Webcam - Logitech C920 HD Pro Webcam
I'm using "Webcam00-20210120.zip" and Lar's USBAUDIO.

Please attach lsusb report of this camera for me to inspect.


Hi

I have a strange behavior with lsusb (lsusb-20130526.zip) with this device. If I don't plug the camera, I get the normal report. If I plugged the camera, I get no report at all from any device. Even that  "webcam /n" is working fine to see video from the webcam.

Any other tip to get the USB hardware report?

Regards

Perhaps you encountered 0000680: lsusb not working (https://mantis.smedley.id.au/view.php?id=680) again?
Title: Re: WebCam Driver Question
Post by: Wim Brul on January 30, 2021, 09:51:39 pm
Hi Wim,

It works nice since.

Regards
Rémy

Hi Rémy,

Fine. In the meantime I have updated webcam.exe and wmaudio.exe and added  wmvideo.exe and I think my package is now complete.
I think I tested it with your wcc.exe but I don't remember. My memory is getting worse. I have attached it here so Martin could try these too.

@Martin - Use "webcam /n" to start the Webcam Server and use "wmvideo /n" to start the Webcam Monitor Video and see what you get.

Regards,
Wim

Hi Wim,

This latest build has always 48000Hz audio output !
I went back to the previous build which allow me to set 44100Hz

Regards
Rémy

My latter build takes the audio sample frequency specified by the user and validates it against the usb audio descriptors of the webcam. Logitech c250/c270/pro9000 webcams do not support 44100 Hz. according to their audio descriptors and since the last scanned audio descriptor specifies 48000 Hz. this frequency is used. Similarly 16000 Hz. will be used by the Logitech Quickcam Pro for Notebooks because this is the only audio frequency that this webcam reports supported. This latter build is supposed to work with audio from all kinds of uvc compliant webcams.

On the contrary my former build takes the audio sample frequency specified by the user and validates it using a list of hardcoded values that work with the Logitech c250/c270/pro9000 webcams and this list includes 22050 Hz. and 44100 Hz. that happen to work on these webcams despite of the fact that their usb audio decriptors omit these. Scanning of usb audio descriptors was not yet implemented but that is really the way to go.

I checked my c270 under windows.
It supports 16bits 16000Hz, 16bits 32000Hz and 16bits 48000Hz
right, 44100 isn't listed (despite it works well) - 16000, 32000 and 48000 are real selectable frequencies.
Are they available ? (I always get 48000 as output)

Regards
Rémy   

Content of xhprobe.cmd:

Code: [Select]
ffprobe -show_streams -v quiet -i \PIPE\Webcam\Audio > xhprobe.txt

When I use "webcam /a16000' and I check the audio stream with "xhprobe" then xhprobe.txt shows that the audio stream is indeed 16000 Hz. (sample_rate=16000). This way I checked 16000, 24000, 32000, 48000 Hz. and these all work alright with my logitech c250 camera.  I also checked 22050, 44100 Hz. and  these default to 48000 Hz. so everything works as designed.  When you are always getting 48000Hz. then I suspect you are not passing the proper /aN value.
Title: Re: WebCam Driver Question
Post by: Remy on February 09, 2021, 08:09:53 pm
Hi Wim,

I have a few questions about parameter /f and fps :   

webcam allows to set
/fN - Select Nth discrete frame interval setting for video.
 Proper values for N are 0 up to the highest setting available on your webcam.

Do you know how to get available setting for a webcam ?
I expect getting a discrete frame interval value for each supported fps
Is there a link between the value 0 to n and the supported fps from highest to lowest ?

Test show me that the bitrate is reduced when increasing the n value for /f parameter
I didn't notice any real quality degradation when using /f2 which provides a very smaller output file.   

For all resolution, I always have 25fps for my webcam into ffprobe output.
Are any parameters on webcam to set a different supported fps for a given frame size ?

Thanks
Rémy 
 
Title: Re: WebCam Driver Question
Post by: Wim Brul on February 10, 2021, 07:41:48 pm
Hi Rémy,

Hi Wim,

I have a few questions about parameter /f and fps :   

webcam allows to set
/fN - Select Nth discrete frame interval setting for video.
 Proper values for N are 0 up to the highest setting available on your webcam.

Do you know how to get available setting for a webcam ?
I expect getting a discrete frame interval value for each supported fps
Is there a link between the value 0 to n and the supported fps from highest to lowest ?

Let me try and explain how it works using your logitech c270 webcam. Suppose that you want to obtain 640x480 mjpg video with the default frame rate. You would then use the /f0 parameter (or you would just omit that parameter altogether) and webcam.exe obtains the dwDefaultFrameInterval value for that video format from the usb descriptors. Since dwDefaultFrameInterval=333333, which means 33.3333 milliseconds, this results into 30 frames per second aka 30 fps. When you would use /f2 then webcam.exe obtains dwFrameInterval(2)=500000 which results into 20 fps. The mapping is given by the usb descriptors and lsusb is your friend.

Note that the actual frame rate as experienced by the client could be lower than the frame rate at which webcam.exe obtains video frames from your webcam. When the client is not fast enough in obtaining frames from webcam.exe then webcam.exe will drop frames. When the client is much faster than webcam.exe then it will be waiting in webcam.exe for the next frame to become available.

Quote
Test show me that the bitrate is reduced when increasing the n value for /f parameter
I didn't notice any real quality degradation when using /f2 which provides a very smaller output file.   

For all resolution, I always have 25fps for my webcam into ffprobe output.
Are any parameters on webcam to set a different supported fps for a given frame size ?

Thanks
Rémy

Yes, higher values of N for the /fN parameter result into lower frame rates.

It seems to me that ffprobe does not measure the actual frame rate.

Wim
Title: Re: WebCam Driver Question
Post by: Remy on February 10, 2021, 10:13:29 pm
Thanks Wim for this clear explanation.
Because I was monopolized trying to use ffprobe only, I missed to check its results.
I'll check result out of lsusb to adjust my ffmpeg parameters (I found very nice tips to have a very good syncronized video, some changed parameters on the string cmd I recently posted and "no" latency when using a control video during recording in copy mode)
With the correct info from lsusb, I'll be able to set correctly ffmpeg -time_base values of the recorded video which is always incorrect (preventing video/audio process) except if set using some parameters (e.g. -r but not alone or -time_base to set all timebase values)

Thanks
Regards

Have already made big progress under new AVxCAT V2 code (big amount of changes and additions)
(webcam audio recording finalized, now finalizing video + audio recording includong optional small ffplay video (only) to control what's recorded)
Title: Re: WebCam Driver Question
Post by: Remy on February 11, 2021, 12:02:57 am
I forgot that lsusb worked only a few times and since, it never worked again.
Title: Re: WebCam Driver Question
Post by: Wim Brul on February 12, 2021, 06:28:56 pm
Hi Martin,

Quote
I wanted to test any kind of sound from my USB Webcam - Logitech C920 HD Pro Webcam
I'm using "Webcam00-20210120.zip" and Lar's USBAUDIO.

Please attach lsusb report of this camera for me to inspect.


Hi

I took this log with testlog, but I'm not sure if that is what you need Wim.

Code: [Select]
Device 1:
  ctrlID=1 DevAdr=2 ConfigVal=0 IfNo=0 Speed=2 Port=1 HubIx=3
  USB Release number=0x200 DevReleaseNumber=0x11
  Class=239 SubClass=2 Protocol=1 MaxPacketSize=64
  Vendor:Product=046d:082d NumConfigurations=1 Logitech, Inc. HD Pro Webcam C920
  Configuration: NumInterfaces=4 ConfigValue=1 StringIx=0 Attr=0x80 MaxPower=250
  Interface 0: Alt=0 nEP=1 Class=14(Video) SubClass=1 Protocol=0 StringIx=0
  Endpoint: Adr=0x83 Attr=0x3 MaxPktSize=64 Interval=8
  Interface 1: Alt=0 nEP=0 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Interface 1: Alt=1 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=192 Interval=1
  Interface 1: Alt=2 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=384 Interval=1
  Interface 1: Alt=3 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=512 Interval=1
  Interface 1: Alt=4 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=640 Interval=1
  Interface 1: Alt=5 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=800 Interval=1
  Interface 1: Alt=6 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=944 Interval=1
  Interface 1: Alt=7 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=2688 Interval=1
  Interface 1: Alt=8 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=2848 Interval=1
  Interface 1: Alt=9 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=3040 Interval=1
  Interface 1: Alt=10 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=4992 Interval=1
  Interface 1: Alt=11 nEP=1 Class=14(Video) SubClass=2 Protocol=0 StringIx=0
  Endpoint: Adr=0x81 Attr=0x5 MaxPktSize=5116 Interval=1
  Interface 2: Alt=0 nEP=0 Class=1(Audio) SubClass=1 Protocol=0 StringIx=0
  Interface 3: Alt=0 nEP=0 Class=1(Audio) SubClass=2 Protocol=0 StringIx=0
  Interface 3: Alt=1 nEP=1 Class=1(Audio) SubClass=2 Protocol=0 StringIx=0
  Interface 3: Alt=2 nEP=1 Class=1(Audio) SubClass=2 Protocol=0 StringIx=0
  Interface 3: Alt=3 nEP=1 Class=1(Audio) SubClass=2 Protocol=0 StringIx=0

Regards

Hi Martin,

The information in the testlog is not sufficient. So I googled once more and I found an lsusb report of the Logitech HD Pro Webcam C920. This shows that the builtin microphones  of that webcam deliver 16000/24000/32000 Hz. 16-bit stereo. When you start "webcam.exe /a24000" and also start "wmaudio /a1 /v30" then the audio of your webcam will be reproduced by the 1st audio adapter in your system when that adapter is capable of reproducing 24000 Hz 16-bit stereo.

Regards,
Wim
Title: Re: WebCam Driver Question
Post by: Martin Iturbide on February 14, 2021, 12:57:16 am
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.
wmaudio /a1 /v30
Quote
[X:\HOME\DOWNLOADS\WEBCAM00-20210120]wmaudio /a1 /v30
started.
 opening audio input pipe
 opening ampmixer device
 informing dart being used
 allocating dart buffers
 creating event semaphore
 setting ampmixer volume

Is it supposed to be enabled there?

If I try record.exe
Code: [Select]
[X:\HOME\DOWNLOADS\AUDREC02]record /a1
started.
 opening ampmixer device
 informing dart being used
 allocating dart buffers
 creating event semaphore
 opening audio output file
 writing audio output file
[00000280]
 writing audio output file
 closing audio output file
 closing event semaphore
 deallocating dart buffers
 informing dart use ended
 closing ampmixer device
stopped.

No way to record audio yet.

I don't know what "strange mood"  does this webcam produce that I can not produce the USB report, not with lsusb and not with "USB Device Monitor". 

Regards
Title: Re: WebCam Driver Question
Post by: Remy 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 
Title: Re: WebCam Driver Question
Post by: Wim Brul 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.
Title: Re: WebCam Driver Question
Post by: Wim Brul on February 01, 2022, 11:10:53 am
I have now released UVC Webcam Server for OS/2 (ArcaOS,eComStation) (https://home.hccnet.nl/w.m.brul/webcam10/index.html) as open source. Enjoy.
Title: Re: WebCam Driver Question
Post by: OS4User on February 01, 2022, 07:34:13 pm
I have now released UVC Webcam Server for OS/2 (ArcaOS,eComStation) (https://home.hccnet.nl/w.m.brul/webcam10/index.html) as open source. Enjoy.

Tnx, Wim,  for you excellent work.
Title: Re: WebCam Driver Question
Post by: Igor 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?
Title: Re: WebCam Driver Question
Post by: Remy on March 21, 2022, 12:16:33 am
using pipe video only:
webcam /d09DA:2695:0100/n/i1  !
Title: Re: WebCam Driver Question
Post by: Igor 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).
Title: Re: WebCam Driver Question
Post by: Wim Brul 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
Title: Re: WebCam Driver Question
Post by: Igor 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.
Title: Re: WebCam Driver Question
Post by: Wim Brul 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
Title: Re: WebCam Driver Question
Post by: Igor 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.
Title: Re: WebCam Driver Question
Post by: Wim Brul 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.
 
Title: Re: WebCam Driver Question
Post by: Igor 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.
Title: Re: WebCam Driver Question
Post by: Igor 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.
Title: Re: WebCam Driver Question
Post by: Wim Brul 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
Title: Re: WebCam Driver Question
Post by: Igor on March 23, 2022, 06:59:41 pm
Hi Wim,

Thank you for your work. This version earned. The first launch was with a video stream error. The second launch was with an audio stream error - the sound looked at one repeating click to which I tried to check the microphone.

However, from the third launch - everything worked correctly and there is sound. The fourth launch also showed excellent results.
However, the sound disappears after a few minutes of using the camera. Video - continues to work.
To restore audio, a restart of the receiver program (wmaudio) is required.
Title: Re: WebCam Driver Question
Post by: Wim Brul on March 24, 2022, 12:22:02 pm
Hallo Igor,
Hi Wim,

Thank you for your work. This version earned. The first launch was with a video stream error. The second launch was with an audio stream error - the sound looked at one repeating click to which I tried to check the microphone.
You could try various sample frequencies. For example use /a16000 or /a44100 ' dependent upon what sampling frequencies your audio drivers support.

Quote
However, from the third launch - everything worked correctly and there is sound. The fourth launch also showed excellent results.
However, the sound disappears after a few minutes of using the camera. Video - continues to work.
You told me earlier that you were using webcam.exe version "W.M.Brul:00.20210214" but that version is not the latest.
The one that I have sent you, is based on the latest version from WebCam10.zip on my website, which is "W.M.Brul:10.20220127".
So perhaps your wmaudio.exe and wmvideo.exe  are not the latest version too.
See here: UVC Webcam Server for OS/2 (ArcaOS,eComStation) (https://home.hccnet.nl/w.m.brul/webcam10/index.html).

Quote
To restore audio, a restart of the receiver program (wmaudio) is required.
Right. After a restart of webcam.exe a restart of wmaudio.exe is always required.
Title: Re: WebCam Driver Question
Post by: Igor on March 25, 2022, 04:34:23 pm
Hi Wim,

Thank you. I updated the programs to the version you specified.
The program wmaudio outputs sound from 30 seconds to 1 minute. Then the last fragment is repeated forever. After restarting the program wmaudio, the sound is restored and works for some time. Not more than a minute. The server webcam.exe does not need to be restarted. It works correctly.
Title: Re: WebCam Driver Question
Post by: Remy on March 25, 2022, 09:10:10 pm
Hi Wim,

Thank you. I updated the programs to the version you specified.
The program wmaudio outputs sound from 30 seconds to 1 minute. Then the last fragment is repeated forever. After restarting the program wmaudio, the sound is restored and works for some time. Not more than a minute. The server webcam.exe does not need to be restarted. It works correctly.

What did you before having sound issue ?
Did you try your webcam with all other programs stopped ?
 
(I've got the symptom you describe when audio driver has to handle mutiple sources)
ex: Out of webcam + pm123 or pm123 + youtube or wps playing audio + other audio programs...
Title: Re: WebCam Driver Question
Post by: Igor on March 26, 2022, 10:24:27 pm
Hi Remy,

What did you before having sound issue ?
Did you try your webcam with all other programs stopped ?
 
(I've got the symptom you describe when audio driver has to handle mutiple sources)
ex: Out of webcam + pm123 or pm123 + youtube or wps playing audio + other audio programs...

Before I got the problem with the sound, I tried several times to start the video server program, because it starts correctly for me only on the third try. And always on the third try.

No other sound programs were active during the test. The only thing I can notice is the system sounds when the camera is connected. However, in this case, I did not disconnect the camera and did not reconnect it. It has been attached before.
Title: Re: WebCam Driver Question
Post by: Remy on March 26, 2022, 11:39:17 pm
May be you can give a try recording video+sound using ffmpeg and check if the sound problem exist too !
Title: Re: WebCam Driver Question
Post by: Igor on March 27, 2022, 11:35:54 pm
May be you can give a try recording video+sound using ffmpeg and check if the sound problem exist too !

ffmpeg correctly records video with sound over 2 minutes. This is amazing.