transcodely 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. buf/__init__.py +0 -0
  2. buf/validate/__init__.py +0 -0
  3. buf/validate/validate_pb2.py +469 -0
  4. buf/validate/validate_pb2.pyi +651 -0
  5. transcodely/__init__.py +175 -0
  6. transcodely/_codec/__init__.py +0 -0
  7. transcodely/_codec/json_codec.py +193 -0
  8. transcodely/_transport/__init__.py +0 -0
  9. transcodely/_transport/error_mapping.py +102 -0
  10. transcodely/_transport/headers.py +31 -0
  11. transcodely/_transport/transport.py +312 -0
  12. transcodely/client.py +160 -0
  13. transcodely/errors.py +115 -0
  14. transcodely/pagination.py +53 -0
  15. transcodely/py.typed +0 -0
  16. transcodely/resources/__init__.py +0 -0
  17. transcodely/resources/_helpers.py +29 -0
  18. transcodely/resources/api_keys.py +48 -0
  19. transcodely/resources/apps.py +59 -0
  20. transcodely/resources/events.py +118 -0
  21. transcodely/resources/health.py +19 -0
  22. transcodely/resources/jobs.py +120 -0
  23. transcodely/resources/memberships.py +54 -0
  24. transcodely/resources/organizations.py +73 -0
  25. transcodely/resources/origins.py +55 -0
  26. transcodely/resources/presets.py +63 -0
  27. transcodely/resources/users.py +46 -0
  28. transcodely/resources/videos.py +114 -0
  29. transcodely/resources/webhook_endpoints.py +242 -0
  30. transcodely/streaming.py +47 -0
  31. transcodely/types.py +570 -0
  32. transcodely/v1/api_key_pb2.py +69 -0
  33. transcodely/v1/api_key_pb2.pyi +97 -0
  34. transcodely/v1/app_pb2.py +107 -0
  35. transcodely/v1/app_pb2.pyi +219 -0
  36. transcodely/v1/codec_av1_pb2.py +55 -0
  37. transcodely/v1/codec_av1_pb2.pyi +34 -0
  38. transcodely/v1/codec_h264_pb2.py +71 -0
  39. transcodely/v1/codec_h264_pb2.pyi +44 -0
  40. transcodely/v1/codec_h265_pb2.py +69 -0
  41. transcodely/v1/codec_h265_pb2.pyi +42 -0
  42. transcodely/v1/codec_vp9_pb2.py +57 -0
  43. transcodely/v1/codec_vp9_pb2.pyi +30 -0
  44. transcodely/v1/common_pb2.py +67 -0
  45. transcodely/v1/common_pb2.pyi +171 -0
  46. transcodely/v1/content_aware_pb2.py +56 -0
  47. transcodely/v1/content_aware_pb2.pyi +51 -0
  48. transcodely/v1/drm_pb2.py +65 -0
  49. transcodely/v1/drm_pb2.pyi +68 -0
  50. transcodely/v1/hdr_pb2.py +57 -0
  51. transcodely/v1/hdr_pb2.pyi +64 -0
  52. transcodely/v1/health_pb2.py +44 -0
  53. transcodely/v1/health_pb2.pyi +44 -0
  54. transcodely/v1/job_pb2.py +201 -0
  55. transcodely/v1/job_pb2.pyi +546 -0
  56. transcodely/v1/media_pb2.py +43 -0
  57. transcodely/v1/media_pb2.pyi +100 -0
  58. transcodely/v1/membership_pb2.py +71 -0
  59. transcodely/v1/membership_pb2.pyi +122 -0
  60. transcodely/v1/organization_pb2.py +81 -0
  61. transcodely/v1/organization_pb2.pyi +121 -0
  62. transcodely/v1/origin_pb2.py +157 -0
  63. transcodely/v1/origin_pb2.pyi +317 -0
  64. transcodely/v1/preset_pb2.py +192 -0
  65. transcodely/v1/preset_pb2.pyi +290 -0
  66. transcodely/v1/streaming_pb2.py +59 -0
  67. transcodely/v1/streaming_pb2.pyi +56 -0
  68. transcodely/v1/subtitles_pb2.py +69 -0
  69. transcodely/v1/subtitles_pb2.pyi +75 -0
  70. transcodely/v1/thumbnails_pb2.py +63 -0
  71. transcodely/v1/thumbnails_pb2.pyi +74 -0
  72. transcodely/v1/user_pb2.py +72 -0
  73. transcodely/v1/user_pb2.pyi +137 -0
  74. transcodely/v1/video_pb2.py +166 -0
  75. transcodely/v1/video_pb2.pyi +367 -0
  76. transcodely/v1/webhook_pb2.py +151 -0
  77. transcodely/v1/webhook_pb2.pyi +336 -0
  78. transcodely/version.py +11 -0
  79. transcodely/webhooks/__init__.py +44 -0
  80. transcodely/webhooks/construct_event.py +111 -0
  81. transcodely/webhooks/signature.py +110 -0
  82. transcodely/webhooks/types.py +115 -0
  83. transcodely-0.2.0.dist-info/METADATA +349 -0
  84. transcodely-0.2.0.dist-info/RECORD +86 -0
  85. transcodely-0.2.0.dist-info/WHEEL +4 -0
  86. transcodely-0.2.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,69 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: transcodely/v1/codec_h265.proto
