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) (in [32, 2048], default 192)
- Type:
int
- audio_channels
Audio channel count (default
'STEREO')MONOMono – Set audio channels to mono.STEREOStereo – Set audio channels to stereo.SURROUND44 Channels – Set audio channels to 4 channels.SURROUND515.1 Surround – Set audio channels to 5.1 surround sound.SURROUND717.1 Surround – Set audio channels to 7.1 surround sound.
- Type:
Literal[‘MONO’, ‘STEREO’, ‘SURROUND4’, ‘SURROUND51’, ‘SURROUND71’]
- audio_codec
FFmpeg audio codec to use (default
'NONE')NONENo Audio – Disables audio output, for video-only renders.AACAAC.AC3AC3.FLACFLAC.MP2MP2.MP3MP3.OPUSOpus.PCMPCM.VORBISVorbis.
- Type:
Literal[‘NONE’, ‘AAC’, ‘AC3’, ‘FLAC’, ‘MP2’, ‘MP3’, ‘OPUS’, ‘PCM’, ‘VORBIS’]
- audio_mixrate
Audio sample rate (samples/s) (in [8000, 192000], default 48000)
- Type:
int
- audio_volume
Audio volume (in [0, 1], default 1.0)
- Type:
float
- buffersize
Rate control: buffer size (kb) (in [0, 2000], default 0)
- Type:
int
- codec
FFmpeg codec to use for video output (default
'H264')NONENo Video – Disables video output, for audio-only renders.AV1AV1.H264H.264.H265H.265 / HEVC.WEBMWebM / VP9.DNXHDDNxHD.DVDV.FFV1FFmpeg video codec #1.FLASHFlash Video.HUFFYUVHuffYUV.MPEG1MPEG-1.MPEG2MPEG-2.MPEG4MPEG-4 (divx).PNGPNG.PRORESProRes.QTRLEQuickTime Animation.THEORATheora.
- Type:
Literal[‘NONE’, ‘AV1’, ‘H264’, ‘H265’, ‘WEBM’, ‘DNXHD’, ‘DV’, ‘FFV1’, ‘FLASH’, ‘HUFFYUV’, ‘MPEG1’, ‘MPEG2’, ‘MPEG4’, ‘PNG’, ‘PRORES’, ‘QTRLE’, ‘THEORA’]
- constant_rate_factor
Constant Rate Factor (CRF); tradeoff between video quality and file size (default
'MEDIUM')NONEConstant Bitrate – Configure constant bit rate, rather than constant output quality.LOSSLESSLossless.PERC_LOSSLESSPerceptually Lossless.HIGHHigh Quality.MEDIUMMedium Quality.LOWLow Quality.VERYLOWVery Low Quality.LOWESTLowest Quality.CUSTOMCustom Quality – Set a custom Constant Rate Factor (CRF)..
- Type:
Literal[‘NONE’, ‘LOSSLESS’, ‘PERC_LOSSLESS’, ‘HIGH’, ‘MEDIUM’, ‘LOW’, ‘VERYLOW’, ‘LOWEST’, ‘CUSTOM’]
- custom_constant_rate_factor
A smaller Constant Rate Factor (CRF) results in better video quality but larger file size. The range of allowed CRF values is dependent on the codec. (in [0, 63], default 23)
- Type:
int
- ffmpeg_preset
Tradeoff between encoding speed and compression ratio (default
'GOOD')BESTSlowest – Recommended if you have lots of time and want the best compression efficiency.GOODGood – The default and recommended for most applications.REALTIMERealtime – Recommended for fast encoding.
- Type:
Literal[‘BEST’, ‘GOOD’, ‘REALTIME’]
- ffmpeg_prores_profile
ProRes Profile (default
'422_STD')- Type:
Literal[‘422_PROXY’, ‘422_LT’, ‘422_STD’, ‘422_HQ’, ‘4444’, ‘4444_XQ’]
- format
Output file container (default
'MKV')- Type:
Literal[‘MPEG4’, ‘MKV’, ‘WEBM’, ‘AVI’, ‘DV’, ‘FLASH’, ‘MPEG1’, ‘MPEG2’, ‘OGG’, ‘QUICKTIME’]
- gopsize
Distance between key frames, also known as GOP size; influences file size and seekability (in [0, 500], default 25)
- Type:
int
- max_b_frames
Maximum number of B-frames between non-B-frames; influences file size and seekability (in [0, 16], default 0)
- Type:
int
- maxrate
Rate control: max rate (kbit/s) (in [-inf, inf], default 0)
- Type:
int
- minrate
Rate control: min rate (kbit/s) (in [-inf, inf], default 0)
- Type:
int
- muxrate
Mux rate (bits/second) (in [0, inf], default 0)
- Type:
int
- packetsize
Mux packet size (byte) (in [0, 16384], default 0)
- Type:
int
- use_autosplit
Autosplit output at 2GB boundary (default False)
- Type:
bool
- use_lossless_output
Use lossless output for video streams (default False)
- Type:
bool
- use_max_b_frames
Set a maximum number of B-frames (default False)
- Type:
bool
- video_bitrate
Video bitrate (kbit/s) (in [-inf, inf], default 0)
- Type:
int
- classmethod bl_rna_get_subclass(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (
bpy.types.Struct| None) – The value to return when not found.
- Returns:
The RNA type or default when not found.
- Return type:
- classmethod bl_rna_get_subclass_py(id, default=None, /)
- Parameters:
id (str) – The RNA type identifier.
default (type | None) – The value to return when not found.
- Returns:
The class or default when not found.
- Return type:
type