|
I need to open my camera and save the video file to disk.
I am doing it c++. And I have no idea where to start.
Any help that you can give me will be very much appreciated.
|
|
|
|
|
Hello Dear Deepak Gupta
I'm student of M.Sc. (Computer Sciences) and I'm doing my final project in VC++ 6.0 defined as:
1) I have to capture image from USB Camera - which I'm doing using Wrapper Class FrameGrabber - capFrameGrabNoStop -
2) then I have to get the raw RGB pointers - which I'm trying to get through BITMAPINFO Structure - but I'm still not getting the proper way
3) and at the end I have to convert these RGB frames to YUV Frames
How Can I handle 12-bit RGB data to convert to YUV Format?
Kindly guide to the proper procedure and help in any form.
I'll be very grateful to you.
Kind Regards.
Waiting for your Early Reply:
Atif Bashir ( abqau@hotmail.com abqau@yahoo.com abmst@pakwatan.com )
Watch Your Thoughts for they will become your actions.
Watch Your Actions for they will become your habits.
Watch Your Habits for they will become your beliefs.
Watch Your beliefs for they will determine your destiny.
|
|
|
|
|
I'm student and doing a Final Project for my M.Sc. degree. I have problem with capturing streaming video frame by frame from USB Camera in some raw format(RGB). I want to convert these frames into YUV 4:2 format in realtime.
I'm going to do this using Visual C++.
I'm thankful if anybody can explain me or give a link which has sample code to do this.
Can I get frames from USB Camera in YUV format directly ?
Kind Regards.
Thanking for helpers:
hello
|
|
|
|
|
Dear Renny Ashay
How r u ? I hope you have solved the problem till now.
God bless you.
Take Care
Allah Hafiz
Watch Your Thoughts for they will become your actions.
Watch Your Actions for they will become your habits.
Watch Your Habits for they will become your beliefs.
Watch Your Beliefs for they will determine your destiny.
|
|
|
|
|
I'm student and doing a Final Project for my M.Sc. degree. I have problem with capturing streaming video frame by frame from USB Camera in some raw format(RGB). I want to convert these frames into YUV 4:2 format in realtime.
I'm going to do this using Visual C++.
I'm thankful if anybody can explain me or give a link which has sample code to do this.
Can I get frames from USB Camera in YUV format directly ?
hello
|
|
|
|
|
How can I save the captured images into AVI(or other format) file?
Thanks for Help!!
|
|
|
|
|
i have captured the frames and made it as a movie. mail me if you want the source code.
hirensomi@rediffmail.com
|
|
|
|
|
How can I make Avicap32.dll send a DIB format to a memory location????
Captnoord
|
|
|
|
|
how we can make transmitting video from server pc to the client over internet using the java or RTP OR APPLET
can find project a bout that by java ????
|
|
|
|
|
Hi,
I am making a video browser like application. There is a need
that whenever I pause the playback and locate to a specific
frame, I need to display a couple of frames right before and
after that frame, as brief view to the end-user.
So I used this IMediaDet to grab the fram data, but having
these problems:
1. When the video file is played by a media player, I can't grab
the frame data via IMediaDet.
2. IMediaDet can't seek position in frame-basis. I noticed that
in IMediaSeeking interface, there is a method
SetTimeFormat(&TIME_FORMAT_FRAME) helping me
to locate stream in frame-basis. But how do I make it
possible to IMediaDet to do the same thing?
3. An alternative solution might be to create two instances of
IGraphBuilder. But it looks rather awkward to me. I think
there must be better way.
Or there are other better ways to achieve my goal? Thank you
very much and look forward to your feedback.
Best,
Jeff Meng
|
|
|
|
|
Hi,
For a reseach experiment i need to connect to 6 cameras, the 6 are all the same so linked to the same driver (ex )
If i do 6 capDriverConnect(...) with differents handler for the same driver number, the driver dialog box appears at the second connection and ask me to select the capture source.
By changing the cameras name with regedit, i can more easily selected them. But now i want to do this selection without the dialog box.
How to proceed?
Thx and sorry for my poor english
|
|
|
|
|
can you change the videosource without making a call to capDlgVideoSource? thanks.
|
|
|
|
|
how can i convert/create/modify Wav files from WAv to EBU wav format??
tks
Nicola
|
|
|
|
|
Hello there,
I am working in a ludic and personal project that requires image processing and I am researching ways to do that. A have a Nvidia Geforce 4 Ti4400 vivo running in a Dual Atlhon MP 1.9. The example program CFrameGrabber compiles and work very well (although I have to link MFC statically to work with the release version - to avoid freezing in seraching for buffers message...).
however, I am find that the capture is too slow, comparing with others soft's (like winproducer, f.e), that also uses wdm to capture images. Does anybody has a clue of why it's happening?
best regards,
Paulo Gonçalves
|
|
|
|
|
I'm the other one that use CFrameGrabber. I found that my framerate is around 8 fps... very low .... I don't know that what part cause this problem... I use Windows XP and FlyView Video capture card
|
|
|
|
|
Hi,
i am working on to extend the CAviCap that later will enble the compression to H263 and then may be able to transfer on the net and will soon upload here with my other articles (apart from my 3)
now there is only one problem. THE DEOM DOES NOT SHOW ANYTHING ..well that is not a big problem but i wonder why didnt u handle the 12 BIT data in your class and how come i do not even get the preview..let me know what possible could be wrong with my settings.
i am working on windows 2000 professional system with 3COM web cam and this is the first time i am working out of direct show on video so little problem
i will appriciate all sort of help and this article is really wonderfull..i really liked it.
live life to the fullest
|
|
|
|
|
The reason you can not see anything with a nonstandard format
is because the document class does not know how to handle these
formats.
A quick fix. I write one of the image out in the 'bmp' format.
Of course this bmp format is not quite correct and you can not open
it by double clicking it. However, I can read it into matlab and
view the grabbed image there. Matlab code follows the C code.
Good Luck!
Natarajan
================================== see below for changes/notes======
Go to line 273 in FrameGrabberTestView.cpp and modify as shown
(The machine I have does not have rcsdiff, so not much I can do
other than show old code as //old. Sorry)
if(!pDoc->m_ImageBitmap.GetSafeHandle()) //old
{ //old
static int did_dump;
LPBITMAPINFO lpBi = m_FrameGrabber.GetDIB(); //old
if (!did_dump) {
did_dump++;
BITMAPFILEHEADER bmfh;
bmfh.bfType=0x4D42;
bmfh.bfSize=sizeof(BITMAPFILEHEADER)+sizeof(BITMAPINFOHEADER)+lpBi->bmiHeader.biSizeImage;
bmfh.bfOffBits = sizeof(BITMAPFILEHEADER)+sizeof(BITMAPINFOHEADER);
bmfh.bfReserved1=bmfh.bfReserved2=0;
FILE *fp = fopen("dib.bmp", "wb");
if (fp) {
fwrite(&bmfh, sizeof(bmfh),1, fp);
fwrite(&(lpBi->bmiHeader), sizeof(BITMAPINFOHEADER),1, fp);
fwrite(lpBi->bmiColors, lpBi->bmiHeader.biSizeImage,1, fp);
fclose(fp);
}
}
pDoc->m_ImageBitmap.CreateFromDib(lpBi); //old
InvalidateRect(NULL); //old
} //old
==== End of C code changes ===
The matlab code is a simple script:
fid = fopen('dib.bmp', 'r');
[A, count]=fread(fid, Inf, 'char');
fclose(fid)
off = A(11);
nc = A(19)+A(20)*256
nr = A(23)+A(24)*256;
im=A(off+1:off+nr*nc);
im2=reshape(im, [nc, nr]);
imagesc(im2');
colormap(gray);
|
|
|
|
|
Hi,
i am working on to extend the CAviCap that later will enble the compression to H263 and then may be able to transfer on the net and will soon upload here with my other articles (apart from my 3)
now there is only one problem. THE DEOM DOES NOT SHOW ANYTHING ..well that is not a big problem but i wonder why didnt u handle the 12 BIT data in your class and how come i do not even get the preview..let me know what possible could be wrong with my settings.
i am working on windows 2000 professional system with 3COM web cam and this is the first time i am working out of direct show on video so little problem
i will appriciate all sort of help and this article is really wonderfull..i really liked it.
|
|
|
|
|
Hi,
I'm an undergraduate and doing a Project for my final year. I have a problem with capturing frames from a video clip which play under media player. I need to do some image processing to these frames.I'm going to do this using Visual C++. I'm thankful if anybody can explain me or give a link which has sample code to do this.(capturing frames from a video clip in realtime to BMP format. )
Best Regards,
Shamal
Shamal De Silva.
Mobile: (94) 072890277
|
|
|
|
|
Is there a version for Visual Baisc 6.0 or early???
|
|
|
|
|
Hi,
One of my students is doing a VB clone of it in order to control a mouse with the camera. Write me (arivero@posta.unizar.es) by the summer of 2003.
Alejandro Rivero
|
|
|
|
|
in the program, the capDlgVideoFormat macro displays a dialog box in which the user can select the video format. The Video Format dialog box might be used to select image dimensions, bit depth, and hardware compression options.
..
..
capDlgVideoFormat(ghWndCap); //ghWndCap is Handle to a capture window
..
The default pixel is 320 x 240. Instead of letting the user to select image pixel thru the dialog box , i wish to fix it to 640 x 480. how to i do that ?
|
|
|
|
|
My Capture driver supports differents video formats sources like
PAL-B,PAL-M...,NTSC...,SECAM...etc.
When I connect with a capture driver in my application, It selcts previous default source format as a default setting.
But I want to set PAL-B as a default. i.e When I connect with a capture driver
in my application, It should select PAL-B format as a default.
What shold I do to get this thing ?
Thanks in advance
Hitesh
|
|
|
|
|
hi
when i save then captured image as .avi files the file size mater's much
when i captured for 1 minute it took around 190 mb of disk space?
can any one say how to reduce the size of the file.
thanks
sowmy
|
|
|
|
|
Actually that's expected with uncompressed video data. Say for a very small window size, QCIF (176x144), RGB (3 bytes/pixel) at 15fps, we are talking about 1.2MB of data per sec. I guess your capture window size is larger than this...
To reduce the file size, you have to run the captured data through a video codec.
Harold
|
|
|
|