Skip to content

🎥 Make videos programmatically with React

686 B
Raw Blame
import type {Codec} from './codec';
import type {ProResProfile} from './prores-profile';
import type {PixelFormat, VideoImageFormat} from './render-types';

export type VideoConfig = {
	width: number;
	height: number;
	fps: number;
	durationInFrames: number;
	id: string;
	defaultProps: Record<string, unknown>;
	props: Record<string, unknown>;
	defaultCodec: Codec | null;
	defaultOutName: string | null;
	defaultVideoImageFormat: VideoImageFormat | null;
	defaultPixelFormat: PixelFormat | null;
	defaultProResProfile: ProResProfile | null;
	defaultSampleRate: number | null;
};

export type VideoConfigValues = Pick<
	VideoConfig,
	'durationInFrames' | 'fps' | 'height' | 'width'
>;