Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Wim Brul

Pages: 1 2 [3] 4 5 ... 16
31
Multimedia / Re: Use of webcam
« on: July 20, 2020, 10:49:56 pm »
Hi Rémy,

At last some test results working with WCC_update-20072020.zip:

1. Buttons "Cam is off" and "Cam is on" do their work.
2. Video is shown when using the show and [] buttons.
3. Query vSize list c250 webcam never finds 640x400 video formats.
4. Query vSize list e6500 webcam does not find yuyv 640x480,1024x768,1280x1024 formats.
5. Query vSize list e6500 webcam finds yuyv 1200x1600 format but size button does not show it.[] button shows it.
6. Query vSize list e6500 webcam correctly finds no mjpg formats. But see point 7.
7. Using Defaults Max Vsize after point 6. shows strange VMMXxVHMx default format.

This WCC version works much better than the previous ones.
Audio has not yet been tested but I will try that tomorrow.

Documentation needs brushing up: better structure and better spelling.
Pictures and text need to match what the program does and what it shows.
But you know that already. Not easy to do. To be done...

Regards,
Wim.

32
Multimedia / Re: Use of webcam
« on: July 19, 2020, 06:39:32 pm »
Hi Rémy,

Thank you for the lsusb report of the logitech QuickCam Pro 9000.
Now I can see some differences with the logitech QuickCam Pro for notebooks.
In particular wMaxPacketSize being 1x36 bytes versus 1x68 bytes (c250/c270 too).
However my program has hardcoded 1x36 bytes for 16000hz so it should work.
Please try webcam /a/n with your logitech c270 to see if that fails too.

Right now I am working on two companion webcam monitor programs:

wmaudio.exe - Webcam Monitor Audio for OS/2 (ArcaOS/eComStation)
wmvideo.exe - Webcam Monitor Video for OS/2 (ArcaOS/eComstation)

wmaudio.exe /aN plays audio thru AmpMix0N so on any audio adapter.
Input is \PIPE\Webcam\Audio. It plays with minimal delay.

wmvideo.exe is a pm program that shows video on your desktop.
Input is \PiPE\Webcam\Video. It shows with minimal delay.

The purpose is to monitor audio and video while recording with ffmpeg.
The question comes up how do you want to connect the Webcam Server?
Obviously there is one connection missing for audio. What to do?
Did you already try to record audio and video at the same time?

Best regards,
Wim.

33
Multimedia / Re: Use of webcam
« on: July 18, 2020, 03:44:03 pm »
Hi Rémy,

Quote
Tried webcam /a16000, no audio from 9000 pro
No audio - does that mean that the audio window titled \PIPE\Webcam\Audio does not appear?
Or does that window appear but no audio can be heard i.e. dead silent (like volume is zero)
Is there any error shown? Like [00004000] obtain audio error? 
When using webcam /a/n do you have video but still not sound?

Quote
Same results for USBRES which shows now the logitech QuickCam pro 9000 (but not the C270!).
This allows me to get needed information for you :D
Thanks. It confirms that the logitech Quickcam Pro only supports 16000 Hz. audio.
Apart from idProduct the Quickcam Pro for notebooks has the same usb descriptors.

I have attached lsusb-046d0991.txt that I found on the internet.

Regards,
Wim. 

34
Multimedia / Re: Use of webcam
« on: July 17, 2020, 11:18:05 am »
Hi Rémy,

Quote
Sorry, I supposed you where on a higher AN modification level with USB3 support.
No need to apologize. We never know what is exactly going on somewhere sometime. 

While developing Webcam Server for OS/2 (ArcaOS/eComStation) I used the 12.05 drivers.
That was cumbersome because I ran into a lot of traps, reboots, lost sources and so on.
It could be my poor coding or perhaps it was caused by something else. So what to do?
So I decided to follow the safest path I could think of: use Lars' 10.234 drivers.

Quote
Right but 16 bits drivers are old style and not compatible with new HW (e.g. USB3)
It is better to work with new ones.
Requires me to install ArcaOS 5.0.5 on my Dell Latitude e6500. No space. No time.
Therefore I am grateful that you, Rémy, work with ArcaOS 5.0.5 and the latest usb drivers.
And what is more, you take your time and effort to file problem reports in ArcaOS mantis.

Quote
I left my c270 plugged and added my webcam 9000 pro on an other USB2 port.
HWMANAGER show the same information and only C270 while HWEXPLORER (using latest Jully usb.ids shows the 9000pro webcam) which seems to be correct due when I start webcam, the 9000 pro goes active and not the c270....
See the HWEXPLORER output. 
The way you shwowed the output of Hardware Explorer is not convincing.
The Hardware Explorer must actually be running to get updated information.
And even then you need to redo showing that output using the way you did.
You better look at the life updating (tree) view of the Hardware Explorer.

