|
Hi,
I have a video camera connected to a PC based video recorder and I need to trigger a reading on an A/D card in the PC for each frame from the video camera (possibly synchronized to the frame sync of the video signal).
Is there perhaps something in the video capture driver that would allow me to do this? We haven't selected the capture card yet so if anyone has had some experience with a particular one I would be very interested.
Any suggestions would be welcome.
Thanks
Tony
|
|
|
|
|
softwaremonkey wrote: Is there perhaps something in the video capture driver that would allow me to do this?
What sort of level are you considering working at? It's been 10 years since I did a similar thing at an SDK level but from the manual of the (that version now obsolete Bandit) frame grabber card I still have, I see it has programatic option to synchronize frame grab with an external trigger such as, perhaps, some signal associated with your A/D:
External Trigger Detection Methods
Description: Detection method values used by BD_GetExtrigDetection and
BD_SetExtrigDetection.
Values:
BD_EXTRIG_DETECT_NEGATIVE_EDGE: External trigger detected on falling
edge of trigger input.
Again at a programaming level I recently used a Firewire bus to connect to a camera and was able to program what to do when a frame was grabbed:
LRESULT CMainFrame::OnVideoGrabbed(UINT , WPARAM wParam, LPARAM lParam, BOOL& )
{
LPTSTR lpFileName = (TCHAR*)wParam;
BOOL bGrabbed = (BOOL)lParam;
if(!bGrabbed)
{
So the type if interation you want is possible by various mechanisms.
|
|
|
|
|
Thanks,
Thats the sort of information I was looking for. Both solutions appear quite workable but I guess that it all depends on what the frame grabbing board/software supports.
I have found it difficult to get this level of information before you spend your money (and these things aren't cheap). For example I have tried without success to get this type of information for an Advantech board.
Still, it's useful to know that I am not asking for the impossible. All I have to do is check the various web sites for SDK documentation.
Thanks again
Tony
|
|
|
|
|
I have a wireless camera with RGB exit cable (PAL) and I was planning to control the video via C++ code
The idea was to use something like EasyCap adapter (RCA to USB with a driver CD) to let the camera play video in my notebook but the question is: how to control the video stream via C++? I don't think the included drivers could be controlled by code
Any idea on how to solve the problem?
---
|
|
|
|
|
I need a laptop with 12GB or more of ram anybody know of one...
I cannot afford the dell m6500.
I need that much ram but I do not need any frills just horsepower any suggestions?
Humble Programmer
|
|
|
|
|
Don't know how much dell m6500 costs. This one comes with 6GB RAM and is upgradeable / customizable to 16 GB, which is the most recognizeable on windows 7 home premium OS.
http://www.shopping.hp.com/product/computers/notebooks/ENVY15_series/rts/3/computer_store/VM247UA%2523ABA
|
|
|
|
|
Here's a cheaper laptop where you can spend around $1,600+ for 8GB of RAM with LED screen.
http://www.avadirect.com/product_details_configurator.asp?PRID=16495
I personally would prefer a dual core cpu (core i7-620M) if I was only using the machine for non-database software development and web browsing.
|
|
|
|
|
I am probably going to get a new machine because my boss is wanting to do our develop in VMWare. I am wanting to get the most bang for my buck. Does anyone have experience using dual core vs quad core processors for this type of dev. We are writing VB.NET apps and are fixing to move to Windows 7 64bit and Visual Studio 2010 64bit. I know I need a ton of memory, not sure how much I am thinking at least 8GB. I am also wondering about solid state drives I have read these actually decrease VS performance.
In summary which is better
2.0ghz quad OR 2.6ghz dual
Solid state OR 7200rpm sata... It has to be a laptop I have not seen any faster drives.
Windows7 will have nothing installed except essentials and VMWare withing VMWare we will run Windows7 with dev tools.
Any opinions thank you
BTW I have googled this to death and most info I find is dated and with the improvements to solid state etc that is why I was wanting to ask someone that might have actually used it.Humble Programmer
|
|
|
|
|
I'd rather pay for more RAM (16GB, if doable) than for solid-state disk (RAM is cheaper than EEPROM).
And IIRC people are not overwhelmed by Visual Studio using multi-threading, so maybe the faster dual-core is the better choice.
|
|
|
|
|
Are you referring to 2010 or 2008 VS?
Do you know if I will see a big difference in 64bit vs 32?Humble Programmer
|
|
|
|
|
mostly VS2008 (the real VS2010 isn't available yet).
you can't use more than 4GB of RAM without Win64, and RAM is your biggest friend.
by itself, some people have claimed Win64 is faster than Win32 on the same amount of RAM, however I am not convinced I understand how that would be.
FWIW: I would be looking for an Intel Mobile i5 (latest chip technology = most activity for given dissipation budget; and hyperthreading, i.e. each core has two sets of registers, hence can run two threads intertwined).
|
|
|
|
|
Any opinion on the SSD vs regular hard disk...
The things I have read have said there is no real improvement but most of that info is dated at least a year.
I also wonder when they are comparing these hard disk are they comparing a mid range SSD to a velociraptor ?
I cannot get a 15000rpm drive for my laptop as far as I know so would the SSD be better maybe.Humble Programmer
|
|
|
|
|
DRAM memory is faster than most other types of solid-state memory; it sure outpaces EEPROM. The one faster RAM technology is SRAM, but they are "small" (CPU caches are made of them).
On a Win64 system I would never buy and install SSD for speed reasons (maybe for fast boot, reliability, power considerations, ...); I would always opt for lots of DRAM and rely on Windows file caching, and if and when not satisfied by that, install a RAM disk (haven't seen many of those lately).
|
|
|
|
|
Thank you very much friend. You are very knowledgeable. Humble Programmer
|
|
|
|
|
programmer_vb.net_c++ wrote: Any opinion on the SSD vs regular hard disk...
The things I have read have said there is no real improvement but most of that info is dated at least a year.
I bought an SSD last fall. Windows boot time went from 33s to 14; after logging in the normal period of disk thrashing that left the desktop unusable was gone. I can start Opera with 40-70 saved tabs, outlook with two multi-gigabyte PST files; and all the trash that shows up in the tray at once without anything lagging on startup. It was the most visible performance upgrade I've had since going from a k5-100 (on a 486 mobo) to a k6-350 over a decade ago. 3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
Sure, reading a lot of files once will be much faster, so boot speed-up must be impressive. However software development is quite a repetitive job, using the same files over and over, and writing some; hence I'd rather spend some money on more DRAM instead of an SSD, hoping to make all but the first access to each file a lot faster.
|
|
|
|
|
If boot/app startup was the only benefit, you're right an SSD wouldn't add much, but since blocking IO is common in many apps almost everything becomes more responsive. Measuring system responsiveness isn't anywhere as easy as benching boot/app startup; but it's the responsiveness gains that gave me the real wow.
If you have to choose between enough dram to keep all your working data in memory or an SSD obviously the former is more important; but windows vista and later don't report IO operations as complete until they've been flushed from the cache to the disk and dropping the latency from each write from ~10ms to a few microseconds actually is noticeable in normal useage. EDIT: I didn't mention this in my original post because "more ram than I'll actually use" has IMO been implicit in any custom configured PC for the last few years. Only crappy retail configs skimp there any longer.
Unless you're CPU bound however I'd put an SSD as more useful than a faster CPU because it eliminates the most generally apparent performance bottleneck; when random IO trashes a magnetic HD.
About 4 years ago I blew about $6-700 on a hardware raid controller and 5 HDs to try and boost performance; outside of benchmarks I never noticed a difference. The responsiveness gain going from an i7@3.85ghz with a single HD to the same system with an SSD is almost as dramatic as the difference between the same system with an HD and my netbook with an HD.3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
Dan Neely wrote: vista and later don't report IO operations as complete until they've been flushed from the cache to the disk
that is new to me. Are tou saying they've changed that since XP? or was XP the same? do you have a link to such info? I'm eager to read more about it.
Dan Neely wrote: I'd put an SSD as more useful than a faster CPU
I agree. I'd never go for the fastest CPU, the CPU typically isn't the bottleneck (except when trying to compute on a netbook of course).
|
|
|
|
|
Luc Pattyn wrote: that is new to me. Are tou saying they've changed that since XP? or was XP the same? do you have a link to such info? I'm eager to read more about it.
It was a change for vista. Look for MS articles about why reported file copy performance in vista is slower than what XP reported. XP reporting that it was done before the flushing was part of it. The other part was that they optimized the algorithm used for copies on crappy wifi networks with high latencies and packet loss figuring that in the real world large gains in the bad case were worth a small hit in the best case. The world of internet ranting disagreed vocally with that assessment and changes were again made in SP1 to boost the bestcase performance than internet ranters used for their benchmark graphs. 3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
yeah, I start to recall that now. Thanks.
|
|
|
|
|
Has anyone used ram disk software?? What I have been thinking is maybe loading it with ram and using ram disk software to keep everything I am working on in memory. Humble Programmer
|
|
|
|
|
I realize that I will have a big improvement with OS... everything I have read supports that but VS is what I want to really perform fast because that is what I use all day long and I have read things that say that there is little improvement and sometimes a decrease in performance because of all of the small files that have to be used in VS. I guess I am wondering does anyone know if solid state handles small files any better than before because much of the info I have read is dated so I want to know has anyone see it greatly improve the performance of VS. Also has anyone ever heard of a spindle hard drive that is faster than 7200 in a laptop.
Update I am looking at a Dell m6500 with 16GB of ram i7 quad 2.0ghz.
I currently have a Dell Vostro 1700 4GB ram intel core 2 duo 2.4ghz I know my bottle neck right now is my hard drive it is only 5400rpm which I did not know when it was ordered.
This computer is not bad I just want faster compile times and I also am fixing to start doing all dev in VMWare.Humble Programmer
|
|
|
|
|
Random IO is where SSDs have the biggest lead over magnetic drives. In sequential IO the gain for an SSD is only about 2x that of a magnetic HD. The fastest SSD controllers on the market are upto ~150x faster in random writes.
http://www.anandtech.com/storage/showdoc.aspx?i=3747&p=10[^]3x12=36
2x12=24
1x12=12
0x12=18
|
|
|
|
|
I've used dual socket workstation with 4-8 cores since 2005. The main benefit is greater stability and less noticeable interference from anti-virus. If your code has very few page faults and anti-virus isn't sucking up your cpu, you may actually have better performance with the fastest dual core Xeon or Core i7 cpu's unless you do a serious amount of computation. With VMWare, you definitely want to have a minimum of 8GB of RAM. If you can install two hard drives, then you can use two identical hard drives with RAID 0 striping, or a small SSD for programs and 500+ GB 7200 RPM SATA hard drive for your data.
modified on Monday, April 5, 2010 2:09 AM
|
|
|
|
|
Can only talk for myself now, but getting an SSD is one of the best things I ever done.
If it was my choice I'd get an SSD, a dual core processor and as much RAM as your budget allows possible."When did ignorance become a point of view" - Dilbert
|
|
|
|