Originally posted by: Harry Newman
I get the following error on closing the program after playing a video using directshow option.
Assert Failed
g_cFGObjects ==0
At line 5836 of d:\nt_chk\multimedia\dshow\filters\core\filgraph\filgrsph.cpp
Continue?(Cancel to debug)
Everything compiles, runs etc okay this is only on closing video dialog.
Thanks
ReplyOriginally posted by: Olivier Booklage
How to Add text on video ( as a DVD player ) ?
Originally posted by: VitekCZ
This is the solution of the problem which appierce on
WinXP (I didn't test it on other platforms, there it may
work).
The problem is this: When you run the application and open
the movie, for the first time it wan't be visible. After
you open it again everything will be OK. Also when you
resize the window the movie can disappear.
If you read the SDK very carefully in the IVideoWindow
interface documentation is a small notice: MFC
applications must left the WM_ERASEBKGND handler empty or
there will be problems with video displaying.
This means you must modify override the WM_ERASEBKGND for
your (video)parent window and left it just return TRUE. Do
NOT call the base class.
But, that's not all!!! If you have more windows under the
video window (like you have the Main window, under it some
child window and in that the video window) they must have
the WM_CLIPCHILDREN style at least. I didn't try it this
way I just removed the default WM_ERASEBKGND handler from
all of them.
Of course this makes a small problem with drawing your
application. So you must write the OnPaint for those
windows and fill the client rect by yourself (like the
EraseBkgnd do). But still you must have the
WS_CLIPCHILDREN style set, or it wan't help.
So that's it. I didn't write any code here, cause most of
the modifications must be done in your own code (for
parent windows).
I hope this will help you.
P.S.: I didn't try to write non-MFC application, but I
suppose that non-MFC wan't need this modification.
Vitek
Originally posted by: Kodoma
Hello,
I'm a French developer. I write a program, which capture video. I've used SDK
for Directshow 8.1.
I want to use a specify video codec (DivX) in order to have a compressed video file.
I can enumerate all enabled videos codecs, and add the obtained IBaseFilter to my filtergraph.
But my program doesn't use the specified codec.
If you have more information about it, I'm interrested. I can give you more
details, if you want.
Thanks.
Kodoma.
ReplyOriginally posted by: Dom Lavault
two memory leaks : the CMenu and MovieDlg/PreviewMovieDlg objects are never released. Add subsequent needed deletes.
Another problem with this project is that several debug libraries are needed to run, even in release mode. I had to rebuilt a new project and to import the source files to fix the problem. But now there's a GPF late during the program execution in release mode (it works in debug mode).
dom
ReplyOriginally posted by: Dan
I have just been playing around with direct show to get RGB frames from an mpeg...
The easiest way to go about this is to use the IBasicVideo interface method GetCurrentImage, although you must disable DirectDraw hardware acceleration if you are not using WinXP.
Its not a flexibly technique (unless with XP) but its good enough for research code etc...
otherwise use methods in the IMediaDet and/or ISampleGrabber(most flex but most complex).
This info is all in the SDK DirectShow--reference--interfaces stuff, but for anyone who is convinced that browsing the web will give answers rather than the technical doc..
good luck!
Originally posted by: Tuxlr
Attention, mais je crois que vous n'avez pas essayer d'ex�cuter votre programme
ATTENTION !!!
ReplyOriginally posted by: tepark
Why doesn't a media file display in Windows XP when it is opened first?
when a media file is opened first and clicked play button after Movie.exe is executed, it does not display.
Then if a media file is opened and click play button, it displays.
try it
please let know why.
Originally posted by: Mr Jang
Hi!
I have Developed Education Application!
I would like to Play Movie.( Server/Client )
When Server( Teacher )Play Movie, Client receive Movie Data
and Play.
I have little time.
Therefore, can't Develop Movie Network Playing Engine.
Please, If You know Direct Show's Network Programming,
give me advise.
Thanks.
God bless you!
Originally posted by: Faith
I need to playback *.vob.
Please tell me how to do?