diff options
Diffstat (limited to 'client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html | 52 |
1 files changed, 23 insertions, 29 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html index a51909865..5669b81ce 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html | |||
@@ -13,7 +13,9 @@ | |||
13 | </span> | 13 | </span> |
14 | 14 | ||
15 | <div class="callout-container"> | 15 | <div class="callout-container"> |
16 | <a class="callout-link" target="_blank" rel="noopener noreferrer" href="https://docs.joinpeertube.org/#/admin-configuration?id=transcoding" i18n>Read guidelines</a> | 16 | <a class="callout-link" target="_blank" rel="noopener noreferrer" href="https://docs.joinpeertube.org/#/admin-configuration?id=transcoding" i18n> |
17 | Read guidelines | ||
18 | </a> | ||
17 | </div> | 19 | </div> |
18 | </div> | 20 | </div> |
19 | </div> | 21 | </div> |
@@ -43,7 +45,7 @@ | |||
43 | <div class="callout callout-light pt-2 pb-0"> | 45 | <div class="callout callout-light pt-2 pb-0"> |
44 | <label i18n>Input formats</label> | 46 | <label i18n>Input formats</label> |
45 | 47 | ||
46 | <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }"> | 48 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> |
47 | <my-peertube-checkbox | 49 | <my-peertube-checkbox |
48 | inputName="transcodingAllowAdditionalExtensions" formControlName="allowAdditionalExtensions" | 50 | inputName="transcodingAllowAdditionalExtensions" formControlName="allowAdditionalExtensions" |
49 | i18n-labelText labelText="Allow additional extensions" | 51 | i18n-labelText labelText="Allow additional extensions" |
@@ -54,7 +56,7 @@ | |||
54 | </my-peertube-checkbox> | 56 | </my-peertube-checkbox> |
55 | </div> | 57 | </div> |
56 | 58 | ||
57 | <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }"> | 59 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> |
58 | <my-peertube-checkbox | 60 | <my-peertube-checkbox |
59 | inputName="transcodingAllowAudioFiles" formControlName="allowAudioFiles" | 61 | inputName="transcodingAllowAudioFiles" formControlName="allowAudioFiles" |
60 | i18n-labelText labelText="Allow audio files upload" | 62 | i18n-labelText labelText="Allow audio files upload" |
@@ -71,18 +73,14 @@ | |||
71 | <label i18n>Output formats</label> | 73 | <label i18n>Output formats</label> |
72 | 74 | ||
73 | <ng-container formGroupName="webtorrent"> | 75 | <ng-container formGroupName="webtorrent"> |
74 | <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }"> | 76 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> |
75 | <my-peertube-checkbox | 77 | <my-peertube-checkbox |
76 | inputName="transcodingWebTorrentEnabled" formControlName="enabled" | 78 | inputName="transcodingWebTorrentEnabled" formControlName="enabled" |
77 | i18n-labelText labelText="WebTorrent enabled" | 79 | i18n-labelText labelText="WebTorrent enabled" |
78 | > | 80 | > |
79 | <ng-template ptTemplate="help"> | 81 | <ng-template ptTemplate="help"> |
80 | <ng-container i18n> | 82 | <ng-container> |
81 | <p>If you also enabled HLS support, it will multiply videos storage by 2</p> | 83 | <p i18n>If you also enabled HLS support, it will multiply videos storage by 2</p> |
82 | |||
83 | <br /> | ||
84 | |||
85 | <strong>If disabled, breaks federation with PeerTube instances < 2.1</strong> | ||
86 | </ng-container> | 84 | </ng-container> |
87 | </ng-template> | 85 | </ng-template> |
88 | </my-peertube-checkbox> | 86 | </my-peertube-checkbox> |
@@ -90,7 +88,7 @@ | |||
90 | </ng-container> | 88 | </ng-container> |
91 | 89 | ||
92 | <ng-container formGroupName="hls"> | 90 | <ng-container formGroupName="hls"> |
93 | <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }"> | 91 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> |
94 | <my-peertube-checkbox | 92 | <my-peertube-checkbox |
95 | inputName="transcodingHlsEnabled" formControlName="enabled" | 93 | inputName="transcodingHlsEnabled" formControlName="enabled" |
96 | i18n-labelText labelText="HLS with P2P support enabled" | 94 | i18n-labelText labelText="HLS with P2P support enabled" |
@@ -114,7 +112,7 @@ | |||
114 | </div> | 112 | </div> |
115 | </ng-container> | 113 | </ng-container> |
116 | 114 | ||
117 | <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }"> | 115 | <div class="form-group" [ngClass]="getTranscodingDisabledClass()"> |
118 | <label i18n>Resolutions to generate per enabled format</label> | 116 | <label i18n>Resolutions to generate per enabled format</label> |
119 | 117 | ||
120 | <div class="ml-2 mt-2 d-flex flex-column"> | 118 | <div class="ml-2 mt-2 d-flex flex-column"> |
@@ -142,11 +140,16 @@ | |||
142 | </my-peertube-checkbox> | 140 | </my-peertube-checkbox> |
143 | </div> | 141 | </div> |
144 | 142 | ||
145 | <div class="form-group mt-4" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }"> | 143 | <div class="form-group mt-4" [ngClass]="getTranscodingDisabledClass()"> |
146 | <label i18n for="transcodingThreads">Transcoding threads</label> | 144 | <label i18n for="transcodingThreads">Transcoding threads</label> |
147 | <span class="text-muted ml-1"> | 145 | <span class="text-muted ml-1"> |
148 | <ng-container *ngIf="getTotalTranscodingThreads().atMost" i18n>will claim at most {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }} with live transcoding</ng-container> | 146 | <ng-container *ngIf="getTotalTranscodingThreads().atMost" i18n> |
149 | <ng-container *ngIf="!getTotalTranscodingThreads().atMost" i18n>will claim at least {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }} with live transcoding</ng-container> | 147 | will claim at most {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }} with live transcoding |
148 | </ng-container> | ||
149 | |||
150 | <ng-container *ngIf="!getTotalTranscodingThreads().atMost" i18n> | ||
151 | will claim at least {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }} with live transcoding | ||
152 | </ng-container> | ||
150 | </span> | 153 | </span> |
151 | 154 | ||
152 | <my-select-custom-value | 155 | <my-select-custom-value |
@@ -159,11 +162,9 @@ | |||
159 | <div *ngIf="formErrors.transcoding.threads" class="form-error">{{ formErrors.transcoding.threads }}</div> | 162 | <div *ngIf="formErrors.transcoding.threads" class="form-error">{{ formErrors.transcoding.threads }}</div> |
160 | </div> | 163 | </div> |
161 | 164 | ||
162 | <div class="form-group mt-4" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }"> | 165 | <div class="form-group mt-4" [ngClass]="getTranscodingDisabledClass()"> |
163 | <label i18n for="transcodingConcurrency">Transcoding jobs concurrency</label> | 166 | <label i18n for="transcodingConcurrency">Transcoding jobs concurrency</label> |
164 | <span class="text-muted ml-1"> | 167 | <span class="text-muted ml-1" i18n>allows to transcode multiple files in parallel. ⚠️ Requires a PeerTube restart</span> |
165 | <span i18n>allows to transcode multiple files in parallel. ⚠️ Requires a PeerTube restart.</span> | ||
166 | </span> | ||
167 | 168 | ||
168 | <div class="number-with-unit"> | 169 | <div class="number-with-unit"> |
169 | <input type="number" name="transcodingConcurrency" formControlName="concurrency" /> | 170 | <input type="number" name="transcodingConcurrency" formControlName="concurrency" /> |
@@ -173,7 +174,7 @@ | |||
173 | <div *ngIf="formErrors.transcoding.concurrency" class="form-error">{{ formErrors.transcoding.concurrency }}</div> | 174 | <div *ngIf="formErrors.transcoding.concurrency" class="form-error">{{ formErrors.transcoding.concurrency }}</div> |
174 | </div> | 175 | </div> |
175 | 176 | ||
176 | <div class="form-group mt-4" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }"> | 177 | <div class="form-group mt-4" [ngClass]="getTranscodingDisabledClass()"> |
177 | <label i18n for="transcodingProfile">Transcoding profile</label> | 178 | <label i18n for="transcodingProfile">Transcoding profile</label> |
178 | <span class="text-muted ml-1" i18n>new transcoding profiles can be added by PeerTube plugins</span> | 179 | <span class="text-muted ml-1" i18n>new transcoding profiles can be added by PeerTube plugins</span> |
179 | 180 | ||
@@ -182,15 +183,8 @@ | |||
182 | formControlName="profile" | 183 | formControlName="profile" |
183 | [items]="getAvailableTranscodingProfile()" | 184 | [items]="getAvailableTranscodingProfile()" |
184 | [clearable]="false" | 185 | [clearable]="false" |
185 | > | 186 | ></my-select-options> |
186 | <ng-template ng-option-tmp let-item="item" let-index="index"> | 187 | |
187 | {{ item }} | ||
188 | <ng-container *ngIf="item === 'default'"> | ||
189 | <br> | ||
190 | <span class="text-muted" i18n>x264, targeting maximum device compatibility</span> | ||
191 | </ng-container> | ||
192 | </ng-template> | ||
193 | </my-select-options> | ||
194 | <div *ngIf="formErrors.transcoding.profile" class="form-error">{{ formErrors.transcoding.profile }}</div> | 188 | <div *ngIf="formErrors.transcoding.profile" class="form-error">{{ formErrors.transcoding.profile }}</div> |
195 | </div> | 189 | </div> |
196 | 190 | ||