UNPKG

@remotion/studio

Version:

APIs for interacting with the Remotion Studio

41 lines (40 loc) 931 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.humanReadableCodec = void 0; const humanReadableCodec = (codec) => { if (codec === 'aac') { return 'AAC'; } if (codec === 'mp3') { return 'MP3'; } if (codec === 'gif') { return 'GIF'; } if (codec === 'h264') { return 'H.264'; } if (codec === 'h264-mkv') { return 'H.264 (Matroska)'; } if (codec === 'h264-ts') { return 'H.264 (Transport Stream)'; } if (codec === 'h265') { return 'H.265'; } if (codec === 'prores') { return 'ProRes'; } if (codec === 'vp8') { return 'VP8'; } if (codec === 'vp9') { return 'VP9'; } if (codec === 'wav') { return 'Waveform'; } throw new TypeError(`Got unexpected codec "${codec}"`); }; exports.humanReadableCodec = humanReadableCodec;