Settings
FPS
dataclass
Set the frame rate (Hz value, fraction or abbreviation).
Usage:
# frame per seconds
fps = FPS(fs=60)
Source code in nucleus/sdk/processing/video/settings.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
BR
dataclass
Set the Video/Audio bitrate.
Usage:
# set bitrate for both streams or independent
br = BR(100) # audio/video
br = BR(150, 94) # video b:v 150, audio b:a 94
Source code in nucleus/sdk/processing/video/settings.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|
Custom
dataclass
Special class for directly specifying custom settings to the ffmpeg command.
Usage:
# create a custom command based on ffmpeg option -fs
# No further chunk of bytes is written after the limit is exceeded.
custom = Custom(fs=100)
Source code in nucleus/sdk/processing/video/settings.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
FrameSize
dataclass
Set the frame size.
Usage:
# the output screen size
size = FrameSize(200, 200)
Source code in nucleus/sdk/processing/video/settings.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
Defaults
Screen
dataclass
Default standard screen size settings.
Usage:
# using default screen sizes
br = Screen.Q720 # appropriate size 720p
Source code in nucleus/sdk/processing/video/settings.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
|
Bitrate
dataclass
Default standard bitrate settings.
Usage:
# using default standard bitrate
br = Bitrate.B720 # appropriate bitrate for 720p
Source code in nucleus/sdk/processing/video/settings.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
|
Note
During processing time, the setting classes are parsed as configuration arguments for FFMPEG python library. To know more about the settings implemented in this reference please see FFMPEG main options.