Flix2_setoutputfile(), Flix2_setoutputfile, Flix2_setoverwriteexistingfiles – Google Flix Engine Linux Reference Manual User Manual

Page 172

Advertising
background image

166

Flix Engine Linux Module Documentation

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

← inputFile Path to the source file.

Return values:

ON2_OK

the engine successfully opened the input file for decoding

ON2_INVALID_PARAMS

a parameter is invalid.

ON2_NET_ERROR

the underlying communication layer failed

<ON2_OK An error occurred opening the file. Call

Flix2_Errno()

for more detail.

Precondition:

flix

is not NULL

inputFile

is not NULL

Remarks:

Linux Only: flixd

, the encoding server, gets its input from, and writes its output to, the host file system.

inputFile

must be accessible in this context. An absolute path should be given to help ensure this is the

case.

5.38.2.21

on2sc Flix2_SetOutputFile (FLIX2HANDLE flix, const on2tc ∗ outputFile)

Set the destination file for the encode session.

When

Flix2_Encode()

is called an attempt is made to open outputFile.

If the file exists the behavior is determined by the value of

Flix2_GetOverwriteExistingFiles()

:

on2true

the file will be overwritten

on2false

a new file will be created of the form: outputFilennn.ext, e.g. out000.flv

Parameters:

← flix Handle to the flix engine returned from

Flix2_Create()

or

Flix2_CreateEx()

← outputFile Path to the output file.

Return values:

ON2_OK

the engine successfully set the output file

ON2_INVALID_PARAMS

should one or more of the preconditions fail

ON2_NO_MEM

an error occurred allocating memory for outputFile

ON2_NET_ERROR

the underlying communication layer failed

Precondition:

flix

is not NULL

outputFile

is not NULL

Remarks:

Linux Only: flixd

, the encoding server, gets its input from, and writes its output to, the host file system.

inputFile

must be accessible in this context. An absolute path should be given to help ensure this is the

case.

Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen

Advertising