@eleven-am/transcoder
Version:
High-performance HLS transcoding library with hardware acceleration, intelligent client management, and distributed processing support for Node.js
65 lines • 3 kB
JavaScript
;
/*
* @eleven-am/transcoder
* Copyright (C) 2025 Roy OSSAI
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.TranscodeType = exports.AudioQualityEnum = exports.VideoQualityEnum = exports.HardwareAccelerationMethod = exports.StreamType = exports.TranscodeStatus = void 0;
var TranscodeStatus;
(function (TranscodeStatus) {
TranscodeStatus[TranscodeStatus["QUEUED"] = 0] = "QUEUED";
TranscodeStatus[TranscodeStatus["PROCESSING"] = 1] = "PROCESSING";
TranscodeStatus[TranscodeStatus["PROCESSED"] = 2] = "PROCESSED";
TranscodeStatus[TranscodeStatus["ERROR"] = 3] = "ERROR";
})(TranscodeStatus || (exports.TranscodeStatus = TranscodeStatus = {}));
var StreamType;
(function (StreamType) {
StreamType["VIDEO"] = "v";
StreamType["AUDIO"] = "a";
})(StreamType || (exports.StreamType = StreamType = {}));
var HardwareAccelerationMethod;
(function (HardwareAccelerationMethod) {
HardwareAccelerationMethod["NONE"] = "none";
HardwareAccelerationMethod["CUDA"] = "cuda";
HardwareAccelerationMethod["VIDEOTOOLBOX"] = "videotoolbox";
HardwareAccelerationMethod["QSV"] = "qsv";
HardwareAccelerationMethod["VAAPI"] = "vaapi";
HardwareAccelerationMethod["AMF"] = "amf";
})(HardwareAccelerationMethod || (exports.HardwareAccelerationMethod = HardwareAccelerationMethod = {}));
var VideoQualityEnum;
(function (VideoQualityEnum) {
VideoQualityEnum["P240"] = "240p";
VideoQualityEnum["P360"] = "360p";
VideoQualityEnum["P480"] = "480p";
VideoQualityEnum["P720"] = "720p";
VideoQualityEnum["P1080"] = "1080p";
VideoQualityEnum["P1440"] = "1440p";
VideoQualityEnum["P4K"] = "4k";
VideoQualityEnum["P8K"] = "8k";
VideoQualityEnum["ORIGINAL"] = "original";
})(VideoQualityEnum || (exports.VideoQualityEnum = VideoQualityEnum = {}));
var AudioQualityEnum;
(function (AudioQualityEnum) {
AudioQualityEnum["AAC"] = "aac";
AudioQualityEnum["ORIGINAL"] = "original";
})(AudioQualityEnum || (exports.AudioQualityEnum = AudioQualityEnum = {}));
var TranscodeType;
(function (TranscodeType) {
TranscodeType["DIRECT_PLAY"] = "DIRECT_PLAY";
TranscodeType["DIRECT_STREAM"] = "DIRECT_STREAM";
TranscodeType["TRANSCODING"] = "TRANSCODING";
})(TranscodeType || (exports.TranscodeType = TranscodeType = {}));
//# sourceMappingURL=types.js.map