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 'chart.js';
import format from 'date-fns/format'; import format from 'date-fns/format';
import styles from '../../styles/styles.module.scss'; import styles from '../../styles/styles.module.scss';

View file

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

View file

@ -47,6 +47,21 @@ export interface ConfigInstanceDetailsFields {
title: string; 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 { export interface ConfigDetails {
ffmpegPath: string; ffmpegPath: string;
instanceDetails: ConfigInstanceDetailsFields; instanceDetails: ConfigInstanceDetailsFields;
@ -55,5 +70,5 @@ export interface ConfigDetails {
streamKey: string; streamKey: string;
webServerPort: string; webServerPort: string;
yp: ConfigDirectoryFields; yp: ConfigDirectoryFields;
videoSettings: any; // tbd videoSettings: VideoSettingsFields; // tbd
} }