Author Topic: Webcam Support for OS/2 and eCS!!  (Read 74711 times)

OS4User

  • Sr. Member
  • ****
  • Thank You
  • -Given: 96
  • -Receive: 16
  • Posts: 306
  • Karma: +9/-0
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #90 on: July 10, 2014, 02:20:13 pm »
To Wim Brul

anything can be done in my case ?

http://www.os2world.com/forum/index.php/topic,196.msg3884.html#msg3884

May be so. Start USBDock /bin and attach 0AC83420.BIN for me to inspect.

pls download it from here http://gus.biysk.ru/os4/usb/0ac83420.bin

Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 5
  • -Receive: 43
  • Posts: 234
  • Karma: +11/-0
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #91 on: July 10, 2014, 05:35:56 pm »
Quote
pls download it from here http://gus.biysk.ru/os4/usb/0ac83420.bin

I parsed the compound descriptor and there is nothing wrong with it. But it did not help me either. So I am going to shoot in the dark. May be your camera yuyv stream is interlaced. So I prepared a special uvcview.exe for you to try out. When it displays something then take a SnapShot.

http://home.hccnet.nl/w.m.brul/uvcvideo/os4user.zip

OS4User

  • Sr. Member
  • ****
  • Thank You
  • -Given: 96
  • -Receive: 16
  • Posts: 306
  • Karma: +9/-0
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #92 on: July 10, 2014, 05:51:12 pm »
Quote
pls download it from here http://gus.biysk.ru/os4/usb/0ac83420.bin

I parsed the compound descriptor and there is nothing wrong with it. But it did not help me either. So I am going to shoot in the dark. May be your camera yuyv stream is interlaced. So I prepared a special uvcview.exe for you to try out. When it displays something then take a SnapShot.

http://home.hccnet.nl/w.m.brul/uvcvideo/os4user.zip

just black screen again

shoud I load USBECD.SYS ?  if yes, pls advice correct command line


mike

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #93 on: July 10, 2014, 10:09:03 pm »

Hi Mike,

Yes, but it is easier for me to work on weblook first because it is a vio program. Mind you, the associated webview program is a pm program. The aim is to move away from usbecd.sys for generic webcam support. See my previous posts in this thread.

Wim.


Helllo Wim,
the generic webcam support sounds good. I could install now all the latest files, made the usbecd.sys  config and then tried  weblock.exe

started.
[0104241B]
[0105242A]
YUYV
[000007F8]
[00000018]
bind: Address not available
[open isochronous]

the cam led is on but webview.exe shows just a black window the same happens with uvcview.exe. Any ideas?

mike


Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 5
  • -Receive: 43
  • Posts: 234
  • Karma: +11/-0
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #94 on: July 11, 2014, 01:26:59 pm »
To Mike and OS4User

http://home.hccnet.nl/w.m.brul/uvcvideo/os4user.zip

Unpack os4user.zip and run uvcvideo /x and click TestShot

1. Do you see out of sync video?
2. Do you have uvcview.raw file?
3. I need uvcview.raw file.

Doug Bissett

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 62
  • Posts: 1461
  • Karma: +2/-2
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #95 on: July 11, 2014, 06:49:59 pm »
Okay, I think I can definitely say that uvcvideo, and weblook, freezes when ACPI switches off all but one processor.

One odd thing, that I see, is that starting weblook causes some low activity on the second processor, even though the system does not appear to have enough activity to justify turning it on.

When I also start webview, the activity does go high enough to turn on the second processor, and keep it on (depending on the settings).

I don't know if this is a flaw in ACPI, the USB stuff, WebSee, or something else.

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 221
  • Posts: 3106
  • Karma: +53/-0
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #96 on: July 12, 2014, 03:31:18 am »
Okay, I think I can definitely say that uvcvideo, and weblook, freezes when ACPI switches off all but one processor.

One odd thing, that I see, is that starting weblook causes some low activity on the second processor, even though the system does not appear to have enough activity to justify turning it on.

When I also start webview, the activity does go high enough to turn on the second processor, and keep it on (depending on the settings).

