video_encoding.properties package

Submodules

video_encoding.properties.video_format module

class video_encoding.properties.video_format.VideoFormat(value)[source]

Bases: enum.Enum

This class contains the mapping of the different extensions to the codec that are used to process the videos.

AVI = 'XVID'
M4V = 'H264'
MP4 = 'mp4v'
MPG = 'MPG1'
static list()[source]

Lists all the available codec available for conversion.

Returns

List of all the codec available for conversion.

Return type

List

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: object

This 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

Resolution