Quote
May be I have to backlevel my USB driver to 12.5 to get some information again...   (I will try)
I think it is better to just report the problem that lsusb -v is not working with 12.06 drivers.
To get audio working for the logitech quickcam pro 9000 has to wait till that has been solved.
It is my understanding that the logitech quickcam pro for notebooks only supports 16000 Hz.
Perhaps the logitech quickcam pro 9000 only supports 16000 Hz too. Try webcam /a16000.
 
Best regards,
Wim.

35
Multimedia / Re: Use of webcam
« on: July 16, 2020, 09:56:59 am »
Hi Rémy,

Quote
I see that you have the same issue that I have when using USB 12.6 (as I write it previously)
Not really true. I have no problem using lsusb but then I am using Lars' 10.234 usb driver set.

Quote
From your report, no webcam found !  (like me, no webcam found and I think this is related to know USBXHCD limitation)
Not really true. The logitech c250 was not connected at that time. See below for the list when connected.

Code: [Select]
Bus 001 Device 001: ID 1397:0508 BEHRINGER International GmbH
Bus 001 Device 002: ID 0c45:63f0 Microdia
Bus 001 Device 003: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor
Bus 001 Device 004: ID 056a:030e Wacom Co., Ltd CTL-480 [Intuos Pen (S)]
Bus 001 Device 005: ID 046d:0804 Logitech, Inc. Webcam C250
The Microdia with ID 0c45:63f0 is the dell latitude e6500 builtin webcam.

Quote
Webcam works but lsusb no more provides any report...
Do you have the same issue in this case and are you able to get usb webcam lsusb results under your AN 5.0.5 ?
note: I asked the question to the support if this needs a new ticket.
No. I don't have usbxhcd.sys installed. and I have only usb 2.0 ports. I am using AN 5.0 i.e. the first release.
You could try and use USB Device Monitor Version 0.9.7 (usbres.exe) to see if the webcam is listed.
Seems to me that a new ticket is needed.

Regards,
Wim.

36
Multimedia / Re: Use of webcam
« on: July 15, 2020, 10:19:57 pm »
Hi Rémy,

There is not much I can do to make lsusb work on your system.
So I just installed lsusb on my ArcaOS 5.0 system for you to compare.

1. You need usbutils from Paul Smedley (lsusb-20130526_0.zip).
Code: [Select]
Directory of G:\lsusb:
26-05-13  1:22         97.368      0 a---  lsusb.exe

2. You need libusb1-legacy-0 installed (@unixroot/usr/lib/libusb10.dll).
Code: [Select]
Directory of H:\usr\lib:
17-06-16 12:24         24.217    124 a---  libusb10.dll

[G:\LSUSB]lsusb
lsusb: cannot open "H:\sys\bin/usb.ids", No such file or directory
Bus 001 Device 001: ID 1397:0508
Bus 001 Device 002: ID 0c45:63f0
Bus 001 Device 003: ID 056a:030e
Bus 001 Device 004: ID 0a5c:5800

3. you need usb.ids in h:\sys\bin (copy from h:\mptn\usb.ids).
Code: [Select]
[G:\LSUSB]copy h:\mptn\etc\usb.ids h:\sys\bin\*.*
        1 file(s) copied.

[G:\LSUSB]lsusb
Bus 001 Device 001: ID 1397:0508 BEHRINGER International GmbH
Bus 001 Device 002: ID 0c45:63f0 Microdia
Bus 001 Device 003: ID 056a:030e Wacom Co., Ltd CTL-480 [Intuos Pen (S)]
Bus 001 Device 004: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor

Regards,
Wim.

37
Multimedia / Re: Use of webcam
« on: July 14, 2020, 07:16:14 pm »
Hi Rémy,

About audio, it comes out of ffplay nearly 2s after the video (2 ffplay process)
I improved streaming audio from the c250/c270 webcams (wav audio instead of raw audio).
When you click on the xhpipe.cmd window then there is hardly a delay in audio anymore.

Too bad that one click is needed...

Regards,
Wim.

38
Multimedia / Re: Use of webcam
« on: July 14, 2020, 05:26:22 pm »
Hi Rémy,

