</my-peertube-checkbox>
</div>
- </ng-container>
-
- </div>
- </div>
-
- <div class="form-row mt-5"> <!-- transcoding live streams grid -->
- <div class="form-group col-12 col-lg-4 col-xl-3">
- <div i18n class="inner-form-title">TRANSCODING LIVE STREAMS</div>
- <div i18n class="inner-form-description">
- Same as above, transcoding live streams so that they are in a streamable form that any device can play. Requires a beefy CPU, and then some.
- </div>
- </div>
-
- <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
-
- <ng-container formGroupName="live">
- <ng-container formGroupName="transcoding">
-
- <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isLiveEnabled() }">
- <my-peertube-checkbox
- inputName="liveTranscodingEnabled" formControlName="enabled"
- >
- <ng-template ptTemplate="label">
- <ng-container i18n>Transcoding enabled for live streams</ng-container>
- </ng-template>
- </my-peertube-checkbox>
- </div>
-
- <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isLiveEnabled() || !isLiveTranscodingEnabled() }">
- <label i18n for="liveTranscodingThreads">Live resolutions to generate</label>
-
- <div class="ml-2 mt-2 d-flex flex-column">
- <ng-container formGroupName="resolutions">
- <div class="form-group" *ngFor="let resolution of liveResolutions">
- <my-peertube-checkbox
- [inputName]="getResolutionKey(resolution.id)" [formControlName]="resolution.id"
- labelText="{{resolution.label}}"
- >
- <ng-template *ngIf="resolution.description" ptTemplate="help">
- <div [innerHTML]="resolution.description"></div>
- </ng-template>
- </my-peertube-checkbox>
- </div>
- </ng-container>
- </div>
- </div>
- </ng-container>
- </ng-container>
-
- </div>
- </div>
-
- <div class="form-row mt-5"> <!-- load repartition grid -->
-
- <div class="form-group col-12 col-lg-4 col-xl-3">
- <div i18n class="inner-form-title">LOAD REPARTITION</div>
- <div i18n class="inner-form-description">
- Share CPU power to prioritize one or the other. The total should not be above the number of available threads.
- </div>
- </div>
-
- <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
-
- <ng-container formGroupName="transcoding">
- <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
+ <div class="form-group mt-4" [ngClass]="{ 'disabled-checkbox-extra': !isTranscodingEnabled() }">
<label i18n for="transcodingThreads">Transcoding threads</label>
+ <span class="text-muted ml-1">
+ <ng-container *ngIf="getTotalTranscodingThreads().atMost" i18n>will claim at most {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }} with live transcoding</ng-container>
+ <ng-container *ngIf="!getTotalTranscodingThreads().atMost" i18n>will claim at least {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }} with live transcoding</ng-container>
+ </span>
<div class="peertube-select-container">
<select id="transcodingThreads" formControlName="threads" class="form-control">
</div>
<div *ngIf="formErrors.transcoding.threads" class="form-error">{{ formErrors.transcoding.threads }}</div>
</div>
- </ng-container>
- <ng-container formGroupName="live">
- <ng-container formGroupName="transcoding">
- <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isLiveEnabled() || !isLiveTranscodingEnabled() }">
- <label i18n for="liveTranscodingThreads">Live transcoding threads</label>
- <div class="peertube-select-container">
- <select id="liveTranscodingThreads" formControlName="threads" class="form-control">
- <option *ngFor="let transcodingThreadOption of transcodingThreadOptions" [value]="transcodingThreadOption.value">
- {{ transcodingThreadOption.label }} {transcodingThreadOption.value, plural, =0 {} =1 {thread} other {threads}}
- </option>
- </select>
- </div>
- <div *ngIf="formErrors.live.transcoding.threads" class="form-error">{{ formErrors.live.transcoding.threads }}</div>
- </div>
- </ng-container>
</ng-container>
- <div *ngIf="getTotalTranscodingThreads().atMost" i18n>Transcoding will claim at most {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }}.</div>
- <div *ngIf="!getTotalTranscodingThreads().atMost" i18n>Transcoding will claim at least {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }}.</div>
-
</div>
-
</div>
</ng-template>
></ng-select>
</div>
</div>
+
</ng-container>
</my-peertube-checkbox>
</div>
</div>
</div>
+ <div class="form-row"> <!-- transcoding live streams grid -->
+ <div class="form-group col-12 col-lg-4 col-xl-3">
+ <div i18n class="inner-form-title">TRANSCODING</div>
+ <div i18n class="inner-form-description">
+ 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.
+ </div>
+ </div>
+
+ <div class="form-group form-group-right col-12 col-lg-8 col-xl-9">
+
+ <ng-container formGroupName="live">
+ <ng-container formGroupName="transcoding">
+
+ <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isLiveEnabled() }">
+ <my-peertube-checkbox
+ inputName="liveTranscodingEnabled" formControlName="enabled"
+ >
+ <ng-template ptTemplate="label">
+ <ng-container i18n>Transcoding enabled for live streams</ng-container>
+ </ng-template>
+ </my-peertube-checkbox>
+ </div>
+
+ <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isLiveEnabled() || !isLiveTranscodingEnabled() }">
+ <label i18n for="liveTranscodingThreads">Live resolutions to generate</label>
+
+ <div class="ml-2 mt-2 d-flex flex-column">
+ <ng-container formGroupName="resolutions">
+ <div class="form-group" *ngFor="let resolution of liveResolutions">
+ <my-peertube-checkbox
+ [inputName]="getResolutionKey(resolution.id)" [formControlName]="resolution.id"
+ labelText="{{resolution.label}}"
+ >
+ <ng-template *ngIf="resolution.description" ptTemplate="help">
+ <div [innerHTML]="resolution.description"></div>
+ </ng-template>
+ </my-peertube-checkbox>
+ </div>
+ </ng-container>
+ </div>
+ </div>
+
+ <div class="form-group" [ngClass]="{ 'disabled-checkbox-extra': !isLiveEnabled() || !isLiveTranscodingEnabled() }">
+ <label i18n for="liveTranscodingThreads">Live transcoding threads</label>
+ <span class="text-muted ml-1">
+ <ng-container *ngIf="getTotalTranscodingThreads().atMost" i18n>will claim at most {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }} with VOD transcoding</ng-container>
+ <ng-container *ngIf="!getTotalTranscodingThreads().atMost" i18n>will claim at least {{ getTotalTranscodingThreads().value }} {{ getTotalTranscodingThreads().unit }} with VOD transcoding</ng-container>
+ </span>
+
+ <div class="peertube-select-container">
+ <select id="liveTranscodingThreads" formControlName="threads" class="form-control">
+ <option *ngFor="let transcodingThreadOption of transcodingThreadOptions" [value]="transcodingThreadOption.value">
+ {{ transcodingThreadOption.label }} {transcodingThreadOption.value, plural, =0 {} =1 {thread} other {threads}}
+ </option>
+ </select>
+ </div>
+ <div *ngIf="formErrors.live.transcoding.threads" class="form-error">{{ formErrors.live.transcoding.threads }}</div>
+ </div>
+
+ </ng-container>
+ </ng-container>
+
+ </div>
+ </div>
+
</ng-template>
</ng-container>