@@ -1071,6 +1071,15 @@ components:
1071
1071
description : ID of the asset from which this asset was created.
1072
1072
creatorId :
1073
1073
$ref : " #/components/schemas/creator-id"
1074
+ profiles :
1075
+ type : array
1076
+ description : |
1077
+ Requested profiles for the asset to be transcoded into. Currently
1078
+ only supported for livestream recording assets, configured through
1079
+ the `stream.recordingSpec` field. If this is not present it means
1080
+ that default profiles were derived from the input metadata.
1081
+ items :
1082
+ $ref : " #/components/schemas/ffmpeg-profile"
1074
1083
storage :
1075
1084
additionalProperties : false
1076
1085
properties :
@@ -2791,6 +2800,21 @@ paths:
2791
2800
},
2792
2801
],
2793
2802
record: false,
2803
+ recordingSpec: {
2804
+ profiles: [
2805
+ {
2806
+ width: 1280,
2807
+ name: "720p",
2808
+ height: 489382,
2809
+ bitrate: 3000000,
2810
+ fps: 30,
2811
+ fpsDen: 1,
2812
+ quality: 23,
2813
+ gop: "2",
2814
+ profile: Profile.H264Baseline,
2815
+ },
2816
+ ],
2817
+ },
2794
2818
multistream: {
2795
2819
targets: [
2796
2820
{
@@ -2861,6 +2885,21 @@ paths:
2861
2885
},
2862
2886
},
2863
2887
Record: livepeergo.Bool(false),
2888
+ RecordingSpec: &components.RecordingSpec{
2889
+ Profiles: []components.FfmpegProfile{
2890
+ components.FfmpegProfile{
2891
+ Width: 1280,
2892
+ Name: "720p",
2893
+ Height: 489382,
2894
+ Bitrate: 3000000,
2895
+ Fps: 30,
2896
+ FpsDen: livepeergo.Int64(1),
2897
+ Quality: livepeergo.Int64(23),
2898
+ Gop: livepeergo.String("2"),
2899
+ Profile: components.ProfileH264Baseline.ToPointer(),
2900
+ },
2901
+ },
2902
+ },
2864
2903
Multistream: &components.Multistream{
2865
2904
Targets: []components.Target{
2866
2905
components.Target{
@@ -2929,6 +2968,21 @@ paths:
2929
2968
),
2930
2969
],
2931
2970
record=False,
2971
+ recording_spec=components.RecordingSpec(
2972
+ profiles=[
2973
+ components.FfmpegProfile(
2974
+ width=1280,
2975
+ name='720p',
2976
+ height=489382,
2977
+ bitrate=3000000,
2978
+ fps=30,
2979
+ fps_den=1,
2980
+ quality=23,
2981
+ gop='2',
2982
+ profile=components.Profile.H264_BASELINE,
2983
+ ),
2984
+ ],
2985
+ ),
2932
2986
multistream=components.Multistream(
2933
2987
targets=[
2934
2988
components.Target(
@@ -4122,6 +4176,7 @@ paths:
4122
4176
async function run() {
4123
4177
const result = await livepeer.webhook.create({
4124
4178
name: "test_webhook",
4179
+ projectId: "aac12556-4d65-4d34-9fb6-d1f0985eb0a9",
4125
4180
events: [
4126
4181
Events.StreamStarted,
4127
4182
Events.StreamIdle,
@@ -4154,6 +4209,7 @@ paths:
4154
4209
)
4155
4210
request := components.WebhookInput{
4156
4211
Name: "test_webhook",
4212
+ ProjectID: livepeergo.String("aac12556-4d65-4d34-9fb6-d1f0985eb0a9"),
4157
4213
Events: []components.Events{
4158
4214
components.EventsStreamStarted,
4159
4215
components.EventsStreamIdle,
@@ -4184,6 +4240,7 @@ paths:
4184
4240
4185
4241
res = s.webhook.create(request=components.WebhookInput(
4186
4242
name='test_webhook',
4243
+ project_id='aac12556-4d65-4d34-9fb6-d1f0985eb0a9',
4187
4244
events=[
4188
4245
components.Events.STREAM_STARTED,
4189
4246
components.Events.STREAM_IDLE,
@@ -4327,6 +4384,7 @@ paths:
4327
4384
async function run() {
4328
4385
const result = await livepeer.webhook.update("<value>", {
4329
4386
name: "test_webhook",
4387
+ projectId: "aac12556-4d65-4d34-9fb6-d1f0985eb0a9",
4330
4388
events: [
4331
4389
Events.StreamStarted,
4332
4390
Events.StreamIdle,
@@ -4361,6 +4419,7 @@ paths:
4361
4419
4362
4420
webhook := components.WebhookInput{
4363
4421
Name: "test_webhook",
4422
+ ProjectID: livepeergo.String("aac12556-4d65-4d34-9fb6-d1f0985eb0a9"),
4364
4423
Events: []components.Events{
4365
4424
components.EventsStreamStarted,
4366
4425
components.EventsStreamIdle,
@@ -4391,6 +4450,7 @@ paths:
4391
4450
4392
4451
res = s.webhook.update(id='<value>', webhook=components.WebhookInput(
4393
4452
name='test_webhook',
4453
+ project_id='aac12556-4d65-4d34-9fb6-d1f0985eb0a9',
4394
4454
events=[
4395
4455
components.Events.STREAM_STARTED,
4396
4456
components.Events.STREAM_IDLE,
0 commit comments