Source group switching causes script stream drop outs

From: C Hoeppner (choeppner_at_comcast.net)
Date: 04/17/04

  • Next message: Michael Ruck: "Re: Directshow and .net"
    Date: Sat, 17 Apr 2004 14:02:01 -0400
    
    

    (This looks like the most appropriate group to post this in...)
    Hi everyone,

    This might be a tough one, but here goes...

    I am switching source groups with IWMEncSourceGroupCollection::put_Active().
    When I switch from a 'file' source to a encoder card source there is a short
    period of time where calls to IWMEncoder::SendScript() will return with an
    error of 'The index specified is invalid.'

    I can detect this error and resend the SendScript() until It does not return
    an error. But the output is data is not present in the script stream.

    If I wait a second or so after the put_Active() then the SendScript() works
    as expected. No error and the data is in the script stream.

    My question to everyone is...

    Is there a way to determine when the put_Active() command has completed all
    of its work behind the scenes and will accept the SendScript() command
    properly?

    I need to put a 'mark' in the stream just after I switch sources, and do not
    want to wait a second or so.

    Thanks in advance,
    Charles


  • Next message: Michael Ruck: "Re: Directshow and .net"

    Relevant Pages

    • Re: Source group switching causes script stream drop outs
      ... source group active is the one that is supposed to be set. ... But the output is data is not present in the script stream. ... > If I wait a second or so after the put_Activethen the SendScript() ...
      (microsoft.public.windowsmedia.sdk)
    • Re: Source group switching causes script stream drop outs
      ... But the output is data is not present in the script stream. ... > If I wait a second or so after the put_Activethen the SendScript() ... > Is there a way to determine when the put_Activecommand has completed ...
      (microsoft.public.windowsmedia.encoder)
    • Re: This the right place?
      ... I am switching source groups with IWMEncSourceGroupCollection::put_Active. ... I can detect this error and resend the SendScript() until It does not return ... But the output data is not present in the script stream. ... Is there a way to determine when the put_Activecommand has completed all ...
      (microsoft.public.windowsmedia.sdk)
    • <Source group switching causes script stream drop outs>
      ... I am switching source groups with IWMEncSourceGroupCollection::put_Active. ... I can detect this error and resend the SendScript() until It does not return ... But the output data is not present in the script stream. ... Is there a way to determine when the put_Activecommand has completed all ...
      (microsoft.public.windowsmedia.sdk)
    • Source group switching causes script stream drop outs
      ... I am switching source groups with IWMEncSourceGroupCollection::put_Active. ... I can detect this error and resend the SendScript() until It does not return ... But the output is data is not present in the script stream. ... Is there a way to determine when the put_Activecommand has completed all ...
      (microsoft.public.windowsmedia.encoder)