mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 14:20:54 +03:00
initial video settings setup
This commit is contained in:
parent
5f0d7480bb
commit
c34aba2f5c
3 changed files with 19 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
import { LineChart } from 'react-chartkick'
|
||||
import { LineChart } from 'react-chartkick';
|
||||
import 'chart.js';
|
||||
import format from 'date-fns/format';
|
||||
import styles from '../../styles/styles.module.scss';
|
||||
|
|
|
@ -9,6 +9,7 @@ function VideoVariants({ config }) {
|
|||
if (!config || !config.videoSettings) {
|
||||
return null;
|
||||
}
|
||||
console.log(config.videoSettings)
|
||||
|
||||
const videoQualityColumns = [
|
||||
{
|
||||
|
|
|
@ -47,6 +47,21 @@ export interface ConfigInstanceDetailsFields {
|
|||
title: string;
|
||||
}
|
||||
|
||||
export interface VideoVariant {
|
||||
audioBitrate: number;
|
||||
audioPassthrough: number;
|
||||
encoderPreset: 'ultrafast' | 'superfast' | 'veryfast' | 'faster' | 'fast';
|
||||
framerate: number;
|
||||
videoBitrate: number;
|
||||
videoPassthrough: boolean;
|
||||
}
|
||||
export interface VideoSettingsFields {
|
||||
numberOfPlaylistItems: number;
|
||||
segmentLengthSeconds: number;
|
||||
videoQualityVariants: VideoVariant[],
|
||||
}
|
||||
|
||||
|
||||
export interface ConfigDetails {
|
||||
ffmpegPath: string;
|
||||
instanceDetails: ConfigInstanceDetailsFields;
|
||||
|
@ -55,5 +70,5 @@ export interface ConfigDetails {
|
|||
streamKey: string;
|
||||
webServerPort: string;
|
||||
yp: ConfigDirectoryFields;
|
||||
videoSettings: any; // tbd
|
||||
videoSettings: VideoSettingsFields; // tbd
|
||||
}
|
Loading…
Reference in a new issue