BmfModules

Functions | Variables # bmf.builder.bmf_modules Namespace Reference

Functions

def upload ( stream , type="", path="", entry="")

def go_module (streams, name, module_path=None, entry=None, option =None, input_manager =‘immediate’, pre_module =None, scheduler =0, stream_alias =None)

def module (streams, module_info , option =None, module_path="", entry="", input_manager =‘immediate’, pre_module =None, scheduler =0, stream_alias =None)

def pass_through ( stream , type="", path="", entry="", stream_alias =None)

def null_sink ( stream , type="", path="", entry="")

def py_module (streams, name, option =None, module_path="", entry="", input_manager =‘immediate’, pre_module =None, scheduler =0, stream_alias =None)

def c_module (streams, name, module_path="", entry="", option =None, input_manager =‘immediate’, pre_module =None, scheduler =0, stream_alias =None)

Variables

dictionary bmf_modules

dictionary option = {}

stream_alias

dictionary module_info

stream

input_manager

pre_module

scheduler

Function Documentation

 go_module()

def bmf.builder.bmf_modules.go_module (  streams, 
   name, 
   module_path = None, 
   entry = None, 
   option = None, 
   input_manager = 'immediate', 
   pre_module = None, 
   scheduler = 0, 
   stream_alias = None 
 )   
 def go_module(streams, name, module_path=None, entry=None, option=None, input_manager='immediate', pre_module=None, scheduler=0, stream_alias=None):
     if option is None:
         option = {}
     return module(streams, {"name": name, "type": "go", "path": module_path, "entry": entry}, option,
                   input_manager=input_manager, pre_module=pre_module, scheduler=scheduler, stream_alias=stream_alias)
 bmf.builder.bmf_modules.go_moduledef go_module(streams, name, module_path=None, entry=None, option=None, input_manager='immediate', pre_module=None, scheduler=0, stream_alias=None)Definition: bmf_modules.py:134
bmf.builder.bmf_modules.moduledef module(streams, module_info, option=None, module_path="", entry="", input_manager='immediate', pre_module=None, scheduler=0, stream_alias=None)To build a BMF node by Args. Definition: bmf_modules.py:35

 upload()

def bmf.builder.bmf_modules.upload (  stream, 
   type = "", 
   path = "", 
   entry = "" 
 )   
 def upload(stream, type="", path="", entry=""):
     module_info = {
         "name": 'upload',
         "type": type,
         "path": path,
         "entry": entry
     }
     return BmfNode(module_info, {}, stream, input_manager='immediate')
 
 

Example:

import bmf
graph = bmf.graph()

video = graph.decode({"input_path": input_video_path})
video["audio"].upload()

If you need the complete code, you can refer to test_clock_sync.py

Variable Documentation

 bmf_modules

dictionary bmf.builder.bmf_modules.bmf_modules 
 =  {
     'ff_decoder': 'c_ffmpeg_decoder',
     'ff_filter': 'c_ffmpeg_filter',
     'ff_encoder': 'c_ffmpeg_encoder',
     'pass_through': 'pass_through'
 }

 input_manager

bmf.builder.bmf_modules.input_manager 

 module_info

dictionary bmf.builder.bmf_modules.module_info 
 =  {
         "name": bmf_modules['pass_through'],
         "type": type,
         "path": path,
         "entry": entry
     }

 option

dictionary bmf.builder.bmf_modules.option = {} 

 pre_module

bmf.builder.bmf_modules.pre_module 

 scheduler

bmf.builder.bmf_modules.scheduler 

 stream

bmf.builder.bmf_modules.stream 

 stream_alias

bmf.builder.bmf_modules.stream_alias 

Last modified September 30, 2024 : Python docs done (14a4999)