Hi, I don't know exactly is this the right forum to post this question, can anyone tell me how to hide one of the output pin in a direct show source filter? Thank you in Advance.
Raja Bose
Hi, I don't know exactly is this the right forum to post this question, can anyone tell me how to hide one of the output pin in a direct show source filter? Thank you in Advance.
Raja Bose
Thank you for your reply Adam, Like WM_DISPLAYCHANGE indicates that the user has changed the display resolution, is it possible to get any event notification to the Application while switches from user's primary console to security console? with regards,
Raja Bose
Hi, I just want to know whether any event or any windows message is triggered while UAC pops up in vista. Anyone have any idea? Thanks in Advance. with regards
Raja Bose
Hi All, Actually I like to represent a timeline visually using VC++ and MFC components. Is it possible to represent the Timeline that is available in Windows Movie Maker using VC++ and MFC? Can anyone give me some tips in creating Timeline(Front Design) visually? Whether their is any ActiveX components to do this tasks? Thank You in Advance With regards
Raja Bose
Hi, Actually I need to control the Audio of a sound card(Decklink).Is there anyway to control the audio of the decklink card using directshow? For your information I have a sound renderer for the decklink card through which I can able to render the sound and also I had tried to use the IBaseAudio interface through which I can able to control only the system volume not the card volume. Can anyone help me to solve this? Thanks in advance, With regards Raja Bose
Raja Bose
Hi Everyone, Actually I like to use the GPL MPEG1/2 decoder from the follwing site http://www.free-codecs.com[^] I have the decoder source which gives GPLDec.lib and GPLDec.ax files. I had registered the GPLDec.ax file so that I can see that in Graphedit,but can anyone tell me how do I include the GPL MPEG1/2 Decoder in my own graph with the help of the IBaseFilter interface? And also the CLSID mentioned in the source is "CLSID_GpgMpegDecoder" ..When I try to add this with ADDFilterByCLSID(...) function I an getting a "Undefined Symbol" error as there is no header file given to access the GPLDec.lib file. So can anyone help me with this? Thank You, With regards
Raja Bose
Hi Rajesh, Thank you very much for replying, As you said in the following case IGraphBuilder* g_pGraphBuilder; IBaseFilter *MyFilter; HRESULT hr hr=AddFilterByCLSID(g_pGraphBuilder,CLSID_VideoRenderer,NULL,&VideoRendrer); CLSID_VideoRenderer this one is not known to me. The classid like 2345-2445-3245-543456 (for example CLSID_VideoRenderer = 2345-2445-3245-543456)which I got from DxFilterSpy.exe is known to me. So can you tell me how do I add this Classid in my application and relate it to my base class filter Awaiting for your reply Thank You With regards
Raja Bose
Hi all, Can anyone tell me how to add a filter by Class ID and relate it with IBaseFilter Interface. I mean I have the filter Class ID from the graphedit application not something like CLSID_FilterName.Can anyone help me with this? Thank You. With regards
Raja Bose
Hi, Actually I am using MPEG2DECODER filter and I am having the "ax" extension file as well as the "lib" extension file for that filter. Can anyone tell me how to include this filter programmatically in my application? Thank You With regards
Raja Bose
first of all i appreciate your kind help Thank u very much for replying ..... Its working fine .... Thanks a lot............ With regards -- modified at 6:54 Thursday 4th January, 2007
Raja Bose
first of all i like to thank u for replying .... Still i am getting the error message even without gen initialisation ... without gen initialisation can u tell me how to set the source video as PAL Thank u, With regards
Raja Bose
hi friends, I got a problem while using this mciSendCommand(....) function. Actually I want to play PAL video files so I used the MCI_SETVIDEO using mciSendCommand(...) function for setting it as PAL video but I am getting the error returned from that function as MCIERR_MISSING_PARAMETER void InitialiseMCIWindow() { UINT ut; MCI_GENERIC_PARMS gen; if((c_Player=MCIWndCreate(hwndParent,AfxGetInstanceHandle(), WS_CHILD | MCIWNDF_SHOWNAME | MCIWNDF_SHOWMODE | WS_VISIBLE , m_sPath))==0) MessageBox("Error in initialise"); gen.dwCallback = MCI_DGV_SETVIDEO_ITEM | MCI_DGV_SETVIDEO_SOURCE | MCI_DGV_SETVIDEO_SRC_PAL ;// ut = MCIWndGetDeviceID(c_Player); MCIERROR err = mciSendCommand((MCIDEVICEID)ut,MCI_SETVIDEO,MCI_NOTIFY,(DWORD_PTR) (LPMCI_GENERIC_PARMS) &gen); if( MCIERR_MISSING_PARAMETER == err ) MessageBox("Error Got"); // if(err == 0) // MessageBox("Success"); // else // MessageBox("Failed"); ............. } Can anyone help me with this problem??? With regards
Raja Bose
hi guys, I designed the MCI player for playing file formats like mpeg 1, mpeg 2(m2p extension),vob.....In that I am able to play all the file formats BUT i am unable to get the total time duration for the mpeg 2 files(m2p extension) alone using LONG MCIWndGetLength(HWND) function(for other formats the time duration is complete and i dont have problem ). The length obtained from this function doesnt match with the total duration of the mpeg 2 file alone(extension m2p). Some part of the m2p file at the end are missing(around 5 seconds in a 12 seconds m2p file). Can anyone help me to solve this problem??? Thank you. With regards
Raja Bose
hi everyone, I downloaded a E Y Player from Code project from the following link http://www.codeproject.com/useritems/Media_Player.asp[^].... when i try to play *.mpg, *.avi,*.vob,*.dat files its playing fine .... BUT WHEN I TRY TO PLAY m2p files its giving error in MCIWndCreate(...) method ..... SO CAN ANYONE TELL ME WHETHER MCI SUPPORTS M2P FILE FORMATS(*.m2p files)????????????? Thank You, With Regards
Raja Bose
Thank you once again for replying I had refered a sample "EY player" from code project and I developed my own application using MCI ... and also i am new to MCI.... Actual problem I am getting is that I am not able to play MPEG 2 files alone(with extension m2p and mp2)... It is working fine with mpeg 1, vob, avi and dat files.... hmmmm ok as you had said I will see some more samples from code project and if I have anymore doubt i will contact you... Thank you With Regards
Raja Bose
Thank you one again for replying hmmm Its giving the same error message (The error message is "The Specified file cannot be played in the specified MCI device. The file may be corrupt, not in correct format or no file name")... I found out one thing that your code had suceeded without error by checking the return value(as given below) ... and also I created a registry value( in regedit) for MPEGVIDEO2 in MCI32 key folder and set the value as MCIQTZ32.DLL is that OK??? .... for MPEGVIDEO I have the key already(so mpeg 1 is playing fine with MCIFMP32.DLL in registry) but for the MPEGVIDEO2 I created new one .... If I didnt create this key, your code returns some error message as their is no DLL linked with MPEGVIDEO2 Devicetype I had included your code in my btnPlay() function in the main dialog is that OK ??? The code snippet for the button play is as follows void CSeamlessPlayerDlg::OnBtnPlay() { if(index == m_PlyLst.GetItemCount()) index=0; char lpszErr[256]; CString SPath=m_PlyLst.GetItemText(index,2); char lpPath[256]; strcpy(lpPath, SPath); /////////////////////////////////////////////////////////////////////////////////// MCI_DGV_OPEN_PARMS mciOpen; mciOpen.dwCallback = 0L; mciOpen.wDeviceID = 0; mciOpen.dwStyle = WS_CHILD; mciOpen.hWndParent = m_hWnd; mciOpen.lpstrElementName = lpPath ; mciOpen.lpstrDeviceType ="MPEGVIDEO2"; mciOpen.lpstrAlias ="MPEGVIDEO2"; MCIERROR err = mciSendCommand( 0,MCI_OPEN, (DWORD)(MCI_OPEN_ELEMENT|MCI_OPEN_TYPE |MCI_DGV_OPEN_PARENT|MCI_DGV_OPEN_WS),(DWORD)(LPVOID)&mciOpen); if(err != 0) { mciGetErrorString(err, lpszErr,256); MessageBox(lpszErr); // display error if failed } //////////////////////////////////////////////////////////////////////////////////// if(m_PlyLst.GetItemCount() != 0) { // mci.Stop(); mci.SetPath(SPath); mci.SetParent(m_video.GetSafeHwnd()); mci.Initialize(); // mci.SetParent(m_video.GetSafeHwnd()); // if(i==m_PlyLst.GetItemCount()) // mci.Initialize(); ::ShowWindow(mci.GetWindowHandle(),SW_MAXIMIZE); mci.Play(); SetTimer(1,1000,NULL); } else { MessageBox("Check your Play List"); } } Thank you, Awaiting for your reply:) With regards
Raja Bose
First of all I like to thank you for replying for my message . I dont know where to use your code MCI_DGV_OPEN_PARMS mciOpen; mciOpen.lpstrDeviceType ="MPEGVIDEO2"; Can you help me with this... I traced the application and found out that i am getting the error while calling this function MCIWndCreate(.....) Code Sample :::::::::::::::::::: HWND CSampleMCI::Initialize() { if((c_Player=MCIWndCreate(hwndParent,AfxGetInstanceHandle(), WS_CHILD | WS_VISIBLE | MCIWNDF_NOTIFYALL | MCIWNDF_NOAUTOSIZEWINDOW |MCIWNDF_NOAUTOSIZEMOVIE|MCIWNDF_NOTIFYERROR|MCIWNDF_SHOWALL , m_sPath))==0) MessageBox("Error in initialise"); MCIWndSetTimeFormat(c_Player,"ms"); MCIWndSetActiveTimer(c_Player,100); lVolume=GetVolume(); return c_Player; } Thank you very much Awaiting for your reply... With regards
Raja Bose
hi everyone, I used the MCI controls to play the video files... I can able to play *.vob *.dat *.mpg files but the problem i was facing is that I am NOT able to play mpeg 2 files with m2p extensions .... Can anyone tell me whether MCI supports m2p format files? Thanks in advance With regards
Raja Bose
Thank you very much for replying hmmm i will search for that and if i have any more queries i will inform. Once again thanks..... With regards
Raja Bose
Hi everyone, I had build a graph with the following, IGraphBuilder *pGraph ; IMediaControl *pMediaControl ; IVideoWindow *pVidWin ; IMediaEventEx *pEvent; I tried to play many files continuously so i created a list ctrl , its playing fine, BUT the problem i was facing is when one file is played and going to next file i release the above variables, so i am getting a blank screen like a flash.... i dont want that blank screen on the playing screen ... can anyone help me with this ... the movement from one file to other should be without the blank screen Thanks in advance With Regards
Raja Bose