I don't know if this is a flaw in ACPI, the USB stuff, WebSee, or something else.

Perhaps just 2 threads using high or more likely realtime priority.

OS4User

  • Sr. Member
  • ****
  • Thank You
  • -Given: 96
  • -Receive: 16
  • Posts: 306
  • Karma: +9/-0
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #97 on: July 12, 2014, 10:04:19 pm »
To Mike and OS4User

http://home.hccnet.nl/w.m.brul/uvcvideo/os4user.zip

Unpack os4user.zip and run uvcvideo /x and click TestShot

1. Do you see out of sync video?
2. Do you have uvcview.raw file?
3. I need uvcview.raw file.

in the http://home.hccnet.nl/w.m.brul/uvcvideo/os4user.zip I found  uvcview.exe but not uvcvideo

I run it (uvcview.exe /x)   -   it is first time I can see something different from black screen  -  it looks like miss sync video

http://gus.biysk.ru/os4/usb/uvcview.raw

when i tried to exit from uvcvideo  I got a trap

848h  - it is USBEHC2& (according to Theseus)

Code: [Select]
Trap 13 (0DH) - General Protection Fault 0000
eax=000000a2 ebx=e9c1ffc4 ecx=0001301a edx=21000000 esi=39303ffe edi=39303fc2
eip=000006c4 esp=00004eb8 ebp=00004ec8 iopl=0 rf -- -- nv up ei pl nz na po nc
cs=0848 ss=1530 ds=3930 es=3930 fs=0000 gs=0000 cr2=0095e1e4 cr3=7fa45000 p=03
0848:000006c4 f366a5         repe movsd                        cac5ffd4 invalid
##u
0848:000006c4 f366a5         repe movsd
0848:000006c7 8bcb           mov       cx,bx
0848:000006c9 83e103         and       cx,+03
0848:000006cc f3a4           repe movsb
0848:000006ce 07             pop     es
0848:000006cf 1f             pop     ds
0848:000006d0 5b             pop       bx
0848:000006d1 59             pop       cx
0848:000006d2 665f           pop       edi
0848:000006d4 665e           pop       esi
0848:000006d6 8be5           mov       sp,bp
0848:000006d8 5d             pop       bp
##u
0848:000006d9 c3             ret
0848:000006da fd             std
0848:000006db 03f3           add       si,bx
0848:000006dd 03fb           add       di,bx
0848:000006df 4e             dec       si
0848:000006e0 4f             dec       di
0848:000006e1 8bcb           mov       cx,bx
0848:000006e3 83e103         and       cx,+03
0848:000006e6 f3a4           repe movsb
0848:000006e8 83ee03         sub       si,+03
0848:000006eb 83ef03         sub       di,+03
0848:000006ee 8bcb           mov       cx,bx
##u
0848:000006f0 c1e902         shr       cx,02
0848:000006f3 f366a5         repe movsd
0848:000006f6 fc             cld
0848:000006f7 ebd5           jmp       06ce
0848:000006f9 55             push      bp
0848:000006fa 8bec           mov       bp,sp
0848:000006fc 53             push      bx
0848:000006fd 51             push      cx
0848:000006fe 06             push    es
0848:000006ff 57             push      di
0848:00000700 8b5e0a         mov       bx,word ptr [bp+0a]
0848:00000703 8bcb           mov       cx,bx
##u
0848:00000705 c1e902         shr       cx,02
0848:00000708 83fb00         cmp       bx,+00
0848:0000070b 0f850b00       jnz       071a
0848:0000070f 837e0400       cmp       word ptr [bp+04],+00
0848:00000713 0f852200       jnz       0739
0848:00000717 b90040         mov       cx,4000
0848:0000071a 8e4606         mov       es,word ptr [bp+06]
0848:0000071d 8b7e04         mov       di,word ptr [bp+04]
0848:00000720 8b4608         mov       ax,word ptr [bp+08]
0848:00000723 8ae0           mov       ah,al
0848:00000725 66c1e010       shl       eax,10
0848:00000729 8b4608         mov       ax,word ptr [bp+08]
##u
0848:0000072c 8ae0           mov       ah,al
0848:0000072e fc             cld
0848:0000072f f366ab         repe stosd
0848:00000732 8bcb           mov       cx,bx
0848:00000734 83e103         and       cx,+03
0848:00000737 f3aa           repe stosb
0848:00000739 5f             pop       di
0848:0000073a 07             pop     es
0848:0000073b 59             pop       cx
0848:0000073c 5b             pop       bx
0848:0000073d 5d             pop       bp
0848:0000073e c3             ret
##u
0848:0000073f 8cd8           mov       ax,ds
0848:00000741 c3             ret
0848:00000742 9c             pushf
0848:00000743 fa             cli
0848:00000744 58             pop       ax
0848:00000745 c3             ret
0848:00000746 c80c0000       enter     000c,00
0848:0000074a c746fe0000     mov       word ptr [bp-02],0000
0848:0000074f 66c746f6000000f0 mov       dword ptr [bp-0a],f0000000
0848:00000757 c746f41c00     mov       word ptr [bp-0c],001c
0848:0000075c 66837ef600     cmp       dword ptr [bp-0a],+00
0848:00000761 0f847b00       jz        07e0
##u
0848:00000765 8b46f6         mov       ax,word ptr [bp-0a]
0848:00000768 8b56f8         mov       dx,word ptr [bp-08]
0848:0000076b 234608         and       ax,word ptr [bp+08]
0848:0000076e 23560a         and       dx,word ptr [bp+0a]
0848:00000771 8a4ef4         mov       cl,byte ptr [bp-0c]
0848:00000774 0ac9           or        cl,cl
0848:00000776 7408           jz        0780
0848:00000778 d1ea           shr       dx,1
0848:0000077a d1d8           rcr       ax,1
0848:0000077c fec9           dec       cl
0848:0000077e 75f8           jnz       0778
0848:00000780 8946fa         mov       word ptr [bp-06],ax
##u
0848:00000783 8bc2           mov       ax,dx
0848:00000785 0b46fa         or        ax,word ptr [bp-06]
0848:00000788 7405           jz        078f
0848:0000078a c746fe0100     mov       word ptr [bp-02],0001
0848:0000078f 8bc2           mov       ax,dx
0848:00000791 0b46fa         or        ax,word ptr [bp-06]
0848:00000794 7519           jnz       07af
0848:00000796 837efe00       cmp       word ptr [bp-02],+00
0848:0000079a 7513           jnz       07af
0848:0000079c f6460d80       test      byte ptr [bp+0d],80
0848:000007a0 750d           jnz       07af
0848:000007a2 66837ef60f     cmp       dword ptr [bp-0a],+0f
##u
0848:000007a7 7523           jnz       07cc
0848:000007a9 837efe00       cmp       word ptr [bp-02],+00
0848:000007ad 751d           jnz       07cc
0848:000007af 0bd2           or        dx,dx
0848:000007b1 750d           jnz       07c0
0848:000007b3 837efa09       cmp       word ptr [bp-06],+09
0848:000007b7 7707           ja        07c0
0848:000007b9 8a46fa         mov       al,byte ptr [bp-06]
0848:000007bc 0430           add       al,30            ;'0'
0848:000007be eb05           jmp       07c5
0848:000007c0 8a46fa         mov       al,byte ptr [bp-06]
0848:000007c3 0437           add       al,37            ;'7'

Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 5
  • -Receive: 43
  • Posts: 234
  • Karma: +11/-0
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #98 on: July 13, 2014, 10:04:32 am »
Quote
in the http://home.hccnet.nl/w.m.brul/uvcvideo/os4user.zip I found  uvcview.exe but not uvcvideo