LSUB_QCP9000.txt contains only debug information:
Code: [Select]
libusb: 0.000000 debug [libusb_init] libusb-1.0.16-rc6
libusb: 0.000000 debug [usbi_add_pollfd] add fd 5 events 1
libusb: 0.000000 debug [usbi_add_pollfd] add fd 7 events 1
libusb: 0.000000 debug [libusb_get_device_list]
libusb: 0.000000 debug [os2_get_device_list]
libusb: 0.002000 debug [os2_get_device_list] 5 devices detected
libusb: 0.002000 debug [os2_get_device_list] unable to query device report - device= 1  rc= ffea
libusb: 0.002000 debug [libusb_exit]
libusb: 0.002000 debug [usbi_remove_pollfd] remove fd 5
libusb: 0.002000 debug [usbi_remove_pollfd] remove fd 7
Where rc=ffea means: 0xFFEA - ERROR_MORE_DATA -  More data is available.

Perhaps lsusb has not enough buffer space to query that webcams device report?
Or something else is wrong. Try just lsusb to get a list of attached usb devices.
Try to get a device report from some other usb device to see if that works.

Regards,
Wim.

39
Multimedia / Re: Use of webcam
« on: July 13, 2020, 09:44:39 pm »
Hi Rémy,

For your information: I just could test a proposed fix for the usb driver to resolve trap000e and it does. Now waiting on a new release with the integrated fix.
Very well. In the meantime I am improving audio from the c250/c270 webcams a.o. streaming wav audio rather than raw audio.

I can get audio out of the c270 but none out of webcam pro 9000.
The audio part has been hardcoded for the logitech c250/c270 to stream 16-bit, mono, 48000Hz. raw audio.

It will be helpful when you provide the lsusb report (lsusb -d 046d: -v) from the logitech Quickcam Pro 9000.
Scanning of the usb descriptors for audio information will be done in due course though. I am almost there.

Quote
May be you can get a try to this update.
Will do tomorrow.

Regards,
Wim.

40
Multimedia / Re: Use of webcam
« on: July 10, 2020, 06:48:09 pm »
Hi Rémy,

Hi Wim (OFF or ON is the current status - Green = OFF)
I can change it to not make it confusing

/c parameter isn't added yet, I'll change WCC to integrate this option
Do you have FFPROBE ? I'm not sure it was available under ffmpeg 2.8.6  (it is required when using this option)
I use FFPROBE to get stream caracteristics as well working sizes

Regards
Rémy
Thank you for integrating the /cN option. FFPROBE does work with ffmpeg 2.8.6. I did some more testing see below.

Using Vsize List in the Query pulldown and MaxVsize in the Defaults pulldown does work for the c250 webcam.
But it does not work for the builtin webcam on my dell latitude e6500. No images sent for the format requested.

The ffprobe appears to be waiting forever for mjpg video data that is never coming. I think a timeout is needed.
Also probing specifically for yuyv need to be done when the Defaults yuyv has been selected by the user.

Regards,
Wim.

41
Multimedia / Re: Use of webcam
« on: July 09, 2020, 06:01:31 pm »
Hi Rémy,

I have WCC.zip unzipped into e:\wim\testen\wcc
I have ffmpeg 2.8.6-2 installed using Arca Noae Package Manager.
I defined WCC.EXE Parameters: tr /n e:\wim\project\webcam03

I double click on WCC.EXE and the green WebCam OFF button shows at top right.
I find it confusing that it shows WebCam OFF since clicking it turns WebCam ON.
I suppose the button is green because the light on the webcam is off.

I click on the WebCam OFF button and it becomes the red WebCam ON button.
It is confusing that it shows WebCam ON since clicking it turns WebCam OFF.
I suppose the button is red because the light on the webcam is on.

The show button and [] button can be used now and this will show a WebCam window.
When I click on the show button I see myself in 640x480 format in a WebCam window.
When I click on the [] button I see myself in 160x120 format in a WebCam window.

For me it is working with the logitech c250 webcam. I can switch it on and off.
I can see myself in the WebCam window either at 640x480 or at 160x120 resolution.

It did not work right away with the builtin webcam on my dell latitude e6500 laptop.
I could switch that webcam on and off but no picture of myself appeared on screen.
I had to select yuyv in the Defaults pulldown of the Parameters dialog window.
Unfortunately this webcam also needs the /c parameter to get a proper picture.
There is no way right now that I can input that parameter. It gets stripped.

I can change the Min-Size: in the Parameters dialog window and see myself accordingly.
I cannot change the Size: in the Parameters dialog window to see myself accordingly.

Using Vsize List in the Query pulldown and MaxVsize in the Defaults pulldown fails.
There appears an ffprobe -show_streams -i \PIPE\Webcam\Video 2>&1 |RXQUEUE FF window.
But that is all. My Arca Noae system does have h:\sys\dll\rxutilex.dll installed.

Best regards,
Wim.

42
Multimedia / Re: Use of webcam
« on: July 06, 2020, 04:27:24 pm »
Hi Wim,

