473,856 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Too much CPU in video-capture session

Hi everybody!

Im developing an application which involves capturing video from a
webcam. I use video for windows API. The program doesn't capture
real-time video, but it only captures still-images from time to time.
When the program is waiting and doing nothing, the CPU is at 50%. I
would like to know if there is any posibility to reduce the amount of
CPU used.

By the way, the code that I used to start the still-image capture
session is the following:

-----

hWndC = capCreateCaptur eWindow ("CW",
WS_POPUP,
0,
0,
0,
0,
NULL,
nID);
capDriverConnec t(hWndC, 0);

capCaptureGetSe tup(hWndC, &Parameters, sizeof(Paramete rs));
Parameters.fYie ld = false;
capCaptureSetSe tup(hWndC, &Parameters, sizeof(Paramete rs));

capPreview(hWnd C, false);

----

Any advice?

Thank you very much for your help!

Oct 25 '05 #1
1 2707
Perro Flaco wrote:
Hi everybody!

Im developing an application which involves capturing video from a
webcam. I use video for windows API. The program doesn't capture
real-time video, but it only captures still-images from time to time.
When the program is waiting and doing nothing, the CPU is at 50%. I
would like to know if there is any posibility to reduce the amount of
CPU used.

By the way, the code that I used to start the still-image capture
session is the following:

-----

hWndC = capCreateCaptur eWindow ("CW",
WS_POPUP,
0,
0,
0,
0,
NULL,
nID);
capDriverConnec t(hWndC, 0);

capCaptureGetSe tup(hWndC, &Parameters, sizeof(Paramete rs));
Parameters.fYie ld = false;
capCaptureSetSe tup(hWndC, &Parameters, sizeof(Paramete rs));

capPreview(hWnd C, false);

----

Any advice?

Thank you very much for your help!


I'd suggest you post on a Microsoft newsgroup like
comp.os.ms-windows.program mer.win32, as the present newsgroup is for
standard C++ language issues, not OS-specific APIs.

Cheers! --M

Oct 25 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3807
by: Google Mike | last post by:
Is there a Linux PHP module so that I can process web cam video with Linux PHP from multiple USB ports? (I'm working on a video surveillance idea since I found out that my office spent a whopping $30K on their 8 camera system and were told it would cost $13K for 3 more cameras to be added. If that inspires you to do your own system, please do so -- I love it when people can make big cash with Linux!) For discussions here, realize that...
1
10337
by: Lonewolf | last post by:
Hi everyone, pls forgive me for my lack of knowledge and skills if my question sounds very stupid. I am trying to implement a video conferencing software and I am currently looking at a few set of technologies, among them WMP, RealMedia, H.323 and XviD (not sure if it is suitable for streaming even) . I would like to seek the advice of those experts on the following questions, 1) What is the best technologies to be used, in terms of...
1
7628
by: richardscheff | last post by:
Video selector works for IE but not other browsers. for not IE <object ID='Player' data="video/dodgeball.wmv" type="video/x-ms-wmv" width="320" height="280"> <param name="filename" value="video/dodgeball.wmv" /> <param name="ShowControls\" value="1" /> <param name="AutoStart\" value="1" /> <param name="PlayCount\" value="1" />
12
4499
by: Pallas | last post by:
Hi all, I've produced some high-def videos and I want people to be able to watch them on my website, but I may want to prevent downloads and I certainly want to prevent them from editing them. How can I impose such limitations? I have asked Google Video if they will ever permit
2
7897
by: hzgt9b | last post by:
Using VS2003, VB.NET, BACKGROUND I have a window forms based application that will be distributed and executed directly from CD media. The app contains a TreeView control and a WebBroswer (AxSHDocVw.AxWebBrowse) control. The TreeView is populated with nodes that when clicked play an audio clip that is stored on the CD and navigate the browser control to a specified web URL (also stored on the CD). All the web URLs are html documents...
3
2075
by: triplejump24 | last post by:
i LOVE doing c++ programming, but i never can get myself started! Once i figure it out, its fun but anyways here it goes... Im given a file c:\temp\hwk8input.txt, which contains the records of the video collection of a small local library. There are four fields for each video: 1) A unique video ID number without space (v1, v2, etc.); 2) The full video title; 3) The availability of the video (0 for checked out and 1 for checked in); 4) A...
5
3372
by: sonu | last post by:
hey good morning ...... how to convert a video file in .flv format in php for linux hosting......is there any package whis provide this facility . Can i use ffmpeg for linux hosting project.......... plz help me.. thanks & regards Prabhat
8
2447
by: Oscar Arreyano | last post by:
I did a website for a friend's company where they wanted a 'downloads' section similar to standard file sharing you see all over the place. Everything works great except for video. I know there are codecs involved, however, if i create a video (I've tried mpg, avi, wma so far) I can watch it on my pc from disk just fine. Since my pc is also my test environment, I try to open the same video from the test site and I get the standard 'Can't...
0
9916
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9762
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10696
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10782
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10384
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9531
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7932
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3201
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.