Shhh... Haiku isn't blind anymore!

Can you guess what we are looking at? :backhand_index_pointing_down:

Let’s just say that if you’ve been waiting to use your webcam on Haiku, your wait is almost over.

Many webcams will be supported very soon.

Patience will be rewarded! :wink:

41 Likes

Noice!

How are my chances with an internal webcam of a 10 year old notebook?

1 Like

I’d guess about the same than for a touchpad.

1 Like
10 Likes

Honestly, Kinda dissapointed. I was excited about seeing something self made but it’s yet another AI thing…

3 Likes

As far as I’m concerned, the Taliban are completely free not to use the code we generated. :blush:

As for the controversy, I believe that if you had written a line of code for every controversy you’ve created in this forum, we would already have r2 finished :wink:.

For the rest, we are using these tools to try and fill gaps that are present in this wonderful operating system.

No one is asking to include them in the Haiku sources; I am only providing the possibility of using a webcam that you currently CANNOT use.

7 Likes

Looks really good, thank you for taking the effort of developing this. Sadly, my hardware isn’t supported (so cannot test the app).

04f2:b735 /dev/bus/usb/0/2 “Chicony Electronics Co., Ltd” “HP Wide Vision HD Camera” ver. 9751

3 Likes

He solves a problem for a lot of people with a native app and you bash him for using AI. Not a nice way to motivate someone who maybe isn’t a (good enough yet) developer to continue developing for Haiku.

If you love oldskool and don’t want to (ab)use AI, fine, don’t use it. I know it’s not really AI, so spare me the lectures. See it as a developer’s aid that might save time. Or not, that’s on the user.

10 Likes

I’m not sure AI is a problem, it’s just a tool.

This tool need to be used correctly. But using this tool should not be blamed , everybody has the rights to use its own tool.

11 Likes

This is marketed as a development Tool. The native app is CodyCam.

I don’t see any problems this solved

It solved problem with EHCI isochronous transfer support and UVC camera driver. CodyCam should work too.

8 Likes

Hi nephele,

I must clarify that the project is solely a non-professional development tool.

It originated from the fact that Cortex and CodyCam are architecturally different, and a driver that works on one is not guaranteed to work on the other. We created a bridge between the two and a method to analyze the USB bus.

Using this tool, we have discovered and identified:

  1. Small bugs on the EHCI bus.

  2. Missing parts in the EHCI implementation itself.

Therefore, we are not just solving a webcam problem for a few people; we are identifying gaps in system-level USB support.


Important Note on Release: This entire body of work will certainly not be included in the official Haiku sources. All modified source code will be available on my repository for community review. The package we release will contain only the binaries that will replace the system ones, specifically to avoid “polluting” the sources, which, as far as I am concerned, will remain untouched.

The video driver is now functional, and I am working to integrate the audio, although it is currently creating interference with the video stream.

Thanks! — Andrea

14 Likes

Great work! Keep it up!

1 Like

This part (which seems to be the most interesting one) does not seem to be included in the github repository (unless I’m missing something). Do you plan to share these fixes?

CodyCam seems indeed to be making incorrect use of the media kit, but as far as I know this was not the only problems with getting webcams to work.

3 Likes

It are included in ZIP archive published in chat.

Hi PulkoMandy,

Thanks for your interest! You are right, the USB support part is the most crucial.

I originally wanted to share the sources and files only when the audio was functional to provide a complete package. However, given your request:

I will put them into a repository in the coming days anyway. This way, you can look at them immediately, even if they are incomplete and full of “AI blobs” :wink:.

The fixes aren’t explicit patches, but rather insights gained while trying to make the Media Kit and USB stack cooperate, and these will be clarified by sharing the modified code.

4 Likes

Can I talk to the human prompting you directly? I think it would be simpler and avoid any misunderstandings…

Or maybe it is you, Andrea? Did you talk so much with LLM that you now talk like them? :frowning: Are you OK?

6 Likes

LOL

Here’s an example: This link is already outdated :slight_smile: http://www.studiobernardi.eu/Tatooine/haiku_usb_bus_2025_11_22_Collettivo_Claudio.zip

2 Likes

Hi PulkoMandy,

Jokes aside, and putting aside the quick translations done between meetings, our community has given a lot over the years, and I see no problem at all in sharing what we are achieving with the help of Claude.

I won’t hide the fact that if I have any “tokens” left over at the end of this experience with LLMs and Haiku, my intention is to create a purely technical document (without including any line of code) that explains in detail what has been modified. This way, if someone is willing to invest some time, they can rewrite the solution from scratch without the fear of infringing any license.

2 Likes

If I wanted to try this out with my webcams, where do I get hold of the “Haiku development tools” mentioned in your GitHub? Is this the same thing as Paladin in HaikuDepot?

Requirements

  • Haiku (R1 Beta or later)

  • GCC compiler (included with Haiku)

  • Haiku development tools