Hi, using this application I tryed opening an avi with bad indexes and I had a problem. If I play them using MPC I got not problems, when i use IGraphBuilder:RenderFile(), it can not build the graph. Using Graph Edit, I noticed MPC uses different filters when it plays video with bad indexes, but that filters are not available in DirectShow, and using IGraphBuilder:RenderFile() the GraphBuilder can't find them. Does someone know something about the filter used by MPC? Does it use internal filter? Is it possible using them? Can you play avi with bad indexes using directshow? If yes, what codec are you using? Is available source code for repairing an avi with bad indexes? Please if you know something that can help me, or if you can redirect me to a better discussion place for this topic, reply... I'm very afraid with this problem. Thanks in advance for help.
ReplyHi, I tried to compile your code in Visual C++.net and win2000. I got several occurances of these errors in afxstr.h: C2976: 'StrTraitMFC_DLL' : too few template arguments C3203: 'StrTraitMFC_DLL' : class template invalid as template argument for template parameter 'StringTraits', expected a real type What is the solution? Can this code be used in Visual C++.net? Thanks
Set "Minimize CRT use in ATL" to "No"
ReplyI have the same problem, have any one found a solution?
ReplyAfter insatalling DirectX SDK, Open project file of DirectAPP sample. With Visual 6.0, go to Project settings, open link tab. Remove all the Object/library modules libs without quartz.lib and strmmiids.lib. Open "StdAfx.h" and make " strmif.h" directory suitable for your SDK system. With Visual Studio. Net,Open Solution properties and go to Linker configuration and input property in turn. Take care of most of libs exactly as above VS6.0 on Additional Dependencies item and also modify "StdAfx.h". This sample works fine with Both of 6.0 and .Net. I think there is still one bugs here. When playing movie file for the first time, no video stream's on Picture box even though we can here audio stream. If so,Try another file. After that every thing's will be fine. I didn't check the preview mode. I hope this will be helpful to everybody. Good sample........
ReplyOriginally posted by: fro
Hello everybody,
I had problems with linking, something like
"error LNK2001: unresolved external symbol _CLSID_CaptureGraphBuilder2
error LNK2001: unresolved external symbol _IID_ICaptureGraphBuilder2 "
despite of including in 'Tools->Options->Directories->(show directories for)Library files' path to 'DX9_SDK\Lib'(where strmiids.lib was), and setting this path to the top of directories' tree.
If you have a problem similiar to mentioned above, try this:
'Project->Add to project->Files', set 'file type' in dialog to 'library files', find and choose strmiids.lib. It has helped me.
Greetings for everyone
f.
P.S. Sorry for my (poor) English, but I'am still working on improving it.
After insatalling DirectX SDK, Open project file of DirectAPP sample. With Visual 6.0, go to Project settings, open link tab. Remove all the Object/library modules libs without quartz.lib and strmmiids.lib. Open "StdAfx.h" and make " strmif.h" directory suitable for your SDK system. With Visual Studio. Net,Open Solution properties and go to Linker configuration and input property in turn. Take care of most of libs exactly as above VS6.0 on Additional Dependencies item and also modify "StdAfx.h". This sample works fine with Both of 6.0 and .Net. I think there is still one bugs here. When playing movie file for the first time, no video stream's on Picture box even though we can here audio stream. If so,Try another file. After that every thing's will be fine. I didn't check the preview mode. I hope this will be helpful to everybody. Good sample........
ReplyOriginally posted by: joseph
I have all links to libraries yet i cant compile it... when it says not all windows can be opened does it mean i am lacking some important links? i am using XP and directX 9
errors
error LNK2001: unresolved external symbol _CLSID_CaptureGraphBuilder2
error LNK2001: unresolved external symbol _IID_ICaptureGraphBuilder2
..\Debug/Movie.exe : fatal error LNK1120: 2 unresolved externals
pls help me... thanx
ReplyOriginally posted by: Dillip
Hi there.,
In my application , there are 3 video source attached . One is from Webcam connected to USB and other one is from TV-Tuner card which sends 2 sources i,e. (a) S-Video ,(b) Composite Video (Composite line). But, when I detect, it shows me only 2 sources in the list . I tested with your application also.. but I receive the same ..only 2 sources .. 1. Webcam & other one is either S-Video or Composite Video . How can I detect these 2 sources(S-Video & Composite Video) comming from TV tuner card ..?
Thanks in Advance.!~
Best Regards,
DILLIP.
Originally posted by: Ram
hello!
i m an intrested dev. i m working 4 proj n my module is to dev a mpeg player. i kneed to sep the A and V. i m using directshow methods. i m not able to operate the mpeg1 splitter. plz help me on this issue n send me some code to use those mpeg1 splitter filter easily.
thanking you,
Ram
Originally posted by: Muzammil
I am developing a client/server application, server captures the video from video input device and transmit it over the network to its client(s). I am getting the video and its buffer too but don't know how to transmit it over the network. Does DirectShow provides any solution for it. I have little time so plz tell me with thanks
ReplyOriginally posted by: Christophe
I have stille 2 errors while linking.
PreviewMovieDlg.obj : error LNK2001: unresolved external symbol _CLSID_CaptureGraphBuilder2
PreviewMovieDlg.obj : error LNK2001: unresolved external symbol _IID_ICaptureGraphBuilder2
I have included strmbasd.lib!
Can anyone help me?
Christophe
ReplyOriginally posted by: XU Jianfeng
Such as avi,mpeg.Thanks.