![]() |
|
OT: video in...how? |
A J
Member #3,025
December 2002
![]() |
does anyone know how i can go about getting video in with my allegro app. ___________________________ |
Ultio
Member #1,336
April 2001
|
Video In? That's pretty much very hardware specific stuff there. I doubt there's any allegro functions that actually read what's coming through a video-in port, much less do anything with it. Check the manuals, there's probably nothing in there. Most likely you'll need to figure out how to access your video card directly through the operating system, or whatever. I don't know much about accessing hardware. Also, you need to include more information about your question than "State Question (simply) then Request Code". What are you going to DO with the video in? Do you want it to show to the monitor, or do you want to just do stuff with the content feeding in in the background - like dump it to an avi file without it rendering anything to the screen? More information always helps, and will make people more willing to help you out. --- |
Bob
Free Market Evangelist
September 2000
![]() |
You could have a look at the VirtualDub source code. It does video captures under Windows. As for interfacing video input with Allegro, I have no idea if it's feasable. -- |
Steve Terry
Member #1,989
March 2002
![]() |
if you simply mean putting video in your project then MJPEGAlleg should do it for you, it's not quite MPEG, but you can take an AVI and use it just fine in an allegro application.. the sound quality still is lacking though from last I heard. ___________________________________ |
Derezo
Member #1,666
April 2001
![]() |
I think he means using a Video-In jack on a video card. "He who controls the stuffing controls the Universe" |
A J
Member #3,025
December 2002
![]() |
i mean composite video signal from say a camera or VCR.. pluged into a video input card in PC. i think virtual dub has code for captuing direct to disk, which by-passes the "surface" that i would need to access. i think i needs direct show code. ___________________________ |
dudaskank
Member #561
July 2000
![]() |
Well, if VirtualDub save direct to file, what you need to do is modify the code to output on a BITMAP * struct, but I don't know if the video in is encoded in some format different from RGB or YUV. And the problem in the audio in MJpgAlleg (the name is because in the start of the library it only play lots of "Moving" JPGs...) is the size, because it needs to be PCM uncompressed. ^__^ Toque a balada do amor inabalável, eterna love song de nós dois |
Tobias Dammers
Member #2,604
August 2002
![]() |
Two steps to go here: 1) Depends hugely on your platform; looks like you're using windows, and you sort of half-solved the problem there (if not, I can't help you. Find a good lib). --- |
A J
Member #3,025
December 2002
![]() |
the convertion from a HBITMAP to alegro bitmap is 2 % of the work. i would like to find out how i can acheive the other 98%, that is getting to video input into a block of memory that i can read. are there any Direct Show experts out there ? ___________________________ |
Oscar Giner
Member #2,207
April 2002
![]() |
Now I'm learning Direct Show. There are good examples. I thing there's some example about video capturing. Copy&paste the example and made the proper changes (that's basically what I did with MVPlayer). What you must do is programming a filter that converts uncompressed video to an allegro bitmap, and connect it to the filter graph, removing first the filter that renders the video to the screen or saves it to a file. I can't help you more at the moment. -- |
MiquelFire
Member #3,110
January 2003
![]() |
If you can find docs on getting video from WDM, you can get any video in your computer has (in my case, two, my PC camera and my TV tuner card) And if you find ths info, let me know, I could use it myself [edit] Never mind, did a lookup in my MSDN files and found that what I'm talking about is DirectShow... --- |
|