video_encoding.properties package¶
Submodules¶
video_encoding.properties.video_format module¶
video_encoding.properties.video_resolution module¶
-
class
video_encoding.properties.video_resolution.Resolution(width, height)[source]¶ Bases:
tuple-
height¶ Alias for field number 1
-
width¶ Alias for field number 0
-
-
class
video_encoding.properties.video_resolution.VideoResolution[source]¶ Bases:
objectThis class contains all the configuration for all the supported resolutions.
Currently it only supports upto 1080p.
Resolution
Width
Height
360
480
360
480
640
480
720
1280
720
1080
1920
1080
-
get_w_h(resolution)[source]¶ Get the width and height for a given resolution.
- Parameters
resolution (int) – Resolution for which the height and width value are needed.
- Raises
ValueError – If the resolution is not String.
ValueError – If the value of resolution is not found or is not supported.
- Returns
Height and width of the resolution.
- Return type
-