thedeemon.com forum
November 21, 2009, 03:41:58 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Last GraphEditPlus version: 1.3.4   Last Video Enhancer version: 1.9.3
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Generated code cannot connect filters [solved]  (Read 2099 times)
mailed
Newbie
*

Karma: +0/-0
Posts: 16


some one


View Profile
« on: June 30, 2008, 11:46:20 AM »

The Graph works but the generated code fail on connection:
Code:
//connect SoundMAX Digital Audio and VSS AAC Encoder

hr = pBuilder->RenderStream(NULL, &MEDIATYPE_Audio, pSoundMAXDigitalAudio, NULL, pVSSAACEncoder);
CHECK_HR(hr, "Can't connect SoundMAX Digital Audio and VSS AAC Encoder");
« Last Edit: June 30, 2008, 11:53:28 AM by mailed » Logged

This message was originally emailed by a user.
Dee Mon
Administrator
Full Member
*****

Karma: +5/-0
Posts: 207



View Profile WWW
« Reply #1 on: June 30, 2008, 11:48:57 AM »

This usually happened in earlier versions of GraphEditPlus when there were several pins of same mediatype in one filter, so
RenderStream didn't know what to do. Old anwer was: "in this case you should find proper pin and connect using that pin.
See "Enumerating pins" in MSDN.".

Since version 1.2.0 GraphEditPlus can generate code with direct connects so this problem shouldn't appear anymore.
« Last Edit: June 30, 2008, 11:51:40 AM by Dee Mon » Logged
Wataru
Newbie
*

Karma: +0/-0
Posts: 6


View Profile
« Reply #2 on: September 17, 2008, 12:00:26 AM »

I'm afraid that I'm having the same (or similar) problem... and I have version 1.2.2.  GraphEditPlus can run fine, but when the code is transferred, the pins fail.

When I copy the generated code (C#) to Visual Studio, I get the "Pin not found" / "Com Error:..." message.  So far, the pins fail connect between an USB Audio Device -> WM ASF Writer and an Infinite Pin Tee Filter -> AVI Decompressor.

Any ideas?

Greg  Huh?
Logged
Dee Mon
Administrator
Full Member
*****

Karma: +5/-0
Posts: 207



View Profile WWW
« Reply #3 on: September 17, 2008, 11:51:45 AM »

Sometimes the pins appear not instantly, the filter needs some time after it's inserted (met this behavior with a webcam). If you're sure the pin name is correct, try Sleep(100) after inserting audio device before searching for the pin.
Logged
Wataru
Newbie
*

Karma: +0/-0
Posts: 6


View Profile
« Reply #4 on: September 24, 2008, 02:27:25 AM »

No dice.  I even tried adding a sleep(100) after ever step generated by the GraphEditPlus code (I placed them in-between the create filters and the connection filters).  Still can't find the pins.  And the names SHOULD be correct because I took the code directly from GraphEditPlus and pasted it into my C# app.  And it does work fine inside of GraphEditPlus.

Any ideas what I should try next?  Is this a usual error for C# users?
Logged
Dee Mon
Administrator
Full Member
*****

Karma: +5/-0
Posts: 207



View Profile WWW
« Reply #5 on: September 25, 2008, 04:34:04 PM »

Can you tell what pin of what filter isn't found?
Logged
Wataru
Newbie
*

Karma: +0/-0
Posts: 6


View Profile
« Reply #6 on: October 03, 2008, 11:32:28 PM »

Sorry for the slow reply... I found a work around instead.  I just lined up the Audio path first (connected ALL things audio), THEN attached video device, filters, extra to the mux.  That solved the issue.  Thanks for your help!!!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!