Something is strange, using only the video (no /a), and specifying /x and /y, I have a big delay !
Previous build had a short delay (a few ms) while now, the delay is near 2s !  (time betwwen the real movement until it is shown in the video)
(with ot without /x /y parm, the result is the same)

Any idea about this ?
Is it going into the video size list for each mjpeg ?

Regards
Rémy

Hi Rémy,

The previous build and this one work the same. The delay occurs when ffplay decides to buffer the video stream before showing it.
When using "webcam /m/s | ffplay -i -" then there is that big delay (shows vq= 742KB which I guess is the buffer size used) .
When using "webcam /m/s | ffplay -framerate 50 -i -" there appears to be almost no delay.
When using "webcam /f5/m/s | ffplay -framerate 50 -i -" there is is almost no delay too.

And no, the video size list is only scanned once or twice at the start of the program.

Regards,
Wim


43
Multimedia / Re: Use of webcam
« on: July 05, 2020, 06:23:41 pm »
Hi David and Rémy,

Thanks for the courage to test and reporting back. This is the trap screen I get when running eComStation 2.2 with AN 12.06 drivers:
Code: [Select]
dumptrapscreen v0.4 reading y:\dumpdata.001 07-05-20  11:30:30

Exception in module: USBEHCD
TRAP 000e       ERRCD=0002  ERACC=****  ERLIM=******** CPU=01
EAX=00000060  EBX=f9758910  ECX=00000001  EDX=00000000
ESI=00000060  EDI=00000060  EBP=fce78000  FLG=00010206
CS:EIP=0168:ffc3ee8a  CSACC=c09b  CSLIM=ffffffff
SS:ESP=1550:f8d73f04  SSACC=c093  SSLIM=ffffffff
DS=0160  DSACC=c093  DSLIM=ffffffff  CR0=8001003b
ES=0160  ESACC=c093  ESLIM=ffffffff  CR2=f9758910
FS=0000  FSACC=****  FSLIM=********
GS=0000  GSACC=****  GSLIM=********

Internal revision 14.106_SMP
Same location as to Lars' comment.

I suspect the trap occurs while running the following code:
Code: [Select]
; cancel isochronous audio transfers
  call UsbCancelTransfer c,[fhDevice],[aAddrEndpoint],[aAltInterface],[iAudioEvent]
; close isochronous audio transfer
  call UsbIsoClose c,[fhDevice],[aAddrEndpoint],[aAltInterface]
; reset alternative audio interface request
  call UsbCtrlMessage c,[fhDevice],001h,0Bh,0,[aNumInterface],0,0,0
And specifically during the UsbCancelTransfer function.

I opened a ticket at Arca Noae bugtracker
I could not find that bug report in mantis. Please check.

44
Multimedia / Re: Use of webcam
« on: July 04, 2020, 03:58:24 pm »
Hi Rémy,

In addition to your suggest, may I suggest to add:
If /xN nor /yN parameters are found, the list is scanned for 640x480 resolution.
Alright, done. In the meantime I tried to implement streaming raw audio from the builtin microphone to \PIPE\Webcam\Audio with mixed results.

WARNING: This is beta test software! May only be used at your own risk! This time BACKUP YOUR SYSTEM TWICE before even trying.

The problems (traps) are related to the USB driver set installed. Only after installing the Lars Erdmann 10.234 drivers I got rid of the traps.

Note that for now the audio part is hardcoded for the logitech c250/c270 to stream 16-bit, mono, 48000Hz. raw audio.

Your mileage may vary. I keep my fingers crossed.

Regards,
Wim.

45
Multimedia / Re: Use of webcam
« on: June 27, 2020, 03:13:58 pm »
Hi Rémy,

Quote
The strange is that I have 640x480 if no /rN parm but the second cam QuickCam pro 9000 has a 160x120 size
With the previous build, I had 640x480 in both cases without new /rN parm which was better as general default size.

All webcams are not equal. Most supply both mjpg and yuyv formats while some provide just mjpg or yuyv formats.
Also the number of resolutions as well as the sequence of these in the list of supported formats varies by webcam.
Right now without /rN parm the first entry in that list is taken. Hence becomes 160x120 for the QuickCam pro 9000.
Since you prefer 640x480 default for all webcams I could change that behavior to force 640x480 instead. But...

It might be better to drop the /rN parameter in favor of /xN and /yN parameters.
The list will be scanned until a match with the /xN and /yN parameters is found.
If only the /xN parameter is used then only a match with /xN will be performed.
If only the /yN parameter is used then only a match with /yN will be performed.
Without /xN and /yN parameters the list is scanned for 640x480 resolution.

What do you think?

Regards,
Wim.
 
 

Pages: 1 2 [3] 4 5 ... 16