On Sun, 2009-06-21 at 22:39 -0500, Theodore Kilgore wrote: > Andy, > > You are right. Your camera is emitting JPEG while streaming. I just > succeeded in creating an image which resembles your test picture by > extracting the frame data for one frame, tacking on a header, and running > hex2bin on the combined file. I did not get the thing quite right, because > your header is from your JPEG photo (640x480) and your stream is probably > 320x240. But I got something out which is obviously recognizable.
Excellent. Going from "It may never work" to "something recognizable" in one weekend is good progress. > Therefore with a little bit of further tweaking it will presumably come > out exactly so. Namely, I have to remember where to stick the two > dimensions into the header. Yes, as far as I'm concerned the problem is solved. The details are left as an exercise for the reader. ;) I'm not up to speed on Linux webcam kernel to userspace API details. However, might I suggest going forward for testing at least, that when one starts the webcam streaming, the driver emit the stream in the form of an AVI. You'd need an AVI header declaring only an MJPEG 'vids' stream - no 'auds' nor 'idx' - and a 'movi' section with RIFF/AVI chunks that have MJPEG headers and the webcam payload. I haven't seen evidence that audio comes from the webcam when it is streaming, but I haven't looked very much either. > As my students in courses like calculus say, > "Sir, it has been a long time since I studied that." Whereupon I reply, > "With my white hair, I wonder how far I could get with that excuse?" :) > I will send you a copy of the results for your amusement. It is obviously > the first attempt, so do not laugh at the fact that you get two copies of > > 3 > x6 > -- > > side by side, please. In retrospect, I should have used the 6x7 (or 6x9) flash card, so the answer would have been 42. :) Regards, Andy > Theodore Kilgore -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html