INTERACT FORUM

Windows => Plug-in Development => Topic started by: scthom on May 05, 2007, 08:21:50 pm

Title: Encoder "GetInfo" response question
Post by: scthom on May 05, 2007, 08:21:50 pm
How is the encoder plugin supposed to respond to the GetInfo "RipAndEncode" query?  It's generated from the Advanced Ripping Options screen.

"TRUE"/"FALSE"
"1"/"0"

Something else?

I tried a variety of things and it didn't seem to make any difference.
Title: Re: Encoder "GetInfo" response question
Post by: John Gateley on May 05, 2007, 11:24:26 pm
I'll take a look on monday -- j
Title: Re: Encoder "GetInfo" response question
Post by: scthom on May 06, 2007, 10:24:22 am
Thanks, John.

Another item for the Wiki when we find out.  I know the other one from the SDK (well, the example encoder anyway, it's not in the docs  :() is "Bitrate" but I've never seen it called in practice.  There may be others I'm missing as well.
Title: Re: Encoder "GetInfo" response question
Post by: John Gateley on May 06, 2007, 11:54:12 am
I'll check for sure tomorrow on that one too, but I'm pretty sure that Bitrate is supposed to return the approximate bit rate of the encoder. It was put in so that VBR encoders can make a guess for estimating total sizes.

j
Title: Re: Encoder "GetInfo" response question
Post by: John Gateley on May 07, 2007, 09:58:59 am
RipAndEncode - asks whether the encoder can run two instances (encode two files at the same time), returns "Yes" or "No".

Bitrate - what I thought: an estimate of the bit rate of the file, returns a number as a string, like "750" for 750Kbits/sec.

I made a first stab at a wiki page:

http://wiki.jrmediacenter.com/index.php/Encoder_Plug-in_SDK

j
Title: Re: Encoder "GetInfo" response question
Post by: scthom on May 07, 2007, 09:36:14 pm
Figures on the Yes/No, I tried True/False and 1/0.  However, I would assume that MC should interpret those as "No" but regardless, would still call multiple instances of the encoder.  So something might be broken there.

Nice work on the wiki.  I'll try to expand it with what I've learned.