initial video settings setup

This commit is contained in:
gingervitis 2021-01-03 02:13:28 -08:00 committed by Gabe Kangas
parent 5f0d7480bb
commit c34aba2f5c
3 changed files with 19 additions and 3 deletions

View File

@ -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';

View File

@ -9,6 +9,7 @@ function VideoVariants({ config }) {
if (!config || !config.videoSettings) {
return null;
}
console.log(config.videoSettings)
const videoQualityColumns = [
{

View File

@ -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
}