News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

How to capture stream from a USB camera?

Started by BBalazs, July 06, 2008, 08:05:56 AM

Previous topic - Next topic

BBalazs

Hi,

because I have a PC in my car, I am planning about to record the events during driving with a webcam.
It would be nice to compress with a codec, but not neccessary  :bg

Unfortunately I am not familiar with handling these multimedia-related things....
I would be glad if you could show me an example.

Thanks in advance.


Rainstorm

hey interesting post,..no idea how...... but am watching this thread..

BBalazs

I have found an example (attached) written by a Brazilian guy , the executable works well, but OF COURSE, an important myinclude.inc file is missing, and the name makes me sure, that one can not be found anywhere...
Perhaps it could give me/you a starting inspiration... does not look so serious...

Because the forum does not allow uploading such a 'huge' file as 700kB, I have to leave _Isource12.dll that is downloadable...



[attachment deleted by admin]

BBalazs

I think I am on a good path. I found the myinclude in another project of him.

BBalazs

The problem is solved.

Next one: how to SET the compression properties AUTOMATICALLY?
It is annoying to set every time manually... why does it forget at all?


Draakie

Would be nice to include the "myinclude.inc" file in the zip for others to have a look at aswell :'( so as to
compile and try out various tweaks.

Draakie
Does this code make me look bloated ? (wink)

realcr

Have a look at the example Fasm Cam here:
http://flatassembler.net/examples.php

hope it helps you.

realcr.

BBalazs

Draakie: I am back from holiday and here is it as an attachment below!
Realcr: Thanks, the original question is over, now I have to face new challenges: How to set the compressor automatically?

Bonus question (excuse me the possible stupidity, I am not familiar with capturing video streams): Is it difficult, if I like to add some text onto the video?
(I mean date, time, speed, rpm, voltage, etc.).
In my simple mind I think the stream is a series of still pictures, so there must be a phase when I could be able to modify this picture before the compression.
Please correct me if I am wrong and point to the right direction.
Any examples are welcome in any languages (at least API callings are the same).
Thank you in advance.


[attachment deleted by admin]