PrepareToEncode() error.

PrepareToEncode() error.

Post by Tony Nguye » Thu, 01 May 2003 08:32:29



The PrepareToEncode() gives me two type of error.
1.    Error Code = C00D1B66  ("This operation is not allowed while
encoding.")
2.                        = C00D0028  ("An attempt to acquire a network
resource failed.")

Here is a pseudo code of my program.
int main()
{
    PrepareToEncode(VARIANT_TRUE)
    START the Encoder
    START the Archive
    STOP the Archive
    STOP the Encoder
    PrepareToEncode(VARIANT_FALSE)  // NOTE:  will fail w/ error code
C00D1B66

    // Try to do the above step again.
    PrepareToEncode(VARIANT_TRUE)    // NOTE:  will fail w/ error code
C00D0028
    START the Encoder
    START the Archive
    STOP the Archive
    STOP the Encoder
    PrepareToEncode(VARIANT_FALSE)

Quote:}

Can someone tell me if the steps I am doing is correct or not?  I've look at
the sample code in the SDK, and it look a lot like what I wrote.  I am a
little confuse w/ the STOP() encode function.  I've try not putting the
PrepareToEncode() after the STOP() but the problem still exist.

Thank you again for the help.

 
 
 

PrepareToEncode() error.

Post by Juan A. RodrĂ­gue » Thu, 15 May 2003 23:20:15


Try this:

int main()
{
    PrepareToEncode(VARIANT_TRUE)
    START the Encoder
    START the Archive
    STOP the Archive
    STOP the Encoder
    WAIT until (ENCODER_STATE == STOPPED)

    PrepareToEncode(VARIANT_TRUE)
     START the Encoder
     START the Archive
     STOP the Archive
     STOP the Encoder
     WAIT until (ENCODER_STATE == STOPPED)

}



Quote:> The PrepareToEncode() gives me two type of error.
> 1.    Error Code = C00D1B66  ("This operation is not allowed while
> encoding.")
> 2.                        = C00D0028  ("An attempt to acquire a network
> resource failed.")

> Here is a pseudo code of my program.
> int main()
> {
>     PrepareToEncode(VARIANT_TRUE)
>     START the Encoder
>     START the Archive
>     STOP the Archive
>     STOP the Encoder
>     PrepareToEncode(VARIANT_FALSE)  // NOTE:  will fail w/ error code
> C00D1B66

>     // Try to do the above step again.
>     PrepareToEncode(VARIANT_TRUE)    // NOTE:  will fail w/ error code
> C00D0028
>     START the Encoder
>     START the Archive
>     STOP the Archive
>     STOP the Encoder
>     PrepareToEncode(VARIANT_FALSE)
> }

> Can someone tell me if the steps I am doing is correct or not?  I've look
at
> the sample code in the SDK, and it look a lot like what I wrote.  I am a
> little confuse w/ the STOP() encode function.  I've try not putting the
> PrepareToEncode() after the STOP() but the problem still exist.

> Thank you again for the help.