I run it (uvcview.exe /x)   -   it is first time I can see something different from black screen  -  it looks like miss sync video

http://gus.biysk.ru/os4/usb/uvcview.raw

Yes, I meant uvcview.exe /x to run.
I inspected uvcview.raw and your webcam like Mike's does not set EOH bit in the stream headers.
Try http://home.hccnet.nl/w.m.brul/uvcvideo/mike.zip to see if uvcview.exe will work for you.

OS4User

  • Sr. Member
  • ****
  • Thank You
  • -Given: 96
  • -Receive: 16
  • Posts: 306
  • Karma: +9/-0
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #99 on: July 13, 2014, 03:25:22 pm »

Try http://home.hccnet.nl/w.m.brul/uvcvideo/mike.zip to see if uvcview.exe will work for you.

YES, it works
 with /x again misssync,  but without /x  WORKS!

picture has some defect  -  see attachment

Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 5
  • -Receive: 43
  • Posts: 234
  • Karma: +11/-0
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #100 on: July 13, 2014, 06:30:23 pm »
picture has some defect  -  see attachment

Your webcam supplies darker Y values than the standard threshold of 16. This makes darker areas in the image white. Since your webcam descriptors don't tell me that, I will come up with yet another parameter to compensate for that. I will keep you informed.

OS4User

  • Sr. Member
  • ****
  • Thank You
  • -Given: 96
  • -Receive: 16
  • Posts: 306
  • Karma: +9/-0
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #101 on: July 13, 2014, 06:54:06 pm »

