FFmpegSettings(bpy_struct)

base class — bpy_struct

class bpy.types.FFmpegSettings(bpy_struct)

FFmpeg related settings for the scene

audio_bitrate

Audio bitrate (kb/s)

Type:int in [32, 384], default 0
audio_channels

Audio channel count

  • MONO Mono, Set audio channels to mono.
  • STEREO Stereo, Set audio channels to stereo.
  • SURROUND4 4 Channels, Set audio channels to 4 channels.
  • SURROUND51 5.1 Surround, Set audio channels to 5.1 surround sound.
  • SURROUND71 7.1 Surround, Set audio channels to 7.1 surround sound.
Type:enum in [‘MONO’, ‘STEREO’, ‘SURROUND4’, ‘SURROUND51’, ‘SURROUND71’], default ‘MONO’
audio_codec

FFmpeg audio codec to use

Type:enum in [‘NONE’, ‘MP2’, ‘MP3’, ‘AC3’, ‘AAC’, ‘VORBIS’, ‘FLAC’, ‘PCM’], default ‘NONE’
audio_mixrate

Audio samplerate(samples/s)

Type:int in [8000, 192000], default 0
audio_volume

Audio volume

Type:float in [0, 1], default 0.0
buffersize

Rate control: buffer size (kb)

Type:int in [0, 2000], default 0
codec

FFmpeg codec to use

Type:enum in [‘NONE’, ‘MPEG1’, ‘MPEG2’, ‘MPEG4’, ‘HUFFYUV’, ‘DV’, ‘H264’, ‘THEORA’, ‘FLASH’, ‘FFV1’, ‘QTRLE’, ‘DNXHD’, ‘PNG’], default ‘H264’
constant_rate_factor

Constant Rate Factor (CRF); tradeoff between video quality and file size

  • NONE None; use constant bit-rate, Use constant bit rate, rather than constant output quality.
  • LOSSLESS Lossless.
  • PERC_LOSSLESS Perceptually lossless.
  • HIGH High quality.
  • MEDIUM Medium quality.
  • LOW Low quality.
  • VERYLOW Very low quality.
  • LOWEST Lowest quality.
Type:enum in [‘NONE’, ‘LOSSLESS’, ‘PERC_LOSSLESS’, ‘HIGH’, ‘MEDIUM’, ‘LOW’, ‘VERYLOW’, ‘LOWEST’], default ‘MEDIUM’
ffmpeg_preset

Tradeoff between encoding speed and compression ratio

Type:enum in [‘ULTRAFAST’, ‘SUPERFAST’, ‘VERYFAST’, ‘FASTER’, ‘FAST’, ‘MEDIUM’, ‘SLOW’, ‘SLOWER’, ‘VERYSLOW’], default ‘MEDIUM’
format

Output file container

Type:enum in [‘MPEG1’, ‘MPEG2’, ‘MPEG4’, ‘AVI’, ‘QUICKTIME’, ‘DV’, ‘OGG’, ‘MKV’, ‘FLASH’], default ‘MKV’
gopsize

Distance between key frames, also known as GOP size; influences file size and seekability

Type:int in [0, 500], default 25
max_b_frames

Maximum number of B-frames between non-B-frames; influences file size and seekability

Type:int in [0, 16], default 0
maxrate

Rate control: max rate (kb/s)

Type:int in [-inf, inf], default 0
minrate

Rate control: min rate (kb/s)

Type:int in [-inf, inf], default 0
muxrate

Mux rate (bits/s(!))

Type:int in [0, inf], default 0
packetsize

Mux packet size (byte)

Type:int in [0, 16384], default 0
use_autosplit

Autosplit output at 2GB boundary

Type:boolean, default False
use_lossless_output

Use lossless output for video streams

Type:boolean, default False
use_max_b_frames

Set a maximum number of B-frames

Type:boolean, default False
video_bitrate

Video bitrate (kb/s)

Type:int in [-inf, inf], default 0

Inherited Properties

Inherited Functions

References