Slashdot Mirror


Lone Programmer Writes 352 Webcam Drivers For Linux

mrneutron2004 writes "A French physician and ardent Linux supporter is the one man you can all thank for adding support for 352 webcams in Linux. The Open Source OS world may still be a bit of a mess when competing with the ease of Windows, but efforts like this make you wonder. One man with drive, tenacity, and no funding does what no one else can do. And none of the major Linux distributions back this guy's efforts, even the big players dipping into the corporate world's coffers."

31 of 450 comments (clear)

  1. 253 or 352? by DogDude · · Score: 2, Informative

    Either way it's a lot, but the Slashdot editors really suck.

    --
    I don't respond to AC's.
    1. Re:253 or 352? by asninn · · Score: 2, Informative

      At least the "European" (and I'm using that word solely because you did - in reality, it's used all over the world) way makes sense - year, month and day are presented in a natural order (little-endian), whereas in the "US-American" notation is just, well, weird. I understand it translates easily from natural language (so "May 1st 2007" becomes "05/01/2007"), but the same can be said about the "European" format ("1st of May 2007" becomes "01/05/2007"), so that's not really an advantage.

      Personally, I prefer and exclusively use the ISO 8601 format (e.g. "2007-05-01") - it's *unambiguous*, natural (big-endian) *and* it sorts in a natural fashion when you sort alphabetically, too. There really is no downside to it at all that I can see, save for the fact that it's not as widely-used world-wide as the "European" notation (but more widely-used than the "US-American" one).

      --
      butter the donkey
  2. I hate this.. by .Chndru · · Score: 5, Informative

    The man wrote 350+ drivers. How about some link love for him, slashdot? http://mxhaard.free.fr/spca5xx.html

  3. Re:Let the market speaks by Anonymous Coward · · Score: 3, Informative

    > So a bad driver caused him to give up on W2K, then he proceeds to
    > spend endless hours of creating drivers for those crappy webcams?

    No, that guy you quoted is the article writer not the driver writer.

  4. Re:Let the market speaks by bert.cl · · Score: 1, Informative
    Actually,

    If I've read this correctly, it's the author of the article that bought the webcam to use it on W2K. The coder bought the cams for his daughters and noticed there wasn't any linux support, so he took the matter in his own hands.

  5. Re:how many? by fudgefactor7 · · Score: 4, Informative

    Not Dyslexia, it's Dyscalculia when dealing with numbers.

  6. Re:Let the market speaks by KingSkippus · · Score: 4, Informative

    No, you misunderstand. The person who gave up on W2K is the reporter, not the guy who created the drivers. The guy who wrote the drivers did it because he bought webcams for his daughters and they didn't have drivers.

    As for you comment, it's not the camera that has the problem; it's the drivers, and that's what he fixed for Linux. In your analogy, it's more like buying a used car with a heavy discount because it has a dirty air filter. If you know that the car is perfectly fine with a new air filter, why not buy it? A famous man once said, "A dirty air filter does not a bad car make." (Okay, I admit it, it was me, just then, and I guess I'm not that famous.)

  7. Physicist, not physician ! by Anonymous Coward · · Score: 3, Informative

    If you read his CV on his website, you'll notice that he is a physicist, not a physician.

    The confusion stems from the interview, where he calls himself a physician:
    physicist is called "physicien" (pronounced "physician) in French !

    Stephane

  8. Not 352 seperate drivers by rminsk · · Score: 5, Informative

    The programmer did not write 352 seperate drivers for web cams, he wrote drivers for 8 different camera bridge chips and different versions of those chipss.

    1. Re:Not 352 seperate drivers by RyuuzakiTetsuya · · Score: 2, Informative

      that's what I figured.

      If you wrote a Brooktree 848 driver, you just in theory, supported probably a good 100+ or more analog video-in cards.

      --
      Non impediti ratione cogitationus.
  9. Re:But not, apparently... by jez9999 · · Score: 4, Informative

    His name is Michel Xhaard.

  10. Re:Object oriented? by DaleGlass · · Score: 4, Informative

    See my other post, it's the same thing as with sound cards for instance. Linux doesn't have a driver specifically for the "Creative SB Live Value", it has a driver for the EMU10K1 chip the card is based on. This driver works for several models of the SB Live series, and perhaps even for non-Creative cards if some other company builds cards using the EMU10K1 chip.

  11. Re:WOW!!!! by doti · · Score: 5, Informative
    While I still value his work, it's worth noticing that the /. title is a lot misleading. He didn't made 253 different drivers, but one driver that works on 253 different webcams that have a lot in common.
    From TFA:

    FC: So how did the ice ball grow to reach today's 253+ webcams supported with several different chipsets?
    MX: Starting with the Sunplus chipset support, I realised that most code in the core driver could be "shareable" to support several webcam chipset(s). That is why the "GSPCA" drivers now support over 250 webcams from different chipset vendors.
    --
    factor 966971: 966971
  12. Re:Capture Peripherals Are the Red-Headed by drinkypoo · · Score: 2, Informative

    Anyone have any insight as to why that is?

    Because while they were creating standard driver profiles for mass storage and ethernet they forgot to make a standard for webcams.

    Really quite stupid, too. But then, USB is shit.

    Note that there is a standard for video on firewire, but it's a crap one as it mandates a fixed resolution.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  13. Physicist, not physician by thib_gc · · Score: 5, Informative

    The article and the summary say that this guy is a physician, but he isn't. He's a physicist. The French word for physicist is physicien. Apparently someone got their words mixed up (but that's okay because they also appear to have their digits mixed up anyway).

  14. It's called UVC by Ayanami+Rei · · Score: 2, Informative

    http://en.wikipedia.org/wiki/USB_video_device_clas s

    But since the cameras are essentially fixed-focus NTSC CCDs with framegrabbers, USB bridge chips of the week and ad-hoc Atmel microcontrollers with random firmware tying it all together... it's no wonder the Chinese OEMs just roll their own protocol and driver.

    Implement a published spec! That'd take testing beyond plugging it into the engineer's laptop to see if it works.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  15. to bad it's not in mainline kernel by the+Hewster · · Score: 5, Informative

    I have to applaud this person for the huge work he has done to support all these webcams under Linux. However, from what I could tell from a quick google search, he seems to be one of these developpers who write GPL drivers for Linux (also GPL) but then refuse to have them included in the mainline kernel for some mystical reason.
    This situation really makes me sad because thousands, perhaps millions of people could have their webcam "just work" out of the box, but instead, they have to do all sorts of voodoo magic (look on google, find the package, compile it, patch source etc.). Statistically, a percentage of these people will spend a lot of time getting it to work, some people will fail to make it work and some won't even bother. What a waste.
    The worst part of it is that the driver, being GPL, could be included legally without the autor's consent however, this would risk alienating this valuable developper. Imagine if the people developping drivers for motherboard chipsets had the same attitude and what that would do to the usability of Linux.
    So please, Michel Xhaard, do a huge favor to the whole Free software comunity at little or no cost to yourself and get that driver in mainline.

    1. Re:to bad it's not in mainline kernel by Anonymous Coward · · Score: 1, Informative

      Actually, it is down to the Kernel team not wanting to have image decompression and conversion code in the kernel

      Cydergoth (The guy who _actually_ wrote the original SPCA driver)

  16. Re:Let the market speaks by Mr+44 · · Score: 2, Informative


    Windows on the other hand, gets more and more obscure with each passing day. Starting from XP it reboots instead of letting you see the BSOD, so without considerable effort you can't even find what went wrong. You go to make tea, come back, and the box mysteriosly rebooted meanwhile.


    Sorry, thats just because you're an idiot. Or at least, not on the same level as someone capable of writing drivers.

    On win2k, XP or Vista now, you can decide what the system does with a "bluescreen" (under My Computer->Properties). Rebooting immediately is the default since thats preferable for 99% of users, but there's a checkbox to display the bluescreen anyways, and write out a full or partial memory dump. Using microsoft's free kernel debugger, you can then analyze that crashdump. It's relatively easy to pin down which module caused the crash...

    Oh, and I love "gets more and more obscure with each passing day" - starting two years ago or so, microsoft set up a symbol server so you can automatically load operating system debugging symbols for the exact binaries you are running with. Makes the above debugging process a lot easier....

  17. Re:Donation Link?? by AchiIIe · · Score: 5, Informative

    You only need an email address (or phone number) to send paypal money. And here you go: mxhaard@magic.fr

    Paypal link: Send money - Enter email or phone

    -- Note: It's on his website as well: http://mxhaard.free.fr/apropos.html

    --
    Nature journal lied in Britannica vs Wikipedia Ask to retrac
  18. (Before a Debian/[K]Ubuntu user beats me to it...) by Dr.Dubious+DDQ · · Score: 2, Informative
    [...]instead, they have to do all sorts of voodoo magic[...]

    Man, tell me about it. I'm still exhausted from typing "emerge gspcav1"...Glad I'm not using Ubuntu, or I'd have to do about twice as much work! ("gspcav1" being much shorter to type than "gspca-source"...)

    Okay, in fairness, it actually was kind of a pain finding this package in the first place, but other than that, the three different types of webcams I have floating around all DO seem to "just work" with it. And don't let the "2.6.19" thing on the Gentoo package page fool you - it seems to at least compile for 2.6.21.

    Now, does anyone have any good recommendations for webcam capture software? (How the heck do I get mencoder to use the webcam for input, anyway?...)

  19. Re:First frenchman in history by gowen · · Score: 4, Informative
    The British were driven into the sea, but the Belgian king rather meekly capitulated, which exposed the left flank of the retreating Brits and the French. If you read Churchill's "Fight Them On The Beaches" speech (as reprinted in last weeks Guardian) he makes explicit reference to this

    Yet at the last moment, when Belgium was already invaded, King Leopard called upon us to come to his aid, and even at the last moment we came. He and his brave, efficient Army, nearly half a million strong, guarded our left flank and thus kept open our only line of retreat to the sea. Suddenly, without prior consultation, with the least possible notice, without the advice of his Ministers and upon his own personal act, he sent a plenipotentiary to the German Command, surrendered his Army, and exposed our whole flank and means of retreat.

    I asked the House a week ago to suspend its judgment because the facts were not clear, but I do not feel that any reason now exists why we should not form our own opinions upon this pitiful episode. The surrender of the Belgian Army compelled the British at the shortest notice to cover a flank to the sea more than 30 miles in length. Otherwise all would have been cut off, and all would have shared the fate to which King Leopold had condemned the finest Army his country had ever formed. So in doing this and in exposing this flank, as anyone who followed the operations on the map will see, contact was lost between the British and two out of the three corps forming the First French Army, who were still farther from the coast than we were, and it seemed impossible that any large number of Allied troops could reach the coast.
    --
    Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
  20. Re:First frenchman in history by alphamugwump · · Score: 1, Informative

    Don't forget the franco-prussian war, the french revolution, and Henry V. After Henry, they had to have a girl take it back. Seriously, the french have lost a LOT of wars. And a lot of them were on their own ground, too. It's one thing to lose your colonies; that happens to everyone. But to get repeatedly pwned over the centuries is sort of special, I think.

  21. Re:Look UP by UncleFluffy · · Score: 2, Informative

    A driver is basically a look-up table with settings. Get over it.

    Funny. The last driver I worked on had 3 embedded compilers, a full OS abstraction layer, garbage collector, and more than one look-up table. Drivers for similar devices have got more complicated in the time since then.

    You haven't got a clue what you're talking about. Get over it.

    --

    What would Lemmy do?

  22. Re:The French help America once again! by Cantus · · Score: 4, Informative
    It's sad really how nobody remembers that the French were decisive in getting Americans gain their independence. From Wikipedia:

    The colonists' victory at Saratoga led the French into an open alliance with the United States. In 1781, a combined American and French Army, acting with the support of a French fleet, captured a large British army, led by General Charles Cornwallis, at Yorktown, Virginia. The surrender of General Cornwallis ended serious British efforts to find a military solution to their American problem.
  23. Re:Summary Title by c-reus · · Score: 2, Informative

    You mean if he knows how fast he wrote the drivers, he has no idea where the drivers are?

  24. Also, he should have put the URL in the article by DrYak · · Score: 2, Informative

    He should have also given the project's page :
    Here is the link

    This is specially important because the most logical place people would try first, the official SF project, is lagging behind and not up to day.

    Thank you, Michel Xhaard, for your wonderful work. Thanks to you my own Logitech webcam, as webcams of other geeks around the world, have worked wonderfully for the last few years on Linux.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  25. Re:Hey Scuttlemonkey by moranar · · Score: 4, Informative

    You just lost an excellent opportunity to keep your mouth shut. "He didn't even make the deb pkg files"... What else, do you want mr. Xhaard a hot cup of latte in bed with those? Most distros I've used, including Mandriva and Ubuntu, already package his drivers. I know it because I've used them for months now: If you've ever used an spcaxxx-based webcam, the driver was written by him.

    God, I shouldn't need to write this.

    --
    "I think it would be a good idea!"
    Gandhi, about Internet Security
  26. Re:First frenchman in history by aunitt · · Score: 4, Informative

    Or to make things worse, they take things that the Brits did (before the Yanks entered the War) and pretended that Americans did it. :)

  27. Re:First frenchman in history by operato · · Score: 2, Informative

    in my opinion, king leopold didn't meekly capitulated, he did what he had to do. the belgian army was pounded by armour and air divisions. the germans had broken through the lines and king leopold had said if this were to happen they would have to surrender to both the french and british. however, the message arrived too late and the rest, as they say, is history. if he had not surrendered, his people would have been butchered into submission anyways. he had to save the lives of his people even if it would cost him his freedom. http://www.time.com/time/magazine/article/0,9171,8 51143,00.html

  28. mystical mainline kernel .. by rs232 · · Score: 2, Informative

    'he seems to be one of these developpers who write GPL drivers for Linux (also GPL) but then refuse to have them included in the mainline kernel for some mystical reason'

    Well I emailed him and got this reply:

    'It is not "mystical reason", but a physical one: The mainline kernel did not allow video decompression. Gspca decompress the video in the kernel'

    --
    davecb5620@gmail.com