Originally posted by: Pete
Great, great example! I've been experimenting with this, and now I'm wondering how should I proceed to achieve solving the following problem: When resizing the view that is in a paused state, the view goes blank (white). I know I must call RenderToSurface() to draw the view, but _where_? Obvious choice of calling it at the end of OnSize() doesn't work. Calling RenderToSurface() in the OnMouseMove() works, but seems like an overkill (consumes CPU everytime mouse is moved)?
-Pete
Reply
Originally posted by: joe
This is what I am trying to do: go to a specific frame and blit that frame to the screen. I can seek to that frame, but the blit from the stream will not produce the correct image (still the last image shown). I think that the stream only gets updated when the movie is playing.
So, right now I have to play the movie (for the shortest time possible) after the seeking, then the blitting works. Anybody has any ideas how can I achieve this without playing the movie?
Thanks for any help.
Originally posted by: Roland
Any idea how to make this into a dialog base program whereby the resizing works as fine? The dialog movie player can be
invoked inside a MDI program.
Originally posted by: ZeALoT
--------------------Configuration: MovieMFC - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
MainFrame.cpp
MovieApp.cpp
MovieDoc.cpp
MovieView.cpp
C:\My Downloads\VC\MovieMFC\MovieView.cpp(329) : error C2248: 'AddRef' : cannot access private member declared in class 'ATL::_NoAddRefReleaseOnCComPtr<struct IAMMultiMediaStream>'
c:\program files\microsoft visual studio\vc98\atl\include\atlbase.h(419) : see declaration of 'AddRef'
Generating Code...
Error executing cl.exe.
MovieMFC.exe - 1 error(s), 0 warning(s)
**********************************************************
Correct syntax is (*pAMStream).AddRef();
Ok ... Compiling Complete ..
Originally posted by: Wisely
In most cases, the application works very well, but it fails in some PCs because of the founction of "createsample" failed! . I install the DirectX 7 and DirectX Media 6, and it still not work. I feel so strange about this. Who can lend me hands? Thanks in advance.
Originally posted by: Tom
I have a QuickTime 4 file that I'd like my program to read, but I get a an error when I try to render it. Yor sample gives me a 'format not supported' message, for example.
Any suggests?
Thanks,
Hi,
How do I get my DirectShow application to support QuickTime? Some of the docs say it will support QuickTime and some don't. Some seem to be very specific about supporting 'QuickTime 2.0 and earlier'.
Tom
Originally posted by: Marius
Why your code get 100% CPU usage ?
This code will get under 20% CPU usage instead 100%.
CComPtr<IGraphBuilder> pGraph;
CComPtr<IMediaControl> pMediaControl;
// Create the filter graph manager.
HRESULT hr = pGraph.CoCreateInstance(CLSID_FilterGraph);
pGraph.QueryInterface(&pMediaControl);
pGraph->RenderFile(L"C:\\Multilng.Avi", NULL);
HWND hWnd = ::GetDlgItem(hThisWnd, ST_SOMEPLACEHOLDER);
RECT rt; ::GetWindowRect(hWnd, &rt);
ScreenToClient(&rt);
CComPtr<IVideoWindow> pVidWin;
hr = pGraph.QueryInterface(&pVidWin);
pVidWin->put_Owner((long)m_hThisWnd);
pVidWin->put_WindowStyle(WS_CHILD | WS_CLIPSIBLINGS);
pVidWin->SetWindowPosition(rt.left, rt.top, rt.right-rt.left,rt.bottom-rt.top);
Originally posted by: Thaju
Can you add the facilities like while playing a live URL want to record it when interested in doing so and save it as a ASF file.
ReplyOriginally posted by: C�dric PEREZ
Hello,
Your software about DirectShow with MFC is very interesting.
I'm working on a software (with Visual C++ 6.0) that must to drive the video acquisition. Can I preview and capture video in a MFC application?
Thanks.
C�dric PEREZ
Originally posted by: arstlg
A note to the people sending emails to arstlg@hotmail.com : well I am glad to receive so many emails, but I have to say I don't want them anymore. I am just tired of that DirectX stuff, issues, knowledge, samples, and so on. And on top of that, it seems very much that I have worked on a 0$ basis as Microsoft DirectX technical support for over 6 months, and to my opinion it's time to stop this !!
So please don't email. I won't answer anymore.
arstlg@hotmail.com
Reply