Transcode Functions

def bmf.builder.ff_filter.ff_filter (streams, filter_name, args, kwargs)

def bmf.builder.ff_filter.vflip (stream, kwargs)

def bmf.builder.ff_filter.scale (stream, args, kwargs)

def bmf.builder.ff_filter.setsar (stream, args, kwargs)

def bmf.builder.ff_filter.pad (stream, args, kwargs)

def bmf.builder.ff_filter.trim (stream, args, kwargs)

def bmf.builder.ff_filter.setpts (stream, args, kwargs)

def bmf.builder.ff_filter.loop (stream, args, kwargs)

def bmf.builder.ff_filter.split (stream, args, kwargs)

def bmf.builder.ff_filter.adelay (stream, args, kwargs)

def bmf.builder.ff_filter.atrim (stream, args, kwargs)

def bmf.builder.ff_filter.amix (stream, args, kwargs)

def bmf.builder.ff_filter.afade (stream, args, kwargs)

def bmf.builder.ff_filter.asetpts (stream, args, kwargs)

def bmf.builder.ff_filter.overlay (stream, overlay_stream, args, kwargs)

def bmf.builder.ff_filter.concat (streams, kwargs)

def bmf.builder.ff_filter.fps (stream, f, kwargs)

def bmf.builder.ff_filter.encode (video_stream, audio_stream, encoder_para, type ="", path ="", entry ="", stream_alias =None)

def bmf.builder.ff_filter.decode (self, decoder_para =None, type ="", path ="", entry ="", stream_alias =None)

Detailed Description

BMF transcode related functions, can be called directly by BmfStream object.

Function Documentation

 adelay()

def bmf.builder.ff_filter.adelay (  stream, 
   args, 
   kwargs 
 )   

Returns

 def adelay(stream, 
  * args
  ** kwargs
):

 afade()

def bmf.builder.ff_filter.afade (  stream, 
   args, 
   kwargs 
 )   

Returns

 def afade(stream, 
  * args
  ** kwargs
):

 amix()

def bmf.builder.ff_filter.amix (  stream, 
   args, 
   kwargs 
 )   

Returns

 def amix(stream, 
  * args
  ** kwargs
):

 asetpts()

def bmf.builder.ff_filter.asetpts (  stream, 
   args, 
   kwargs 
 )   

Returns

 def asetpts(stream, 
  * args
  ** kwargs
):

 atrim()

def bmf.builder.ff_filter.atrim (  stream, 
   args, 
   kwargs 
 )   

Returns

 def atrim(stream, 
  * args
  ** kwargs
):

 concat()

def bmf.builder.ff_filter.concat (  streams, 
   kwargs 
 )   

Returns

 def concat(
  * streams
  ** kwargs
):

 decode()

def bmf.builder.ff_filter.decode (  self, 
   decoder_para = None, 
   type = "", 
   path = "", 
   entry = "", 
   stream_alias = None 
 )   

A graph function to provide a build-in decoder BMF stream Include av demuxer and decoder.

Parameters

  • decoder_para the parameters for the decoder

Returns

 def decode(self, decoder_para=None, type="", path="", entry="", stream_alias=None):

 encode()

def bmf.builder.ff_filter.encode (  video_stream, 
   audio_stream, 
   encoder_para, 
   type = "", 
   path = "", 
   entry = "", 
   stream_alias = None 
 )   

Build-in encoder BMF stream Include av encoder and muxer.

Parameters

  • video_stream the stream of video, it should be the first input stream of the encoder
  • audio_stream the stream of audio
  • encoder_para the parameters for the encoder

Returns

 def encode(video_stream, audio_stream, encoder_para, type="", path="", entry="", stream_alias=None):

 ff_filter()

def bmf.builder.ff_filter.ff_filter (  streams, 
   filter_name, 
   args, 
   kwargs 
 )   

Build-in filter BMF stream.

Parameters

  • filter_name the filter name in the libavfilter
  • args the arguments for the filter
  • kwargs the extra arguments for the filter stream such as: alias, stream_alias, type, path, entry

Returns

 def ff_filter(streams, filter_name, 
  * args
  ** kwargs
):

 fps()

def bmf.builder.ff_filter.fps (  stream, 
   f, 
   kwargs 
 )   

’’’ video_stream_count = kwargs.get(‘v’, 1) audio_stream_count = kwargs.get(‘a’, 0) stream_count = video_stream_count + audio_stream_count if len(streams) % stream_count != 0: raise ValueError( ‘Expected concat input streams to have length multiple of {} (v={}, a={}); got {}’.format( stream_count, video_stream_count, audio_stream_count, len(streams) ) ) seg_count = int(len(streams) / stream_count)

Returns

 def fps(stream, f, **kwargs):

 loop()

def bmf.builder.ff_filter.loop (  stream, 
   args, 
   kwargs 
 )   

Returns

 def loop(stream, 
  * args
  ** kwargs
):

 overlay()

def bmf.builder.ff_filter.overlay (  stream, 
   overlay_stream, 
   args, 
   kwargs 
 )   

Returns

 def overlay(stream, overlay_stream, 
  * args
  ** kwargs
):

 pad()

def bmf.builder.ff_filter.pad (  stream, 
   args, 
   kwargs 
 )   

Returns

 def pad(stream, 
  * args
  ** kwargs
):

 scale()

def bmf.builder.ff_filter.scale (  stream, 
   args, 
   kwargs 
 )   

Returns

 def scale(stream, 
  * args
  ** kwargs
):

 setpts()

def bmf.builder.ff_filter.setpts (  stream, 
   args, 
   kwargs 
 )   

Returns

 def setpts(stream, 
  * args
  ** kwargs
):

 setsar()

def bmf.builder.ff_filter.setsar (  stream, 
   args, 
   kwargs 
 )   

Returns

 def setsar(stream, 
  * args
  ** kwargs
):

 split()

def bmf.builder.ff_filter.split (  stream, 
   args, 
   kwargs 
 )   

Returns

 def split(stream, 
  * args
  ** kwargs
):

 trim()

def bmf.builder.ff_filter.trim (  stream, 
   args, 
   kwargs 
 )   

Returns

 def trim(stream, 
  * args
  ** kwargs
):

 vflip()

def bmf.builder.ff_filter.vflip (  stream, 
   kwargs 
 )   

Returns

 def vflip(stream, **kwargs):

Last modified December 16, 2024 : Fix binutils install doc on macOS (#28) (67b861f)