Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 17th, 2005, 6:27 PM   #1
KenStewart
Newbie
 
Join Date: Dec 2005
Posts: 3
Rep Power: 0 KenStewart is on a distinguished road
Figuring out hardware

I'm trying to write some code for a PCI card that does video capture at broadcast resolution.
However I have no SDK and there is none available that I can find to download/buy.

Often the SDK is free from the manufacturer to encourage third party
tool development, but from what I can see that is not the case here.
Anyway, I own the hardware and would like to find some advice on
where to begin.

I am writing a tool that does very simple video capture with the MatroxRTX100 card.

1) Should I try to snoop the code of programs that make calls to the PCI card? If so how can I do this?

2) How can I find out about the HW initialization and sending commands?

3) Can I sniff the code as the application which uses the hardware is running?


Cheers,
Ken.
KenStewart is offline   Reply With Quote
Old Dec 17th, 2005, 6:42 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The PCI interface is one thing, and you should be able to get documentation for it easily. The card's another. The manufacturer should be happy to provide you documentation for it. Those are separate issues that you have to meld together. The third issue is your system. You don't even mention OS (read a "How to Post..." thread, please). One guesses that "PCI" strongly implies a "PC", though it isn't a 100% given. You also don't mention your level of expertise.

You'll find the "How to Post..." thread and the forum's FAQ/rules at the top of each forum, labeled "Announcement" in bold. We've been thinking of changing it to a 72 point red font and naming it, "READ THIS OR ....", but we haven't.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 17th, 2005, 7:34 PM   #3
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Typically, you don't interact directly with devices. Sometimes, but infrequently, you have to interact device drivers. More commonly, you work through an additional layer of abstraction. On Windows, I believe that DirectShow (one of the DirectX family of APIs) allows for video capture, not unlike what Direct3d or OpenGL does for graphics acceleration.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Dec 17th, 2005, 8:39 PM   #4
KenStewart
Newbie
 
Join Date: Dec 2005
Posts: 3
Rep Power: 0 KenStewart is on a distinguished road
Thanks for your feedback. Please excuse my lack of protocol in my original post,
as I am new to the forum and vaguely skimmed the text of the how-to post.

Indeed my OS is windows XP. My skill level is "Mage" and my hitpoints are 7/1....
Alternativly I am fairly familiar with VB6, VB.net, and C++. Probably more familiar
with VB than C++ but thats hardly helpfull when dealing with this kind of application.

Any suggestions are appreciated though.
KenStewart is offline   Reply With Quote
Old Dec 19th, 2005, 11:12 AM   #5
jim mcnamara
Hobbyist Programmer
 
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4 jim mcnamara is on a distinguished road
Matrox X.tools don't cut it?
jim mcnamara is offline   Reply With Quote
Old Jan 24th, 2006, 4:20 PM   #6
KenStewart
Newbie
 
Join Date: Dec 2005
Posts: 3
Rep Power: 0 KenStewart is on a distinguished road
No I'm afraid the Xtools dont cut it. Sadly.

Its for a specific application and I need to capture audio and video at the same time to two different files:

1) AVI (matrox DV/DVCAM format codec) at a constant 25 fps
2) WAV (uncompressed PCM 48000khz)

This is kind of my brief for the project. Oh and it has to be in perfect synch,
just to make it more difficult.

(and whilst premiere DOES capture seperately like this, it will not do it with the Xtools that come with the RTX100 which overide the settings. Naturally I cursed matrox for some time till I resolved to build this application...)

Of course I started very naievly in VB hoping I could avoid major work and
possibly buy some basic OCX functions to do the grunt work. Meanwhile I began learning about directshow thanks to the guys here on the forum and found that I'd need to move up to C++ and get the SDK to begin doing anything remotely with directshow. Plus I figure there is no real way to check or clock the synch when using two OCX's which makes sense as they dumb down the options to keep it simple.

There are wrappers for VB made in C++ but that kind of just confused things without the SDK.

So I'm currently downloading the SDK and rapidly trying to learn all I can about directx/show and trying to find information about capturing synch audio/video.

If anyone out there has some expertise I'd enjoy hearing some comments,
the learning curve is just getting steeper really but at least i'm not trying
to do this in assembler or anything.

Cheers,
Ken.
KenStewart is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:28 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC