mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 03:29:03 +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 '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';
|
||||||
|
|
|
@ -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 = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
Loading…
Reference in a new issue