import { FfprobeData } from "fluent-ffmpeg" import { DeepOmit } from "@server/models/utils" export type VideoFileMetadataModel = DeepOmit export class VideoFileMetadata implements VideoFileMetadataModel { streams: { [x: string]: any, [x: number]: any }[] format: { [x: string]: any, [x: number]: any } chapters: any[] constructor (hash: Partial) { this.chapters = hash.chapters this.format = hash.format this.streams = hash.streams delete this.format.filename } }