FBVideoCodecManager Class Reference

FBVideoCodecManager Class Reference

#include <mobu-python-api.h>

Class Description

Video Codec manager class.

Use to set or get codec used and codec params

+ Inheritance diagram for FBVideoCodecManager:

Public Member Functions

 __reduce__ ()
 
 __init__ (object arg1)
 
list GetCodecIdList (FBVideoCodecManager arg1, str arg2)
 GetCodecIdList. More...
 
 SetDefaultCodec (FBVideoCodecManager arg1, str arg2, str arg3)
 SetDefaultCodec. More...
 
str GetDefaultCodec (FBVideoCodecManager arg1, str arg2)
 GetDefaultCodec. More...
 
bool RegisterExternalVideoFormat (FBVideoCodecManager arg1, str arg2)
 Register external video format suffix. More...
 

Public Attributes

object VideoCodecMode
 

Member Function Documentation

__init__ ( object  arg1)

Python Docstring:

__init__( (object)arg1) -> None 
__reduce__ ( )
list GetCodecIdList ( FBVideoCodecManager  arg1,
str  arg2 
)

GetCodecIdList.

Python Docstring:

GetCodecIdList( (FBVideoCodecManager)arg1, (str)arg2) -> list 

C++ Signature:

void GetCodecIdList(const char * pFileFormatInfo, ORSDK2018::FBStringList & pCodecList) 

Get all codec id available for a given file format.

Parameters
pFileFormatInfofile format description string (AVI, MOV...)
pCodecListCodec list id
str GetDefaultCodec ( FBVideoCodecManager  arg1,
str  arg2 
)

GetDefaultCodec.

Python Docstring:

GetDefaultCodec( (FBVideoCodecManager)arg1, (str)arg2) -> str 

C++ Signature:

const char * GetDefaultCodec(const char * pFileFormatInfo) 

Get the default codec id for a given file format. This is the codec that will be used if codec mode is FBVideoCodecUseDefault

Parameters
pFileFormatInfofile format description string (AVI, MOV...)
bool RegisterExternalVideoFormat ( FBVideoCodecManager  arg1,
str  arg2 
)

Register external video format suffix.

Python Docstring:

RegisterExternalVideoFormat( (FBVideoCodecManager)arg1, (str)arg2) -> bool 

C++ Signature:

bool RegisterExternalVideoFormat(const char * pFormatSuffix) 

Only alphabetic and number is allowed in provided suffix, and can not be empty suffix or the system exist suffixes. This will allow this suffix to be appeared in the filters of file dialog when importing video, also allow to create a texture/video object with a path containing this suffix via SDK. However it will the custom SDK plug-in developer's responsibility to load the file into memory.

Remarks
After register an external video format, and save a scene with this kind of video. when start MotionBuilder next time and before load the scene back,
It is necessary to call RegisterExternalVideoFormat to register this kind of video format again, otherwise this kind of video will not be loaded.
Parameters
pFormatSuffixSuffix/File extension of external video file format
Returns
true if register successful
SetDefaultCodec ( FBVideoCodecManager  arg1,
str  arg2,
str  arg3 
)

SetDefaultCodec.

Python Docstring:

SetDefaultCodec( (FBVideoCodecManager)arg1, (str)arg2, (str)arg3) -> None 

C++ Signature:

void SetDefaultCodec(const char * pFileFormatInfo, const char * pCodecId) 

Set the default codec id for a given file format. This is the codec that will be used if codec mode is FBVideoCodecUseDefault

Parameters
pFileFormatInfofile format description string (AVI, MOV...)
pCodecIdthe codec id to set as default

Member Data Documentation

object VideoCodecMode