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

Sigurd Fastenrath

  • Sr. Member
  • ****
  • Thank You
  • -Given: 14
  • -Receive: 40
  • Posts: 360
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #105 on: July 15, 2014, 09:31:32 am »

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.     

Hi Wim,

thanks for your superb work, I will try it with my webcams as soon as I have time for it!

Sigurd

Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 30
  • Posts: 135
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #106 on: July 15, 2014, 11:45:11 am »
I have replaced WebSeeBeta1.zip on my website :) and updated http://home.hccnet.nl/w.m.brul/uvcvideo/index.html

NOTE: I did not spend time to solve device driver and multiple cpu issues. I first ;) want to iron out these programs.

David McKenna

  • Full Member
  • ***
  • Thank You
  • -Given: 8
  • -Receive: 9
  • Posts: 189
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #107 on: July 15, 2014, 01:25:54 pm »
Thanks Wim! There is a slight change in behavior (perhaps intentional) with UvcView here. When the image freezes, there is a popup that says:

[00000280] Obtain thread error!

No change with Weblook/Webview.

Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 30
  • Posts: 135
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #108 on: July 15, 2014, 04:41:22 pm »
Thanks Wim! There is a slight change in behavior (perhaps intentional) with UvcView here. When the image freezes, there is a popup that says:

[00000280] Obtain thread error!

No change with Weblook/Webview.

Yes David, this is intentional. On DosWaitEventSem where uvcview or weblook wait for a filled iso buffer from the device driver I changed the timeout from indefinitely to 3 seconds. This way I can tell that the freeze is there. But I have seen other freezes. Once it helped plugging in a usb mouse. I did this because both mouse and webcam use the asynchronous schedule of the host controller driver. But may be this is too much information. One tries.

OS4User

  • Full Member
  • ***
  • Thank You
  • -Given: 9
  • -Receive: 6
  • Posts: 148
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #109 on: July 15, 2014, 06:29:11 pm »
I have replaced WebSeeBeta1.zip on my website :) and updated http://home.hccnet.nl/w.m.brul/uvcvideo/index.html

NOTE: I did not spend time to solve device driver and multiple cpu issues. I first ;) want to iron out these programs.

uvcview.exe /c   works excellent for me, big thanks !

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 37
  • -Receive: 19
  • Posts: 418
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #110 on: July 17, 2014, 06:55:41 pm »
I have replaced WebSeeBeta1.zip on my website :) and updated http://home.hccnet.nl/w.m.brul/uvcvideo/index.html

NOTE: I did not spend time to solve device driver and multiple cpu issues. I first ;) want to iron out these programs.

Tested the new beta. I get a part of a image, hopefully it will be compatible.

http://os2notes.com/tmp/tests.zip


Thanks,

Greggory


Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 30
  • Posts: 135
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #111 on: July 17, 2014, 07:59:07 pm »
I have replaced WebSeeBeta1.zip on my website :) and updated http://home.hccnet.nl/w.m.brul/uvcvideo/index.html

NOTE: I did not spend time to solve device driver and multiple cpu issues. I first ;) want to iron out these programs.

Tested the new beta. I get a part of a image, hopefully it will be compatible.

http://os2notes.com/tmp/tests.zip


Thanks,

Greggory

Hi Greggory, thanks for testing.

There is no need anymore to test with uvcview /x but you might like to try uvcview /u to watch yuyv video. Report if that works for you. 

It seems that you used webview /u whereas you needed to use weblook /u to obtain yuyv video. Please read the description on my web page for weblook and webview. Could you do that yuyv test all over again?

Wim

P.S. I am almost done with decoding your mjpg video. See greggory.jpg attached.
« Last Edit: July 17, 2014, 08:13:28 pm by Wim Brul »

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 37
  • -Receive: 19
  • Posts: 418
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #112 on: July 17, 2014, 08:51:29 pm »


Hi Greggory, thanks for testing.

There is no need anymore to test with uvcview /x but you might like to try uvcview /u to watch yuyv video. Report if that works for you. 

It seems that you used webview /u whereas you needed to use weblook /u to obtain yuyv video. Please read the description on my web page for weblook and webview. Could you do that yuyv test all over again?

Wim

P.S. I am almost done with decoding your mjpg video. See greggory.jpg attached.


