PDA

View Full Version : How to create FLV with transparence


rudyhuyn
12-12-2006, 05:46 PM
I wish to create a command line executable in order to convert AVI with alpha channel to FLV with VP6Alpha codec.

I have a problem, the alpha channel is flipped, it's very strange.

I use the demo version of flix engine but before purchase this SDK, I wish know if it works !

Here is my code, for this sample, I use an existing working flv with alpha channel in input, but the result has the alpha channel flipped


IFlix flix = (IFlix)createInstance("On2.FlixEngine");
flix.setInputFile("c:\\c.flv");
flix.setOutputFile("c:\\d.flv");
IFlixPlgn codec = flix.addCodec(flix.FE2_CODEC_VP6ALPHA);
codec.setParam(flix.FE2_VP6A_RC_MODE,Convert.ToDouble(FE2_VideoBitrateControls.VBR_2PASSControl));
flix.encode();

IEncodingStatus encstatus = flix.encodingStatus();
bool ier;
do {
System.Threading.Thread.Sleep(500);
ier = flix.isEncoderRunning()==1;
} while(ier);




Thanks all for you help