import { IngestSource, SelectedIngestTracks, TrackExtractionResult } from "./types.js"; import { Input, InputAudioTrack, InputVideoTrack } from "mediabunny"; //#region src/mediabunny-ingest/MediabunnyIngest.d.ts /** Opens a mediabunny `Input` over a URL or local file path, auto-detecting the container/HLS format. */ declare function openIngestInput(source: IngestSource): Input; /** * Selects the best video track and its best pairable audio track from an * input (matching the "ingest only the best audio and video track" ingest * policy). For plain progressive files this is just "the" video/audio track; * for HLS master playlists, mediabunny's `getPrimaryVideoTrack`/ * `getPrimaryAudioTrack` already implement bitrate-based ABR selection. * * Throws if the source has no usable tracks, or if any selected track is * still live (open-ended) — ingestion only supports VOD sources. */ declare function selectIngestTracks(input: Input): Promise; /** * Extracts a single video track into a fragmented single-track MP4 stream via * packet-copy transmux (no re-encoding — matches the previous ffmpeg `-c:v copy` * behavior). SEI NAL units (type 6) are stripped from every packet, mirroring the * previous `-bsf:v filter_units=remove_types=6` ffmpeg filter. */ declare function extractVideoTrack(track: InputVideoTrack): TrackExtractionResult; /** * Extracts a single audio track into a fragmented single-track MP4 stream. * * - AAC-raw sources (description present) are packet-copied directly. * - AAC-ADTS sources (typical of MPEG-TS/HLS demuxed AAC) have their ADTS * headers stripped and an AudioSpecificConfig synthesized, mirroring the * previous `-bsf:a aac_adtstoasc` ffmpeg filter. * - Any other codec is decoded and re-encoded to AAC (192kbps), mirroring the * previous `-c:a aac -b:a 192k -ar 48000` ffmpeg re-encode fallback. */ declare function extractAudioTrack(track: InputAudioTrack): TrackExtractionResult; //#endregion export { extractAudioTrack, extractVideoTrack, openIngestInput, selectIngestTracks }; //# sourceMappingURL=MediabunnyIngest.d.ts.map