Wow, it worked with uncview /u and weblook /u and a great resolution too. How do you test different resolutions and I'll report back on that. Or is it only 320x240 and 640x480 display modes.

Thank you so much for your hard work (on my MPEG), this is so cool ! Also I think this model is standard stock in all Walmart stores !


Greggory
« Last Edit: July 17, 2014, 11:07:51 pm by Greggory Shaw »

mike

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #113 on: July 17, 2014, 10:00:13 pm »
I have replaced WebSeeBeta1.zip on my website :) and updated http://home.hccnet.nl/w.m.brul/uvcvideo/index.html

NOTE: I did not spend time to solve device driver and multiple cpu issues. I first ;) want to iron out these programs.

Thanks for the update. Here  both webview and uncview report a frame size error:

started.
[0104241B]
[0105241E]
YUYV
[00000000]
frame size error.
stopped.

Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 30
  • Posts: 135
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #114 on: July 18, 2014, 08:33:43 am »

Thanks for the update. Here  both webview and uncview report a frame size error:

started.
[0104241B]
[0105241E]
YUYV
[00000000]
frame size error.
stopped.

It seems that my programs did not find a suitable endpoint descriptor.
Start USBDock /bin and attach your camera's .BIN file for me to inspect.

Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 30
  • Posts: 135
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #115 on: July 18, 2014, 08:45:00 am »
Quote
Wow, it worked with uncview /u and weblook /u and a great resolution too. How do you test different resolutions and I'll report back on that. Or is it only 320x240 and 640x480 display modes.

It is just 640x480 video with 320x240 and 640x480 display modes.

mike

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #116 on: July 18, 2014, 11:15:43 am »

It seems that my programs did not find a suitable endpoint descriptor.
Start USBDock /bin and attach your camera's .BIN file for me to inspect.

this system doesn't have the USBDock installed, is there a way to get these data from the USB Monitor tool?



Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 30
  • Posts: 135
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #117 on: July 18, 2014, 02:42:08 pm »

It seems that my programs did not find a suitable endpoint descriptor.
Start USBDock /bin and attach your camera's .BIN file for me to inspect.

this system doesn't have the USBDock installed, is there a way to get these data from the USB Monitor tool?

Use the output of lsusb from Paul Smedley for your camera.

https://dl.dropboxusercontent.com/u/76425158/lsusb-20130526.zip

1. when I typed lsusb I got

Bus 001 Device 001: ID 046d:0804 Logitech, Inc. Webcam C250

2. When I typed lsusb -d 046d:0804 -v > 046d0804.txt

I got the descriptors in the created 046d0804.txt file.

mike

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Webcam Support for OS/2 and eCS!!
« Reply #118 on: July 18, 2014, 08:50:32 pm »

Use the output of lsusb from Paul Smedley for your camera.

https://dl.dropboxusercontent.com/u/76425158/lsusb-20130526.zip

1. when I typed lsusb I got

Bus 001 Device 001: ID 046d:0804 Logitech, Inc. Webcam C250

2. When I typed lsusb -d 046d:0804 -v > 046d0804.txt

I got the descriptors in the created 046d0804.txt file.

lsusb is not working, it seems that it has problems finding/loading the usb.ids file,  the %OS_DIR% var is  not used. lsusb.exe -h works.

Killed by SIGSEGV
pid=0x001b ppid=0x001a tid=0x0001 slot=0x003b pri=0x0200 mc=0x0001
C:\TOOLS\USB\LSUSB.EXE
LSUSB 0:0000f3b6
cs:eip=005b:0001f3b6      ss:esp=0053:0081ff30      ebp=0081ffa0
 ds=0053      es=0053      fs=150b      gs=150b     efl=00010246
eax=00000000 ebx=ffffffff ecx=ffffffff edx=00000000 edi=00000000 esi=0081ffbc
Process dumping was disabled, use DUMPPROC / PROCDUMP to enable it.

 I will send the output from the other usb tool, maybe it will tell what is required.

Wim Brul

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 30
  • Posts: 135
    • View Profile
    • Wim's home page
Re: Webcam Support for OS/2 and eCS!!
« Reply #119 on: July 20, 2014, 06:05:49 pm »
Hi Greggory,

P.S. I am almost done with decoding your mjpg video.

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

contains webview.exe which handles mjpg too. Please try.

Wim.