5
+ # Protobuf Python Version: 5.28.3
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 3,
17
+ '',
18
+ 'transcodely/v1/codec_h265.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ftranscodely/v1/codec_h265.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\"\x8d\x07\n\x0bH265Options\x12$\n\x06preset\x18\x01 \x01(\tB\x07\xbaH\x04r\x02\x18\x14H\x00R\x06preset\x88\x01\x01\x12 \n\x04tune\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x18\x14H\x01R\x04tune\x88\x01\x01\x12&\n\x07profile\x18\x03 \x01(\tB\x07\xbaH\x04r\x02\x18\x14H\x02R\x07profile\x88\x01\x01\x12\"\n\x05level\x18\x04 \x01(\tB\x07\xbaH\x04r\x02\x18\nH\x03R\x05level\x88\x01\x01\x12 \n\x03\x63rf\x18\x05 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x33(\x00H\x04R\x03\x63rf\x88\x01\x01\x12*\n\x07\x62itrate\x18\x06 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\x80\xd3\x0e(dH\x05R\x07\x62itrate\x88\x01\x01\x12*\n\x07maxrate\x18\x07 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\x80\xd3\x0e(dH\x06R\x07maxrate\x88\x01\x01\x12*\n\x07\x62ufsize\x18\x08 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\x80\xa6\x1d(dH\x07R\x07\x62ufsize\x88\x01\x01\x12\'\n\x06keyint\x18\t \x01(\x05\x42\n\xbaH\x07\x1a\x05\x18\xd8\x04(\x01H\x08R\x06keyint\x88\x01\x01\x12-\n\nmin_keyint\x18\n \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18<(\x01H\tR\tminKeyint\x88\x01\x01\x12(\n\x07\x62\x66rames\x18\x0b \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x10(\x00H\nR\x07\x62\x66rames\x88\x01\x01\x12 \n\x03ref\x18\x0c \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x10(\x01H\x0bR\x03ref\x88\x01\x01\x12\x32\n\x0crc_lookahead\x18\r \x01(\x05\x42\n\xbaH\x07\x1a\x05\x18\xfa\x01(\x00H\x0cR\x0brcLookahead\x88\x01\x01\x12\'\n\x07\x61q_mode\x18\x0e \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x03(\x00H\rR\x06\x61qMode\x88\x01\x01\x12=\n\x0b\x61q_strength\x18\x0f \x01(\x01\x42\x17\xbaH\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00\x08@)\x00\x00\x00\x00\x00\x00\x00\x00H\x0eR\naqStrength\x88\x01\x01\x12H\n\x06psy_rd\x18\x10 \x01(\tB,\xbaH)r\'2%^[0-9]+(\\.[0-9]+)?:[0-9]+(\\.[0-9]+)?$H\x0fR\x05psyRd\x88\x01\x01\x42\t\n\x07_presetB\x07\n\x05_tuneB\n\n\x08_profileB\x08\n\x06_levelB\x06\n\x04_crfB\n\n\x08_bitrateB\n\n\x08_maxrateB\n\n\x08_bufsizeB\t\n\x07_keyintB\r\n\x0b_min_keyintB\n\n\x08_bframesB\x06\n\x04_refB\x0f\n\r_rc_lookaheadB\n\n\x08_aq_modeB\x0e\n\x0c_aq_strengthB\t\n\x07_psy_rdb\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.codec_h265_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ DESCRIPTOR._loaded_options = None
35
+ _globals['_H265OPTIONS'].fields_by_name['preset']._loaded_options = None
36
+ _globals['_H265OPTIONS'].fields_by_name['preset']._serialized_options = b'\272H\004r\002\030\024'
37
+ _globals['_H265OPTIONS'].fields_by_name['tune']._loaded_options = None
38
+ _globals['_H265OPTIONS'].fields_by_name['tune']._serialized_options = b'\272H\004r\002\030\024'
39
+ _globals['_H265OPTIONS'].fields_by_name['profile']._loaded_options = None
40
+ _globals['_H265OPTIONS'].fields_by_name['profile']._serialized_options = b'\272H\004r\002\030\024'
41
+ _globals['_H265OPTIONS'].fields_by_name['level']._loaded_options = None
42
+ _globals['_H265OPTIONS'].fields_by_name['level']._serialized_options = b'\272H\004r\002\030\n'
43
+ _globals['_H265OPTIONS'].fields_by_name['crf']._loaded_options = None
44
+ _globals['_H265OPTIONS'].fields_by_name['crf']._serialized_options = b'\272H\006\032\004\0303(\000'
45
+ _globals['_H265OPTIONS'].fields_by_name['bitrate']._loaded_options = None
46
+ _globals['_H265OPTIONS'].fields_by_name['bitrate']._serialized_options = b'\272H\010\032\006\030\200\323\016(d'
47
+ _globals['_H265OPTIONS'].fields_by_name['maxrate']._loaded_options = None
48
+ _globals['_H265OPTIONS'].fields_by_name['maxrate']._serialized_options = b'\272H\010\032\006\030\200\323\016(d'
49
+ _globals['_H265OPTIONS'].fields_by_name['bufsize']._loaded_options = None
50
+ _globals['_H265OPTIONS'].fields_by_name['bufsize']._serialized_options = b'\272H\010\032\006\030\200\246\035(d'
51
+ _globals['_H265OPTIONS'].fields_by_name['keyint']._loaded_options = None
52
+ _globals['_H265OPTIONS'].fields_by_name['keyint']._serialized_options = b'\272H\007\032\005\030\330\004(\001'
53
+ _globals['_H265OPTIONS'].fields_by_name['min_keyint']._loaded_options = None
54
+ _globals['_H265OPTIONS'].fields_by_name['min_keyint']._serialized_options = b'\272H\006\032\004\030<(\001'
55
+ _globals['_H265OPTIONS'].fields_by_name['bframes']._loaded_options = None
56
+ _globals['_H265OPTIONS'].fields_by_name['bframes']._serialized_options = b'\272H\006\032\004\030\020(\000'
57
+ _globals['_H265OPTIONS'].fields_by_name['ref']._loaded_options = None
58
+ _globals['_H265OPTIONS'].fields_by_name['ref']._serialized_options = b'\272H\006\032\004\030\020(\001'
59
+ _globals['_H265OPTIONS'].fields_by_name['rc_lookahead']._loaded_options = None
60
+ _globals['_H265OPTIONS'].fields_by_name['rc_lookahead']._serialized_options = b'\272H\007\032\005\030\372\001(\000'
61
+ _globals['_H265OPTIONS'].fields_by_name['aq_mode']._loaded_options = None
62
+ _globals['_H265OPTIONS'].fields_by_name['aq_mode']._serialized_options = b'\272H\006\032\004\030\003(\000'
63
+ _globals['_H265OPTIONS'].fields_by_name['aq_strength']._loaded_options = None
64
+ _globals['_H265OPTIONS'].fields_by_name['aq_strength']._serialized_options = b'\272H\024\022\022\031\000\000\000\000\000\000\010@)\000\000\000\000\000\000\000\000'
65
+ _globals['_H265OPTIONS'].fields_by_name['psy_rd']._loaded_options = None
66
+ _globals['_H265OPTIONS'].fields_by_name['psy_rd']._serialized_options = b'\272H)r\'2%^[0-9]+(\\.[0-9]+)?:[0-9]+(\\.[0-9]+)?$'
67
+ _globals['_H265OPTIONS']._serialized_start=81
68
+ _globals['_H265OPTIONS']._serialized_end=990
69
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,42 @@
1
+ from buf.validate import validate_pb2 as _validate_pb2
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import message as _message
4
+ from typing import ClassVar as _ClassVar, Optional as _Optional
5
+
6
+ DESCRIPTOR: _descriptor.FileDescriptor
7
+
8
+ class H265Options(_message.Message):
9
+ __slots__ = ("preset", "tune", "profile", "level", "crf", "bitrate", "maxrate", "bufsize", "keyint", "min_keyint", "bframes", "ref", "rc_lookahead", "aq_mode", "aq_strength", "psy_rd")
10
+ PRESET_FIELD_NUMBER: _ClassVar[int]
11
+ TUNE_FIELD_NUMBER: _ClassVar[int]
12
+ PROFILE_FIELD_NUMBER: _ClassVar[int]
13
+ LEVEL_FIELD_NUMBER: _ClassVar[int]
14
+ CRF_FIELD_NUMBER: _ClassVar[int]
15
+ BITRATE_FIELD_NUMBER: _ClassVar[int]
16
+ MAXRATE_FIELD_NUMBER: _ClassVar[int]
17
+ BUFSIZE_FIELD_NUMBER: _ClassVar[int]
18
+ KEYINT_FIELD_NUMBER: _ClassVar[int]
19
+ MIN_KEYINT_FIELD_NUMBER: _ClassVar[int]
20
+ BFRAMES_FIELD_NUMBER: _ClassVar[int]
21
+ REF_FIELD_NUMBER: _ClassVar[int]
22
+ RC_LOOKAHEAD_FIELD_NUMBER: _ClassVar[int]
23
+ AQ_MODE_FIELD_NUMBER: _ClassVar[int]
24
+ AQ_STRENGTH_FIELD_NUMBER: _ClassVar[int]
25
+ PSY_RD_FIELD_NUMBER: _ClassVar[int]
26
+ preset: str
27
+ tune: str
28
+ profile: str
29
+ level: str
30
+ crf: int
31
+ bitrate: int
32
+ maxrate: int
33
+ bufsize: int
34
+ keyint: int
35
+ min_keyint: int
36
+ bframes: int
37
+ ref: int
38
+ rc_lookahead: int
39
+ aq_mode: int
40
+ aq_strength: float
41
+ psy_rd: str
42
+ def __init__(self, preset: _Optional[str] = ..., tune: _Optional[str] = ..., profile: _Optional[str] = ..., level: _Optional[str] = ..., crf: _Optional[int] = ..., bitrate: _Optional[int] = ..., maxrate: _Optional[int] = ..., bufsize: _Optional[int] = ..., keyint: _Optional[int] = ..., min_keyint: _Optional[int] = ..., bframes: _Optional[int] = ..., ref: _Optional[int] = ..., rc_lookahead: _Optional[int] = ..., aq_mode: _Optional[int] = ..., aq_strength: _Optional[float] = ..., psy_rd: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,57 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: transcodely/v1/codec_vp9.proto
5
+ # Protobuf Python Version: 5.28.3
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 3,
17
+ '',
18
+ 'transcodely/v1/codec_vp9.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1etranscodely/v1/codec_vp9.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\"\xc1\x04\n\nVP9Options\x12(\n\x07profile\x18\x01 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x03(\x00H\x00R\x07profile\x88\x01\x01\x12&\n\x07quality\x18\x02 \x01(\tB\x07\xbaH\x04r\x02\x18\x14H\x01R\x07quality\x88\x01\x01\x12 \n\x03\x63rf\x18\x03 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18?(\x00H\x02R\x03\x63rf\x88\x01\x01\x12$\n\x05speed\x18\x04 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x08(\x00H\x03R\x05speed\x88\x01\x01\x12*\n\x07\x62itrate\x18\x05 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\xf0\x93\t(dH\x04R\x07\x62itrate\x88\x01\x01\x12\x31\n\x0bmin_bitrate\x18\x06 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\xf0\x93\t(dH\x05R\nminBitrate\x88\x01\x01\x12\x31\n\x0bmax_bitrate\x18\x07 \x01(\x05\x42\x0b\xbaH\x08\x1a\x06\x18\xf0\x93\t(dH\x06R\nmaxBitrate\x88\x01\x01\x12\'\n\x06keyint\x18\x08 \x01(\x05\x42\n\xbaH\x07\x1a\x05\x18\xd8\x04(\x01H\x07R\x06keyint\x88\x01\x01\x12\x31\n\x0ctile_columns\x18\t \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x06(\x00H\x08R\x0btileColumns\x88\x01\x01\x12+\n\ttile_rows\x18\n \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x02(\x00H\tR\x08tileRows\x88\x01\x01\x42\n\n\x08_profileB\n\n\x08_qualityB\x06\n\x04_crfB\x08\n\x06_speedB\n\n\x08_bitrateB\x0e\n\x0c_min_bitrateB\x0e\n\x0c_max_bitrateB\t\n\x07_keyintB\x0f\n\r_tile_columnsB\x0c\n\n_tile_rowsb\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.codec_vp9_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ DESCRIPTOR._loaded_options = None
35
+ _globals['_VP9OPTIONS'].fields_by_name['profile']._loaded_options = None
36
+ _globals['_VP9OPTIONS'].fields_by_name['profile']._serialized_options = b'\272H\006\032\004\030\003(\000'
37
+ _globals['_VP9OPTIONS'].fields_by_name['quality']._loaded_options = None
38
+ _globals['_VP9OPTIONS'].fields_by_name['quality']._serialized_options = b'\272H\004r\002\030\024'
39
+ _globals['_VP9OPTIONS'].fields_by_name['crf']._loaded_options = None
40
+ _globals['_VP9OPTIONS'].fields_by_name['crf']._serialized_options = b'\272H\006\032\004\030?(\000'
41
+ _globals['_VP9OPTIONS'].fields_by_name['speed']._loaded_options = None
42
+ _globals['_VP9OPTIONS'].fields_by_name['speed']._serialized_options = b'\272H\006\032\004\030\010(\000'
43
+ _globals['_VP9OPTIONS'].fields_by_name['bitrate']._loaded_options = None
44
+ _globals['_VP9OPTIONS'].fields_by_name['bitrate']._serialized_options = b'\272H\010\032\006\030\360\223\t(d'
45
+ _globals['_VP9OPTIONS'].fields_by_name['min_bitrate']._loaded_options = None
46
+ _globals['_VP9OPTIONS'].fields_by_name['min_bitrate']._serialized_options = b'\272H\010\032\006\030\360\223\t(d'
47
+ _globals['_VP9OPTIONS'].fields_by_name['max_bitrate']._loaded_options = None
48
+ _globals['_VP9OPTIONS'].fields_by_name['max_bitrate']._serialized_options = b'\272H\010\032\006\030\360\223\t(d'
49
+ _globals['_VP9OPTIONS'].fields_by_name['keyint']._loaded_options = None
50
+ _globals['_VP9OPTIONS'].fields_by_name['keyint']._serialized_options = b'\272H\007\032\005\030\330\004(\001'
51
+ _globals['_VP9OPTIONS'].fields_by_name['tile_columns']._loaded_options = None
52
+ _globals['_VP9OPTIONS'].fields_by_name['tile_columns']._serialized_options = b'\272H\006\032\004\030\006(\000'
53
+ _globals['_VP9OPTIONS'].fields_by_name['tile_rows']._loaded_options = None
54
+ _globals['_VP9OPTIONS'].fields_by_name['tile_rows']._serialized_options = b'\272H\006\032\004\030\002(\000'
55
+ _globals['_VP9OPTIONS']._serialized_start=80
56
+ _globals['_VP9OPTIONS']._serialized_end=657
57
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,30 @@
1
+ from buf.validate import validate_pb2 as _validate_pb2
2
+ from google.protobuf import descriptor as _descriptor
3
+ from google.protobuf import message as _message
4
+ from typing import ClassVar as _ClassVar, Optional as _Optional
5
+
6
+ DESCRIPTOR: _descriptor.FileDescriptor
7
+
8
+ class VP9Options(_message.Message):
9
+ __slots__ = ("profile", "quality", "crf", "speed", "bitrate", "min_bitrate", "max_bitrate", "keyint", "tile_columns", "tile_rows")
10
+ PROFILE_FIELD_NUMBER: _ClassVar[int]
11
+ QUALITY_FIELD_NUMBER: _ClassVar[int]
12
+ CRF_FIELD_NUMBER: _ClassVar[int]
13
+ SPEED_FIELD_NUMBER: _ClassVar[int]
14
+ BITRATE_FIELD_NUMBER: _ClassVar[int]
15
+ MIN_BITRATE_FIELD_NUMBER: _ClassVar[int]
16
+ MAX_BITRATE_FIELD_NUMBER: _ClassVar[int]
17
+ KEYINT_FIELD_NUMBER: _ClassVar[int]
18
+ TILE_COLUMNS_FIELD_NUMBER: _ClassVar[int]
19
+ TILE_ROWS_FIELD_NUMBER: _ClassVar[int]
20
+ profile: int
21
+ quality: str
22
+ crf: int
23
+ speed: int
24
+ bitrate: int
25
+ min_bitrate: int
26
+ max_bitrate: int
27
+ keyint: int
28
+ tile_columns: int
29
+ tile_rows: int
30
+ def __init__(self, profile: _Optional[int] = ..., quality: _Optional[str] = ..., crf: _Optional[int] = ..., speed: _Optional[int] = ..., bitrate: _Optional[int] = ..., min_bitrate: _Optional[int] = ..., max_bitrate: _Optional[int] = ..., keyint: _Optional[int] = ..., tile_columns: _Optional[int] = ..., tile_rows: _Optional[int] = ...) -> None: ...
@@ -0,0 +1,67 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: transcodely/v1/common.proto
5
+ # Protobuf Python Version: 5.28.3
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 3,
17
+ '',
18
+ 'transcodely/v1/common.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1btranscodely/v1/common.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\"m\n\x11PaginationRequest\x12\x1f\n\x05limit\x18\x01 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x64(\x00R\x05limit\x12\x16\n\x06\x63ursor\x18\x02 \x01(\tR\x06\x63ursor\x12\x1f\n\x06offset\x18\x03 \x01(\x05\x42\x07\xbaH\x04\x1a\x02(\x00R\x06offset\"t\n\x12PaginationResponse\x12\x1f\n\x0bnext_cursor\x18\x01 \x01(\tR\nnextCursor\x12-\n\x0btotal_count\x18\x02 \x01(\x03\x42\x07\xbaH\x04\"\x02(\x00H\x00R\ntotalCount\x88\x01\x01\x42\x0e\n\x0c_total_count\"\x87\x01\n\x0c\x45rrorDetails\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12I\n\x10\x66ield_violations\x18\x03 \x03(\x0b\x32\x1e.transcodely.v1.FieldViolationR\x0f\x66ieldViolations\"H\n\x0e\x46ieldViolation\x12\x14\n\x05\x66ield\x18\x01 \x01(\tR\x05\x66ield\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription*\x7f\n\nVideoCodec\x12\x1b\n\x17VIDEO_CODEC_UNSPECIFIED\x10\x00\x12\x14\n\x10VIDEO_CODEC_H264\x10\x01\x12\x14\n\x10VIDEO_CODEC_H265\x10\x02\x12\x13\n\x0fVIDEO_CODEC_VP9\x10\x03\x12\x13\n\x0fVIDEO_CODEC_AV1\x10\x04*i\n\nAudioCodec\x12\x1b\n\x17\x41UDIO_CODEC_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x41UDIO_CODEC_AAC\x10\x01\x12\x14\n\x10\x41UDIO_CODEC_OPUS\x10\x02\x12\x13\n\x0f\x41UDIO_CODEC_MP3\x10\x03*\x85\x01\n\tContainer\x12\x19\n\x15\x43ONTAINER_UNSPECIFIED\x10\x00\x12\x11\n\rCONTAINER_MP4\x10\x01\x12\x12\n\x0e\x43ONTAINER_WEBM\x10\x02\x12\x11\n\rCONTAINER_MKV\x10\x03\x12\x10\n\x0c\x43ONTAINER_TS\x10\x04\x12\x11\n\rCONTAINER_MOV\x10\x05*\xaa\x01\n\nResolution\x12\x1a\n\x16RESOLUTION_UNSPECIFIED\x10\x00\x12\x13\n\x0fRESOLUTION_480P\x10\x01\x12\x13\n\x0fRESOLUTION_720P\x10\x02\x12\x14\n\x10RESOLUTION_1080P\x10\x03\x12\x14\n\x10RESOLUTION_1440P\x10\x04\x12\x14\n\x10RESOLUTION_2160P\x10\x05\x12\x14\n\x10RESOLUTION_4320P\x10\x06*z\n\x0bQualityTier\x12\x1c\n\x18QUALITY_TIER_UNSPECIFIED\x10\x00\x12\x18\n\x14QUALITY_TIER_ECONOMY\x10\x01\x12\x19\n\x15QUALITY_TIER_STANDARD\x10\x02\x12\x18\n\x14QUALITY_TIER_PREMIUM\x10\x03*\xd5\x01\n\x0cOutputFormat\x12\x1d\n\x19OUTPUT_FORMAT_UNSPECIFIED\x10\x00\x12\x15\n\x11OUTPUT_FORMAT_MP4\x10\x01\x12\x16\n\x12OUTPUT_FORMAT_WEBM\x10\x02\x12\x15\n\x11OUTPUT_FORMAT_MKV\x10\x03\x12\x15\n\x11OUTPUT_FORMAT_MOV\x10\x04\x12\x15\n\x11OUTPUT_FORMAT_HLS\x10\x05\x12\x16\n\x12OUTPUT_FORMAT_DASH\x10\x06\x12\x1a\n\x16OUTPUT_FORMAT_ADAPTIVE\x10\x07*\xc5\x01\n\x0b\x43ontentType\x12\x1c\n\x18\x43ONTENT_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43ONTENT_TYPE_FILM\x10\x01\x12\x1a\n\x16\x43ONTENT_TYPE_ANIMATION\x10\x02\x12\x16\n\x12\x43ONTENT_TYPE_GRAIN\x10\x03\x12\x17\n\x13\x43ONTENT_TYPE_GAMING\x10\x04\x12\x17\n\x13\x43ONTENT_TYPE_SPORTS\x10\x05\x12\x1b\n\x17\x43ONTENT_TYPE_STILLIMAGE\x10\x06*\x9f\x01\n\x0e\x44\x65liveryFormat\x12\x1f\n\x1b\x44\x45LIVERY_FORMAT_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x44\x45LIVERY_FORMAT_PROGRESSIVE\x10\x01\x12\x17\n\x13\x44\x45LIVERY_FORMAT_HLS\x10\x02\x12\x18\n\x14\x44\x45LIVERY_FORMAT_DASH\x10\x03\x12\x18\n\x14\x44\x45LIVERY_FORMAT_CMAF\x10\x04*m\n\x0b\x42itrateMode\x12\x1c\n\x18\x42ITRATE_MODE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x42ITRATE_MODE_CRF\x10\x01\x12\x14\n\x10\x42ITRATE_MODE_CBR\x10\x02\x12\x14\n\x10\x42ITRATE_MODE_VBR\x10\x03\x62\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.common_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ DESCRIPTOR._loaded_options = None
35
+ _globals['_PAGINATIONREQUEST'].fields_by_name['limit']._loaded_options = None
36
+ _globals['_PAGINATIONREQUEST'].fields_by_name['limit']._serialized_options = b'\272H\006\032\004\030d(\000'
37
+ _globals['_PAGINATIONREQUEST'].fields_by_name['offset']._loaded_options = None
38
+ _globals['_PAGINATIONREQUEST'].fields_by_name['offset']._serialized_options = b'\272H\004\032\002(\000'
39
+ _globals['_PAGINATIONRESPONSE'].fields_by_name['total_count']._loaded_options = None
40
+ _globals['_PAGINATIONRESPONSE'].fields_by_name['total_count']._serialized_options = b'\272H\004\"\002(\000'
41
+ _globals['_VIDEOCODEC']._serialized_start=517
42
+ _globals['_VIDEOCODEC']._serialized_end=644
43
+ _globals['_AUDIOCODEC']._serialized_start=646
44
+ _globals['_AUDIOCODEC']._serialized_end=751
45
+ _globals['_CONTAINER']._serialized_start=754
46
+ _globals['_CONTAINER']._serialized_end=887
47
+ _globals['_RESOLUTION']._serialized_start=890
48
+ _globals['_RESOLUTION']._serialized_end=1060
49
+ _globals['_QUALITYTIER']._serialized_start=1062
50
+ _globals['_QUALITYTIER']._serialized_end=1184
51
+ _globals['_OUTPUTFORMAT']._serialized_start=1187
52
+ _globals['_OUTPUTFORMAT']._serialized_end=1400
53
+ _globals['_CONTENTTYPE']._serialized_start=1403
54
+ _globals['_CONTENTTYPE']._serialized_end=1600
55
+ _globals['_DELIVERYFORMAT']._serialized_start=1603
56
+ _globals['_DELIVERYFORMAT']._serialized_end=1762
57
+ _globals['_BITRATEMODE']._serialized_start=1764
58
+ _globals['_BITRATEMODE']._serialized_end=1873
59
+ _globals['_PAGINATIONREQUEST']._serialized_start=76
60
+ _globals['_PAGINATIONREQUEST']._serialized_end=185
61
+ _globals['_PAGINATIONRESPONSE']._serialized_start=187
62
+ _globals['_PAGINATIONRESPONSE']._serialized_end=303
63
+ _globals['_ERRORDETAILS']._serialized_start=306
64
+ _globals['_ERRORDETAILS']._serialized_end=441
65
+ _globals['_FIELDVIOLATION']._serialized_start=443
66
+ _globals['_FIELDVIOLATION']._serialized_end=515
67
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,171 @@
1
+ from buf.validate import validate_pb2 as _validate_pb2
2
+ from google.protobuf.internal import containers as _containers
3
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
4
+ from google.protobuf import descriptor as _descriptor
5
+ from google.protobuf import message as _message
6
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
7
+
8
+ DESCRIPTOR: _descriptor.FileDescriptor
9
+
10
+ class VideoCodec(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
11
+ __slots__ = ()
12
+ VIDEO_CODEC_UNSPECIFIED: _ClassVar[VideoCodec]
13
+ VIDEO_CODEC_H264: _ClassVar[VideoCodec]
14
+ VIDEO_CODEC_H265: _ClassVar[VideoCodec]
15
+ VIDEO_CODEC_VP9: _ClassVar[VideoCodec]
16
+ VIDEO_CODEC_AV1: _ClassVar[VideoCodec]
17
+
18
+ class AudioCodec(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
19
+ __slots__ = ()
20
+ AUDIO_CODEC_UNSPECIFIED: _ClassVar[AudioCodec]
21
+ AUDIO_CODEC_AAC: _ClassVar[AudioCodec]
22
+ AUDIO_CODEC_OPUS: _ClassVar[AudioCodec]
23
+ AUDIO_CODEC_MP3: _ClassVar[AudioCodec]
24
+
25
+ class Container(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
26
+ __slots__ = ()
27
+ CONTAINER_UNSPECIFIED: _ClassVar[Container]
28
+ CONTAINER_MP4: _ClassVar[Container]
29
+ CONTAINER_WEBM: _ClassVar[Container]
30
+ CONTAINER_MKV: _ClassVar[Container]
31
+ CONTAINER_TS: _ClassVar[Container]
32
+ CONTAINER_MOV: _ClassVar[Container]
33
+
34
+ class Resolution(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
35
+ __slots__ = ()
36
+ RESOLUTION_UNSPECIFIED: _ClassVar[Resolution]
37
+ RESOLUTION_480P: _ClassVar[Resolution]
38
+ RESOLUTION_720P: _ClassVar[Resolution]
39
+ RESOLUTION_1080P: _ClassVar[Resolution]
40
+ RESOLUTION_1440P: _ClassVar[Resolution]
41
+ RESOLUTION_2160P: _ClassVar[Resolution]
42
+ RESOLUTION_4320P: _ClassVar[Resolution]
43
+
44
+ class QualityTier(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
45
+ __slots__ = ()
46
+ QUALITY_TIER_UNSPECIFIED: _ClassVar[QualityTier]
47
+ QUALITY_TIER_ECONOMY: _ClassVar[QualityTier]
48
+ QUALITY_TIER_STANDARD: _ClassVar[QualityTier]
49
+ QUALITY_TIER_PREMIUM: _ClassVar[QualityTier]
50
+
51
+ class OutputFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
52
+ __slots__ = ()
53
+ OUTPUT_FORMAT_UNSPECIFIED: _ClassVar[OutputFormat]
54
+ OUTPUT_FORMAT_MP4: _ClassVar[OutputFormat]
55
+ OUTPUT_FORMAT_WEBM: _ClassVar[OutputFormat]
56
+ OUTPUT_FORMAT_MKV: _ClassVar[OutputFormat]
57
+ OUTPUT_FORMAT_MOV: _ClassVar[OutputFormat]
58
+ OUTPUT_FORMAT_HLS: _ClassVar[OutputFormat]
59
+ OUTPUT_FORMAT_DASH: _ClassVar[OutputFormat]
60
+ OUTPUT_FORMAT_ADAPTIVE: _ClassVar[OutputFormat]
61
+
62
+ class ContentType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
63
+ __slots__ = ()
64
+ CONTENT_TYPE_UNSPECIFIED: _ClassVar[ContentType]
65
+ CONTENT_TYPE_FILM: _ClassVar[ContentType]
66
+ CONTENT_TYPE_ANIMATION: _ClassVar[ContentType]
67
+ CONTENT_TYPE_GRAIN: _ClassVar[ContentType]
68
+ CONTENT_TYPE_GAMING: _ClassVar[ContentType]
69
+ CONTENT_TYPE_SPORTS: _ClassVar[ContentType]
70
+ CONTENT_TYPE_STILLIMAGE: _ClassVar[ContentType]
71
+
72
+ class DeliveryFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
73
+ __slots__ = ()
74
+ DELIVERY_FORMAT_UNSPECIFIED: _ClassVar[DeliveryFormat]
75
+ DELIVERY_FORMAT_PROGRESSIVE: _ClassVar[DeliveryFormat]
76
+ DELIVERY_FORMAT_HLS: _ClassVar[DeliveryFormat]
77
+ DELIVERY_FORMAT_DASH: _ClassVar[DeliveryFormat]
78
+ DELIVERY_FORMAT_CMAF: _ClassVar[DeliveryFormat]
79
+
80
+ class BitrateMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
81
+ __slots__ = ()
82
+ BITRATE_MODE_UNSPECIFIED: _ClassVar[BitrateMode]
83
+ BITRATE_MODE_CRF: _ClassVar[BitrateMode]
84
+ BITRATE_MODE_CBR: _ClassVar[BitrateMode]
85
+ BITRATE_MODE_VBR: _ClassVar[BitrateMode]
86
+ VIDEO_CODEC_UNSPECIFIED: VideoCodec
87
+ VIDEO_CODEC_H264: VideoCodec
88
+ VIDEO_CODEC_H265: VideoCodec
89
+ VIDEO_CODEC_VP9: VideoCodec
90
+ VIDEO_CODEC_AV1: VideoCodec
91
+ AUDIO_CODEC_UNSPECIFIED: AudioCodec
92
+ AUDIO_CODEC_AAC: AudioCodec
93
+ AUDIO_CODEC_OPUS: AudioCodec
94
+ AUDIO_CODEC_MP3: AudioCodec
95
+ CONTAINER_UNSPECIFIED: Container
96
+ CONTAINER_MP4: Container
97
+ CONTAINER_WEBM: Container
98
+ CONTAINER_MKV: Container
99
+ CONTAINER_TS: Container
100
+ CONTAINER_MOV: Container
101
+ RESOLUTION_UNSPECIFIED: Resolution
102
+ RESOLUTION_480P: Resolution
103
+ RESOLUTION_720P: Resolution
104
+ RESOLUTION_1080P: Resolution
105
+ RESOLUTION_1440P: Resolution
106
+ RESOLUTION_2160P: Resolution
107
+ RESOLUTION_4320P: Resolution
108
+ QUALITY_TIER_UNSPECIFIED: QualityTier
109
+ QUALITY_TIER_ECONOMY: QualityTier
110
+ QUALITY_TIER_STANDARD: QualityTier
111
+ QUALITY_TIER_PREMIUM: QualityTier
112
+ OUTPUT_FORMAT_UNSPECIFIED: OutputFormat
113
+ OUTPUT_FORMAT_MP4: OutputFormat
114
+ OUTPUT_FORMAT_WEBM: OutputFormat
115
+ OUTPUT_FORMAT_MKV: OutputFormat
116
+ OUTPUT_FORMAT_MOV: OutputFormat
117
+ OUTPUT_FORMAT_HLS: OutputFormat
118
+ OUTPUT_FORMAT_DASH: OutputFormat
119
+ OUTPUT_FORMAT_ADAPTIVE: OutputFormat
120
+ CONTENT_TYPE_UNSPECIFIED: ContentType
121
+ CONTENT_TYPE_FILM: ContentType
122
+ CONTENT_TYPE_ANIMATION: ContentType
123
+ CONTENT_TYPE_GRAIN: ContentType
124
+ CONTENT_TYPE_GAMING: ContentType
125
+ CONTENT_TYPE_SPORTS: ContentType
126
+ CONTENT_TYPE_STILLIMAGE: ContentType
127
+ DELIVERY_FORMAT_UNSPECIFIED: DeliveryFormat
128
+ DELIVERY_FORMAT_PROGRESSIVE: DeliveryFormat
129
+ DELIVERY_FORMAT_HLS: DeliveryFormat
130
+ DELIVERY_FORMAT_DASH: DeliveryFormat
131
+ DELIVERY_FORMAT_CMAF: DeliveryFormat
132
+ BITRATE_MODE_UNSPECIFIED: BitrateMode
133
+ BITRATE_MODE_CRF: BitrateMode
134
+ BITRATE_MODE_CBR: BitrateMode
135
+ BITRATE_MODE_VBR: BitrateMode
136
+
137
+ class PaginationRequest(_message.Message):
138
+ __slots__ = ("limit", "cursor", "offset")
139
+ LIMIT_FIELD_NUMBER: _ClassVar[int]
140
+ CURSOR_FIELD_NUMBER: _ClassVar[int]
141
+ OFFSET_FIELD_NUMBER: _ClassVar[int]
142
+ limit: int
143
+ cursor: str
144
+ offset: int
145
+ def __init__(self, limit: _Optional[int] = ..., cursor: _Optional[str] = ..., offset: _Optional[int] = ...) -> None: ...
146
+
147
+ class PaginationResponse(_message.Message):
148
+ __slots__ = ("next_cursor", "total_count")
149
+ NEXT_CURSOR_FIELD_NUMBER: _ClassVar[int]
150
+ TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
151
+ next_cursor: str
152
+ total_count: int
153
+ def __init__(self, next_cursor: _Optional[str] = ..., total_count: _Optional[int] = ...) -> None: ...
154
+
155
+ class ErrorDetails(_message.Message):
156
+ __slots__ = ("code", "message", "field_violations")
157
+ CODE_FIELD_NUMBER: _ClassVar[int]
158
+ MESSAGE_FIELD_NUMBER: _ClassVar[int]
159
+ FIELD_VIOLATIONS_FIELD_NUMBER: _ClassVar[int]
160
+ code: str
161
+ message: str
162
+ field_violations: _containers.RepeatedCompositeFieldContainer[FieldViolation]
163
+ def __init__(self, code: _Optional[str] = ..., message: _Optional[str] = ..., field_violations: _Optional[_Iterable[_Union[FieldViolation, _Mapping]]] = ...) -> None: ...
164
+
165
+ class FieldViolation(_message.Message):
166
+ __slots__ = ("field", "description")
167
+ FIELD_FIELD_NUMBER: _ClassVar[int]
168
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
169
+ field: str
170
+ description: str
171
+ def __init__(self, field: _Optional[str] = ..., description: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,56 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: transcodely/v1/content_aware.proto
5
+ # Protobuf Python Version: 5.28.3
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 3,
17
+ '',
18
+ 'transcodely/v1/content_aware.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
+ from transcodely.v1 import common_pb2 as transcodely_dot_v1_dot_common__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"transcodely/v1/content_aware.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1btranscodely/v1/common.proto\"\xb1\x02\n\rAutoABRConfig\x12\x31\n\x0cmin_variants\x18\x01 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x14(\x02H\x00R\x0bminVariants\x88\x01\x01\x12\x31\n\x0cmax_variants\x18\x02 \x01(\x05\x42\t\xbaH\x06\x1a\x04\x18\x14(\x02H\x01R\x0bmaxVariants\x88\x01\x01\x12K\n\x0emin_resolution\x18\x03 \x01(\x0e\x32\x1a.transcodely.v1.ResolutionB\x08\xbaH\x05\x82\x01\x02\x10\x01R\rminResolution\x12K\n\x0emax_resolution\x18\x04 \x01(\x0e\x32\x1a.transcodely.v1.ResolutionB\x08\xbaH\x05\x82\x01\x02\x10\x01R\rmaxResolutionB\x0f\n\r_min_variantsB\x0f\n\r_max_variants\"\xf2\x01\n\x12\x43ontentAwareConfig\x12\x41\n\x04mode\x18\x01 \x01(\x0e\x32 .transcodely.v1.ContentAwareModeB\x0b\xbaH\x08\x82\x01\x02\x10\x01\xc8\x01\x01R\x04mode\x12=\n\x0bvmaf_target\x18\x02 \x01(\x01\x42\x17\xbaH\x14\x12\x12\x19\x00\x00\x00\x00\x00\xc0X@)\x00\x00\x00\x00\x00\x80Q@H\x00R\nvmafTarget\x88\x01\x01\x12=\n\x08\x61uto_abr\x18\x03 \x01(\x0b\x32\x1d.transcodely.v1.AutoABRConfigH\x01R\x07\x61utoAbr\x88\x01\x01\x42\x0e\n\x0c_vmaf_targetB\x0b\n\t_auto_abr\"\xa7\x01\n\x0f\x43ontentAnalysis\x12)\n\x10\x63omplexity_score\x18\x01 \x01(\x01R\x0f\x63omplexityScore\x12!\n\x0cmotion_score\x18\x02 \x01(\x01R\x0bmotionScore\x12#\n\rtexture_score\x18\x03 \x01(\x01R\x0ctextureScore\x12!\n\x0c\x63ontent_type\x18\x04 \x01(\tR\x0b\x63ontentType*y\n\x10\x43ontentAwareMode\x12\"\n\x1e\x43ONTENT_AWARE_MODE_UNSPECIFIED\x10\x00\x12 \n\x1c\x43ONTENT_AWARE_MODE_PER_TITLE\x10\x01\x12\x1f\n\x1b\x43ONTENT_AWARE_MODE_AUTO_ABR\x10\x02\x62\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.content_aware_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ DESCRIPTOR._loaded_options = None
36
+ _globals['_AUTOABRCONFIG'].fields_by_name['min_variants']._loaded_options = None
37
+ _globals['_AUTOABRCONFIG'].fields_by_name['min_variants']._serialized_options = b'\272H\006\032\004\030\024(\002'
38
+ _globals['_AUTOABRCONFIG'].fields_by_name['max_variants']._loaded_options = None
39
+ _globals['_AUTOABRCONFIG'].fields_by_name['max_variants']._serialized_options = b'\272H\006\032\004\030\024(\002'
40
+ _globals['_AUTOABRCONFIG'].fields_by_name['min_resolution']._loaded_options = None
41
+ _globals['_AUTOABRCONFIG'].fields_by_name['min_resolution']._serialized_options = b'\272H\005\202\001\002\020\001'
42
+ _globals['_AUTOABRCONFIG'].fields_by_name['max_resolution']._loaded_options = None
43
+ _globals['_AUTOABRCONFIG'].fields_by_name['max_resolution']._serialized_options = b'\272H\005\202\001\002\020\001'
44
+ _globals['_CONTENTAWARECONFIG'].fields_by_name['mode']._loaded_options = None
45
+ _globals['_CONTENTAWARECONFIG'].fields_by_name['mode']._serialized_options = b'\272H\010\202\001\002\020\001\310\001\001'
46
+ _globals['_CONTENTAWARECONFIG'].fields_by_name['vmaf_target']._loaded_options = None
47
+ _globals['_CONTENTAWARECONFIG'].fields_by_name['vmaf_target']._serialized_options = b'\272H\024\022\022\031\000\000\000\000\000\300X@)\000\000\000\000\000\200Q@'
48
+ _globals['_CONTENTAWAREMODE']._serialized_start=835
49
+ _globals['_CONTENTAWAREMODE']._serialized_end=956
50
+ _globals['_AUTOABRCONFIG']._serialized_start=113
51
+ _globals['_AUTOABRCONFIG']._serialized_end=418
52
+ _globals['_CONTENTAWARECONFIG']._serialized_start=421
53
+ _globals['_CONTENTAWARECONFIG']._serialized_end=663
54
+ _globals['_CONTENTANALYSIS']._serialized_start=666
55
+ _globals['_CONTENTANALYSIS']._serialized_end=833
56
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,51 @@
1
+ from buf.validate import validate_pb2 as _validate_pb2
2
+ from transcodely.v1 import common_pb2 as _common_pb2
3
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
4
+ from google.protobuf import descriptor as _descriptor
5
+ from google.protobuf import message as _message
6
+ from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
7
+
8
+ DESCRIPTOR: _descriptor.FileDescriptor
9
+
10
+ class ContentAwareMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
11
+ __slots__ = ()
12
+ CONTENT_AWARE_MODE_UNSPECIFIED: _ClassVar[ContentAwareMode]
13
+ CONTENT_AWARE_MODE_PER_TITLE: _ClassVar[ContentAwareMode]
14
+ CONTENT_AWARE_MODE_AUTO_ABR: _ClassVar[ContentAwareMode]
15
+ CONTENT_AWARE_MODE_UNSPECIFIED: ContentAwareMode
16
+ CONTENT_AWARE_MODE_PER_TITLE: ContentAwareMode
17
+ CONTENT_AWARE_MODE_AUTO_ABR: ContentAwareMode
18
+
19
+ class AutoABRConfig(_message.Message):
20
+ __slots__ = ("min_variants", "max_variants", "min_resolution", "max_resolution")
21
+ MIN_VARIANTS_FIELD_NUMBER: _ClassVar[int]
22
+ MAX_VARIANTS_FIELD_NUMBER: _ClassVar[int]
23
+ MIN_RESOLUTION_FIELD_NUMBER: _ClassVar[int]
24
+ MAX_RESOLUTION_FIELD_NUMBER: _ClassVar[int]
25
+ min_variants: int
26
+ max_variants: int
27
+ min_resolution: _common_pb2.Resolution
28
+ max_resolution: _common_pb2.Resolution
29
+ def __init__(self, min_variants: _Optional[int] = ..., max_variants: _Optional[int] = ..., min_resolution: _Optional[_Union[_common_pb2.Resolution, str]] = ..., max_resolution: _Optional[_Union[_common_pb2.Resolution, str]] = ...) -> None: ...
30
+
31
+ class ContentAwareConfig(_message.Message):
32
+ __slots__ = ("mode", "vmaf_target", "auto_abr")
33
+ MODE_FIELD_NUMBER: _ClassVar[int]
34
+ VMAF_TARGET_FIELD_NUMBER: _ClassVar[int]
35
+ AUTO_ABR_FIELD_NUMBER: _ClassVar[int]
36
+ mode: ContentAwareMode
37
+ vmaf_target: float
38
+ auto_abr: AutoABRConfig
39
+ def __init__(self, mode: _Optional[_Union[ContentAwareMode, str]] = ..., vmaf_target: _Optional[float] = ..., auto_abr: _Optional[_Union[AutoABRConfig, _Mapping]] = ...) -> None: ...
40
+
41
+ class ContentAnalysis(_message.Message):
42
+ __slots__ = ("complexity_score", "motion_score", "texture_score", "content_type")
43
+ COMPLEXITY_SCORE_FIELD_NUMBER: _ClassVar[int]
44
+ MOTION_SCORE_FIELD_NUMBER: _ClassVar[int]
45
+ TEXTURE_SCORE_FIELD_NUMBER: _ClassVar[int]
46
+ CONTENT_TYPE_FIELD_NUMBER: _ClassVar[int]
47
+ complexity_score: float
48
+ motion_score: float
49
+ texture_score: float
50
+ content_type: str
51
+ def __init__(self, complexity_score: _Optional[float] = ..., motion_score: _Optional[float] = ..., texture_score: _Optional[float] = ..., content_type: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,65 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: transcodely/v1/drm.proto
5
+ # Protobuf Python Version: 5.28.3
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 3,
17
+ '',
18
+ 'transcodely/v1/drm.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18transcodely/v1/drm.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\"\xfd\x02\n\nBYOKConfig\x12\x32\n\x06key_id\x18\x01 \x01(\tB\x1b\xbaH\x18r\x13\x32\x11^[0-9a-fA-F]{32}$\xc8\x01\x01R\x05keyId\x12-\n\x03key\x18\x02 \x01(\tB\x1b\xbaH\x18r\x13\x32\x11^[0-9a-fA-F]{32}$\xc8\x01\x01R\x03key\x12(\n\rpssh_widevine\x18\x03 \x01(\tH\x00R\x0cpsshWidevine\x88\x01\x01\x12*\n\x0epssh_playready\x18\x04 \x01(\tH\x01R\rpsshPlayready\x88\x01\x01\x12>\n\x0b\x66\x61irplay_iv\x18\x05 \x01(\tB\x18\xbaH\x15r\x13\x32\x11^[0-9a-fA-F]{32}$H\x02R\nfairplayIv\x88\x01\x01\x12\x30\n\x0c\x66\x61irplay_uri\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x10H\x03R\x0b\x66\x61irplayUri\x88\x01\x01\x42\x10\n\x0e_pssh_widevineB\x11\n\x0f_pssh_playreadyB\x0e\n\x0c_fairplay_ivB\x0f\n\r_fairplay_uri\"\xc9\x01\n\x0fKeyServerConfig\x12<\n\x12license_server_url\x18\x01 \x01(\tB\x0e\xbaH\x0br\x06\x18\x80\x10\x88\x01\x01\xc8\x01\x01R\x10licenseServerUrl\x12,\n\nauth_token\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x10H\x00R\tauthToken\x88\x01\x01\x12,\n\ncontent_id\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x02H\x01R\tcontentId\x88\x01\x01\x42\r\n\x0b_auth_tokenB\r\n\x0b_content_id\"\x88\x03\n\tDRMConfig\x12?\n\x07systems\x18\x01 \x03(\x0e\x32\x19.transcodely.v1.DRMSystemB\n\xbaH\x07\x92\x01\x04\x08\x01\x10\x03R\x07systems\x12\x45\n\x06scheme\x18\x02 \x01(\x0e\x32 .transcodely.v1.EncryptionSchemeB\x0b\xbaH\x08\x82\x01\x02\x10\x01\xc8\x01\x01R\x06scheme\x12\x33\n\x04\x62yok\x18\x03 \x01(\x0b\x32\x1a.transcodely.v1.BYOKConfigH\x00R\x04\x62yok\x88\x01\x01\x12\x43\n\nkey_server\x18\x04 \x01(\x0b\x32\x1f.transcodely.v1.KeyServerConfigH\x01R\tkeyServer\x88\x01\x01\x12J\n\x12\x63lear_lead_seconds\x18\x05 \x01(\x01\x42\x17\xbaH\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00>@)\x00\x00\x00\x00\x00\x00\x00\x00H\x02R\x10\x63learLeadSeconds\x88\x01\x01\x42\x07\n\x05_byokB\r\n\x0b_key_serverB\x15\n\x13_clear_lead_seconds*s\n\tDRMSystem\x12\x1a\n\x16\x44RM_SYSTEM_UNSPECIFIED\x10\x00\x12\x17\n\x13\x44RM_SYSTEM_WIDEVINE\x10\x01\x12\x17\n\x13\x44RM_SYSTEM_FAIRPLAY\x10\x02\x12\x18\n\x14\x44RM_SYSTEM_PLAYREADY\x10\x03*m\n\x10\x45ncryptionScheme\x12!\n\x1d\x45NCRYPTION_SCHEME_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x45NCRYPTION_SCHEME_CENC\x10\x01\x12\x1a\n\x16\x45NCRYPTION_SCHEME_CBCS\x10\x02\x62\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.drm_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ DESCRIPTOR._loaded_options = None
35
+ _globals['_BYOKCONFIG'].fields_by_name['key_id']._loaded_options = None
36
+ _globals['_BYOKCONFIG'].fields_by_name['key_id']._serialized_options = b'\272H\030r\0232\021^[0-9a-fA-F]{32}$\310\001\001'
37
+ _globals['_BYOKCONFIG'].fields_by_name['key']._loaded_options = None
38
+ _globals['_BYOKCONFIG'].fields_by_name['key']._serialized_options = b'\272H\030r\0232\021^[0-9a-fA-F]{32}$\310\001\001'
39
+ _globals['_BYOKCONFIG'].fields_by_name['fairplay_iv']._loaded_options = None
40
+ _globals['_BYOKCONFIG'].fields_by_name['fairplay_iv']._serialized_options = b'\272H\025r\0232\021^[0-9a-fA-F]{32}$'
41
+ _globals['_BYOKCONFIG'].fields_by_name['fairplay_uri']._loaded_options = None
42
+ _globals['_BYOKCONFIG'].fields_by_name['fairplay_uri']._serialized_options = b'\272H\005r\003\030\200\020'
43
+ _globals['_KEYSERVERCONFIG'].fields_by_name['license_server_url']._loaded_options = None
44
+ _globals['_KEYSERVERCONFIG'].fields_by_name['license_server_url']._serialized_options = b'\272H\013r\006\030\200\020\210\001\001\310\001\001'
45
+ _globals['_KEYSERVERCONFIG'].fields_by_name['auth_token']._loaded_options = None
46
+ _globals['_KEYSERVERCONFIG'].fields_by_name['auth_token']._serialized_options = b'\272H\005r\003\030\200\020'
47
+ _globals['_KEYSERVERCONFIG'].fields_by_name['content_id']._loaded_options = None
48
+ _globals['_KEYSERVERCONFIG'].fields_by_name['content_id']._serialized_options = b'\272H\005r\003\030\200\002'
49
+ _globals['_DRMCONFIG'].fields_by_name['systems']._loaded_options = None
50
+ _globals['_DRMCONFIG'].fields_by_name['systems']._serialized_options = b'\272H\007\222\001\004\010\001\020\003'
51
+ _globals['_DRMCONFIG'].fields_by_name['scheme']._loaded_options = None
52
+ _globals['_DRMCONFIG'].fields_by_name['scheme']._serialized_options = b'\272H\010\202\001\002\020\001\310\001\001'
53
+ _globals['_DRMCONFIG'].fields_by_name['clear_lead_seconds']._loaded_options = None
54
+ _globals['_DRMCONFIG'].fields_by_name['clear_lead_seconds']._serialized_options = b'\272H\024\022\022\031\000\000\000\000\000\000>@)\000\000\000\000\000\000\000\000'
55
+ _globals['_DRMSYSTEM']._serialized_start=1056
56
+ _globals['_DRMSYSTEM']._serialized_end=1171
57
+ _globals['_ENCRYPTIONSCHEME']._serialized_start=1173
58
+ _globals['_ENCRYPTIONSCHEME']._serialized_end=1282
59
+ _globals['_BYOKCONFIG']._serialized_start=74
60
+ _globals['_BYOKCONFIG']._serialized_end=455
61
+ _globals['_KEYSERVERCONFIG']._serialized_start=458
62
+ _globals['_KEYSERVERCONFIG']._serialized_end=659
63
+ _globals['_DRMCONFIG']._serialized_start=662
64
+ _globals['_DRMCONFIG']._serialized_end=1054
65
+ # @@protoc_insertion_point(module_scope)