1 <ng-container [formGroup]=
"form">
3 <div class=
"form-row mt-5">
4 <div class=
"form-group col-12 col-lg-4 col-xl-3">
5 <div i18n
class=
"inner-form-title">LIVE
</div>
6 <div i18n
class=
"inner-form-description">
7 Enable users of your instance to stream live.
11 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
13 <ng-container formGroupName=
"live">
15 <div class=
"form-group">
16 <my-peertube-checkbox inputName=
"liveEnabled" formControlName=
"enabled">
17 <ng-template ptTemplate=
"label">
18 <ng-container i18n
>Allow live streaming
</ng-container>
21 <ng-container ngProjectAs=
"description">
22 <div i18n
>⚠️ Enabling live streaming requires trust in your users and extra moderation work
</div>
23 <div i18n
>If enabled, your server needs to accept incoming TCP traffic on port {{ getLiveRTMPPort() }}
</div>
26 <ng-container ngProjectAs=
"extra">
28 <div class=
"form-group" [ngClass]=
"getDisabledLiveClass()">
30 inputName=
"liveAllowReplay" formControlName=
"allowReplay"
31 i18n-labelText
labelText=
"Allow your users to automatically publish a replay of their live"
33 </my-peertube-checkbox>
36 <div class=
"form-group" formGroupName=
"latencySetting" [ngClass]=
"getDisabledLiveClass()">
38 inputName=
"liveLatencySettingEnabled" formControlName=
"enabled"
39 i18n-labelText
labelText=
"Allow your users to change live latency"
41 <ng-container ngProjectAs=
"description" i18n
>
42 Small latency disables P2P and high latency can increase P2P ratio
45 </my-peertube-checkbox>
48 <div class=
"form-group" [ngClass]=
"getDisabledLiveClass()">
49 <label i18n
for=
"liveMaxInstanceLives">
50 Max simultaneous lives created on your instance
<span class=
"muted">(-
1 for "unlimited")
</span>
53 <div class=
"number-with-unit">
54 <input type=
"number" name=
"liveMaxInstanceLives" formControlName=
"maxInstanceLives" />
55 <span i18n
>{form.value['live']['maxInstanceLives'], plural, =
1 {live} other {lives}}
</span>
58 <div *
ngIf=
"formErrors.live.maxInstanceLives" class=
"form-error">{{ formErrors.live.maxInstanceLives }}
</div>
61 <div class=
"form-group" [ngClass]=
"getDisabledLiveClass()">
62 <label i18n
for=
"liveMaxUserLives">
63 Max simultaneous lives created per user
<span class=
"muted">(-
1 for "unlimited")
</span>
66 <div class=
"number-with-unit">
67 <input type=
"number" name=
"liveMaxUserLives" formControlName=
"maxUserLives" />
68 <span i18n
>{form.value['live']['maxUserLives'], plural, =
1 {live} other {lives}}
</span>
71 <div *
ngIf=
"formErrors.live.maxUserLives" class=
"form-error">{{ formErrors.live.maxUserLives }}
</div>
74 <div class=
"form-group" [ngClass]=
"getDisabledLiveClass()">
75 <label i18n
for=
"liveMaxDuration">Max live duration
</label>
78 labelForId=
"liveMaxDuration" [items]=
"liveMaxDurationOptions" formControlName=
"maxDuration"
79 bindLabel=
"label" bindValue=
"value" [clearable]=
"false" [searchable]=
"true"
82 <div *
ngIf=
"formErrors.live.maxDuration" class=
"form-error">{{ formErrors.live.maxDuration }}
</div>
86 </my-peertube-checkbox>
92 <div class=
"form-row"> <!-- transcoding live streams grid -->
93 <div class=
"form-group col-12 col-lg-4 col-xl-3">
94 <div i18n
class=
"inner-form-title">TRANSCODING
</div>
95 <div i18n
class=
"inner-form-description">
96 Same as VOD transcoding, transcoding live streams so that they are in a streamable form that any device can play. Requires a beefy CPU, and then some.
100 <div class=
"form-group form-group-right col-12 col-lg-8 col-xl-9">
102 <ng-container formGroupName=
"live">
103 <ng-container formGroupName=
"transcoding">
105 <div class=
"form-group" [ngClass]=
"getDisabledLiveClass()">
106 <my-peertube-checkbox
107 inputName=
"liveTranscodingEnabled" formControlName=
"enabled"
109 <ng-template ptTemplate=
"label">
110 <ng-container i18n
>Transcoding enabled for live streams
</ng-container>
112 </my-peertube-checkbox>
115 <div class=
"form-group" [ngClass]=
"getDisabledLiveTranscodingClass()">
116 <label i18n
for=
"liveTranscodingThreads">Live resolutions to generate
</label>
118 <div class=
"ml-2 mt-2 d-flex flex-column">
119 <ng-container formGroupName=
"resolutions">
121 <div class=
"form-group" *
ngFor=
"let resolution of liveResolutions">
122 <my-peertube-checkbox
123 [inputName]=
"getResolutionKey(resolution.id)" [formControlName]=
"resolution.id"
124 labelText=
"{{resolution.label}}"
126 <ng-template *
ngIf=
"resolution.description" ptTemplate=
"help">
127 <div [innerHTML]=
"resolution.description"></div>
129 </my-peertube-checkbox>
136 <div class=
"form-group" [ngClass]=
"getDisabledLiveTranscodingClass()">
137 <label i18n
for=
"liveTranscodingThreads">Live transcoding threads
</label>
139 <span class=
"muted ml-1">
140 <ng-container *
ngIf=
"getTotalTranscodingThreads().atMost" i18n
>
141 will claim at most {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }} with VOD transcoding
144 <ng-container *
ngIf=
"!getTotalTranscodingThreads().atMost" i18n
>
145 will claim at least {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }} with VOD transcoding
149 <my-select-custom-value
150 id=
"liveTranscodingThreads"
151 [items]=
"transcodingThreadOptions"
152 formControlName=
"threads"
154 ></my-select-custom-value>
155 <div *
ngIf=
"formErrors.live.transcoding.threads" class=
"form-error">{{ formErrors.live.transcoding.threads }}
</div>
158 <div class=
"form-group mt-4" [ngClass]=
"getDisabledLiveTranscodingClass()">
159 <label i18n
for=
"liveTranscodingProfile">Live transcoding profile
</label>
160 <span class=
"muted ml-1" i18n
>new live transcoding profiles can be added by PeerTube plugins
</span>
163 id=
"liveTranscodingProfile"
164 formControlName=
"profile"
165 [items]=
"transcodingProfiles"
170 <div *
ngIf=
"formErrors.live.transcoding.profile" class=
"form-error">{{ formErrors.live.transcoding.profile }}
</div>