Jump to content


Photo

graphedit remote connection


  • Please log in to reply
8 replies to this topic

#1 bonzo206

bonzo206

    Newbie

  • Members
  • Pip
  • 10 posts

Posted 21 April 2006 - 05:55 AM

Hi there,

I´m starting to optimize my zoomplayer with ffdshow to get all my files running properly (mpg, avi, mp4/Nero). To do this, I want to use graphedit to understand, what is beeing used by which movie file.

I´m using graphedit 9.04.78.0000 Build 041201.

When the movie is running, I push the graphedit´s button the remote connect to the filter graph, but I couldn´t see any graph in the selection window (in none of the different movies-types)

Does anybody have an idea, what I should do?

Thank´s upfront for your support

Bonzo206

btw, I´m using WInXP Prof. SP2

#2 bonzo206

bonzo206

    Newbie

  • Members
  • Pip
  • 10 posts

Posted 26 April 2006 - 06:00 AM

no ideas ? ? ?

#3 bonzo206

bonzo206

    Newbie

  • Members
  • Pip
  • 10 posts

Posted 27 April 2006 - 06:23 AM

I now tested graphedit also with other players (sonic), but even there, I couldn´t geht a remote connection to the graphs. I have graphedit running properly on another PC, but I have no glue, why that doesn´t work with my new HTPC :blink:

I have DirectX 9.0c, WinXP Prof. SP2, several Codecs (ffdshow, purevideo, nero, sonic).

Doesn´t anybody now what could be wrong?

HELP, HELP HELP

Bonzo206 :unsure:

#4 Guest_jfergie_*

Guest_jfergie_*
  • Guests

Posted 04 June 2006 - 09:24 PM

As far as I know, you can't see/connect to a graph remotely unless it has been added to the running object table. Are you saying on one machine you can connect to the graph and not on another? Are they the same versions of the executable?

For instance, when I am writing directshow apps, I add it to the running object table so it can be spied on, but only in the debug versions. The release versions I choose not to. If you find out what it was, come back here and post as I am curious I always thought the program itself had to add itself to the table, but perhaps there is another way to find it.

If you happen to be writing C code, here is how you would add your program to the table so you can connect to it remotely.

/****************************************************************************

 FUNCTION: AddGraphToRot.

 DESCRIPTION:
	 Adds a DirectShow filter graph to the Running Object Table,
	 allowing GraphEdit to "spy" on a remote filter graph.

 PARAMETERS:

 RETURNS:
  . 0 for success, otherwise an error #.
	. Standard COM/HRESULT error numbers are returned if a COM/HRESULT error 
		was encountered.

****************************************************************************/
HRESULT AddGraphToRot(IUnknown *pUnkGraph, DWORD *pdwRegister) 
{
  IMoniker * pMoniker;
  IRunningObjectTable *pROT;
  WCHAR wsz[128];
  HRESULT hr;

  if (FAILED(GetRunningObjectTable(0, &pROT)))
	return E_FAIL;

  wsprintfW(wsz, L"FilterGraph %08x pid %08x", (DWORD_PTR)pUnkGraph, GetCurrentProcessId()); 
  wsprintfW(wsz, L"FilterGraph %08x pid %08x", (DWORD_PTR)pUnkGraph, GetCurrentProcessId());

  hr = CreateItemMoniker(L"!", wsz, &pMoniker);
  if (SUCCEEDED(hr)) 
  {
	hr = pROT->Register(0, pUnkGraph, pMoniker, pdwRegister);
	pMoniker->Release();
  }

  pROT->Release();
  return hr;
}


/****************************************************************************

 FUNCTION: RemoveGraphFromRot.

 DESCRIPTION:
	 Removes a filter graph from the Running Object Table.

 PARAMETERS:

****************************************************************************/
void RemoveGraphFromRot(DWORD pdwRegister)
{
  IRunningObjectTable *pROT;

  if (SUCCEEDED(GetRunningObjectTable(0, &pROT))) 
  {
	pROT->Revoke(pdwRegister);
	pROT->Release();
  }
}


#5 bear7

bear7

    Adept

  • Members
  • PipPipPip
  • 61 posts

Posted 05 June 2006 - 04:10 AM

You can also use the ROT code within direct show filters as long as the application allows it.

#6 bonzo206

bonzo206

    Newbie

  • Members
  • Pip
  • 10 posts

Posted 06 June 2006 - 02:50 AM

I just want to optimize my zoomplayer configuration in respect to the right ffdshow filters. I use the same versions of zoomplayer, ffdshow, codecs, graphedit and on one PC it works with the remote connection, on my new one it doesn´t.

I´m not writing my own filtergraphs or my own app which I want to work with graphedit.

Do I need any kind of additional program or file which is maybe missing on my new PC to do my optimization?

Thank´s for your patience

Bonzo206

#7 bear7

bear7

    Adept

  • Members
  • PipPipPip
  • 61 posts

Posted 06 June 2006 - 05:58 AM

just want to optimize my zoomplayer configuration in respect to the right ffdshow filters. I use the same versions of zoomplayer, ffdshow, codecs, graphedit and on one PC it works with the remote connection, on my new one it doesn´t.

Is it possible that you have Custom Media Mode set on one PC and disabled on the other? I can only get the remote graph feature to work in ZP if I have custom Media mode disabled, but only if I'm using a self registering Filter in the graph. This means that I can't view a graph when I'm using custom filter setup, but thats not a big deal for me as I can see the filters used in the graph anyway from the filters list menu and build the graph myself.

#8 bLight

bLight

    Lead Developer

  • Admin
  • PipPipPipPipPip
  • 8305 posts

Posted 07 June 2006 - 10:33 AM

ZP doesn't expose its graph to graphedit due to various copyright issues.

However, ZP does display how its graph is built by right-clicking the video and under filter properties. You can see which filter is connect to which and even some additional information about the connection.

#9 bonzo206

bonzo206

    Newbie

  • Members
  • Pip
  • 10 posts

Posted 10 June 2006 - 05:48 AM

thank´s for all your support,

as I´m not the most experienced in filter/codec management, a picture of the filters always helped me (like in graphedit. I was just wondering, why remote connection it works on one PC and on the other one, it doesn´t. I have compared all settings (as long as I could see) - there are no differences. On my test-PC, I could remote connect graphedit / zoomplayer (4.51), on my HTPC, I couldn´t.

I thought, I´m just missing a file, setting or anything else.

Thank´s again

Bonzo206