|
I am afraid I can't help you with this,but I have a feeling hfry might. Good luck.
|
|
|
|
|
Am I not monitoring all frames with this approach (given the initial frame is 32-bit)?
I'll be leaving for an extended trip next week, so I need to wrap this "project" up today or tomorrow, which doesn't leave me much time to "develope" a new -to me- way of doing this, hence I think I'll stick with it for the time being. I'll be using the time today and tomorrow attempting to build a save image dialogue box. Any help in this area would be welcome.
I hope to benefit from your advice again as of mid-June, when I pick this up again.
Thanks for the advice so far.
|
|
|
|
|
If your webcam captures at a decent framerate, you won't get all the frames as the code is getting the frames by polling at 10 millisecond intervals. This approach isn't suitable anyway if the intent was to get all the frames.
You can just use the file dialog box provided by Windows, look at CFileDialog with bOpenFileDialog = FALSE.
http://www.functionx.com/visualc/controls/filedialog.htm[^]
If you would like to save the RGB24 image data without headers, I don't see much of a problem as the code is already there. If you would like to save it as a bitmap that other applications can read, then you would have to write the appropriate bitmap headers before writing your image data.
|
|
|
|
|
A slight problem has been encountered. I tried the code with several different cameras and it doesn't work with some of them. A friend suggested it's because some do not encode in RGB but encode in IA20 or something akin to that. Any ideas?
|
|
|
|
|
IA20? Are you perhaps referring to some YUV media subtype like I420?
Failed as in? Cannot create the graph? Cannot get the current image off the VMR filter? Use GraphEdit and build the graph and see if it's possible.
|
|
|
|
|
Yes, I am sorry, I420 sounds more like it. The Live Video renders fine, but the Capture window is blanc. I will follow your suggestion. Thanks.
If it is YUV, how do I translate it into RGB?
|
|
|
|
|
The AVI Decompressor filter can actually perform YUV to RGB conversions. My suggestion is to step through the code and see what is actually failing.
Conversion from I420 to RGB24 is actually quite straightforward. You first convert to 4:4:4 YUV and then convert that into RGB24.
|
|
|
|
|
thanks for code snippet if possible
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
|
thanks
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
When we try to open the pst file when the outlook is open and accessing it, fopen itself will fail. Please let me kow what is the best way of reading the pst file contents when the file is open.
Thanks in advance
Sandeep
|
|
|
|
|
How are you calling fopen() ?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
fopen("pst file path", "rb");
|
|
|
|
|
I can only assume that Outlook has opened the file for exclusive access. Have you considered Outlook's COM interface?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
I cannot use that I belive. I am writig a backup software which can back up the files to a given medium. During this time I cannot use different menthids to backup different files I think.
|
|
|
|
|
what is the difference between Dialog.DoModal and Dialog.Show.
Very junk question but any ways....
Nilesh Korpe
|
|
|
|
|
|
Actually I failed to find such a Show function in CDialog.
- NS -
|
|
|
|
|
|
NS17 wrote: failed to find such a Show function
It should be
CDialog::Create
and then call to
CDialog::ShowWindow
Maxwell Chen
|
|
|
|
|
sorry I was talking of
int Show(CWnd *pParent, LPCTSTR pszTitle, LPCTSTR pszPrompt,
LPCTSTR pszDefault = _T(""), bool bPassword = false)
Nilesh Korpe
|
|
|
|
|
Nilesh Korpe wrote: int Show(CWnd *pParent, LPCTSTR pszTitle, LPCTSTR pszPrompt,
LPCTSTR pszDefault = _T(""), bool bPassword = false)
Where's it from?
Maxwell Chen
|
|
|
|
|
|
Hello,
I've been working on OpenH323/FFMPEG for a while and while I can create the FFMPEG exe what i really want to do is write a VC++ program that uses the libavcodec.dll(generated fm OpenH323) to encode video.
Any ideas?
|
|
|
|
|
RahulOP wrote: Any ideas?
What is the question ? Saying how can I use libavcodec.dll is really vague, where are you stuck exactly ?
|
|
|
|