Your webcam supplies darker Y values than the standard threshold of 16.

I had the same filling  but did not know how to express

Greggory Shaw

  • Sr. Member
  • ****
  • Thank You
  • -Given: 56
  • -Receive: 19
  • Posts: 440
  • Karma: +0/-0
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #102 on: July 13, 2014, 11:39:43 pm »
Hi Wim,

I was wondering if you could support the Logitech Webcam C270 !

Here's some output for it:

1) Weblook output:

started.
[0104241B]
[01052432]
[0206240B]
[01072432]
MJPG
[00000BF4]
[00000010]
On-line. Use Ctrl+Break to end.
[open isochronous]

2) webview.exe

Opens with alot of beebs, but not black screen see attached

3) uvcview.exe

Dialog - Device driver error open.


Thank you so much for your hard work !

Greggory
« Last Edit: July 13, 2014, 11:44:27 pm by Greggory Shaw »

Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 5
  • -Receive: 43
  • Posts: 234
  • Karma: +11/-0
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #103 on: July 14, 2014, 09:07:05 am »
Hi Greggory,

Hi Wim,

I was wondering if you could support the Logitech Webcam C270 !

Here's some output for it:

1) Weblook output:

started.
[0104241B]
[01052432]
[0206240B]
[01072432]
MJPG
[00000BF4]
[00000010]
On-line. Use Ctrl+Break to end.
[open isochronous]

Looks good to me.
 
Quote
2) webview.exe

Opens with alot of beebs, but not black screen see attached

A lot of beeps means that the mjpg decoder in webview.exe encountered a lot of invalid huffman codes. May be this camera uses its own specific set of huffman codes. If this is true than you are out of luck because I cannot support that. Take a TestShot so I can inspect the webview.raw file.  But there is hope. If your webcam supports yuyv video too then I could modify weblook.exe to use yuyv instead. An additional parameter /u could enable that feature.

Quote
3) uvcview.exe

Dialog - Device driver error open.
Thank you so much for your hard work !

Greggory

Both weblook.exe and uvcview.exe operate your webcam. They cannot do that at the same time. Hence the open error.

I am currently working on a full replacement of WebSeeBeta1.zip that contains all fixes up to and including the ones required for Mike and os4user. Now I will add the /u parameter to weblook.exe and to uvcview.exe too.

Regards, Wim.     

Greggory Shaw

  • Sr. Member
  • ****
  • Thank You
  • -Given: 56
  • -Receive: 19
  • Posts: 440
  • Karma: +0/-0
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #104 on: July 14, 2014, 07:14:16 pm »
Take a TestShot so I can inspect the webview.raw file.  But there is hope. If your webcam supports yuyv video too then I could modify weblook.exe to use yuyv instead. An additional parameter /u could enable that feature.

...

Regards, Wim.     


Thank you Wim !

http://os2notes.com/tmp/webview.raw

If you need any testers, I'm in - eCS 2.1  !

Greggory
« Last Edit: July 14, 2014, 08:14:04 pm by Greggory Shaw »