import type { AVOFormatContext } from "../AVFormatContext.ts"; import OFormat from "./OFormat.ts"; import { AVFormat, AVCodecID, type AVPacket } from "@libmedia/avutil"; export interface OMpegtsFormatOptions { pesMaxSize?: number; delay?: number; latm?: boolean; patPeriod?: number; } export default class OMpegtsFormat extends OFormat { type: AVFormat; private context; private sdtPacket; private patPacket; private pmtPacket; private options; private firstDtsCheck; private firstVideoCheck; private lastPatDst; private patPeriod; private avpacket; constructor(options?: OMpegtsFormatOptions); init(formatContext: AVOFormatContext): number; destroy(context: AVOFormatContext): Promise; writeHeader(context: AVOFormatContext): number; writeAVPacket(formatContext: AVOFormatContext, avpacket: pointer): number; writeTrailer(context: AVOFormatContext): number; flush(context: AVOFormatContext): number; getCapabilities(): AVCodecID[]; static Capabilities: AVCodecID[]; }