@profullstack/transcoder
Version:
A server-side module for transcoding videos, audio, and images using FFmpeg with smart presets and optimizations
87 lines (77 loc) • 1.67 kB
JavaScript
/**
* @profullstack/transcoder - Main Module
* Exports all functionality from the modular components
*/
// Export core functionality
export {
TranscodeEmitter,
DEFAULT_OPTIONS,
DEFAULT_AUDIO_OPTIONS,
DEFAULT_IMAGE_OPTIONS,
checkFfmpeg,
parseProgress
} from './core.js';
// Export video transcoding functionality
export {
transcode,
transcodeResponsive
} from './video.js';
// Export audio transcoding functionality
export {
transcodeAudio,
transcodeAudioBatch
} from './audio.js';
// Export image transcoding functionality
export {
transcodeImage,
transcodeImageBatch
} from './image.js';
// Export thumbnail generation functionality
export {
generateThumbnails,
generateThumbnailsEfficient
} from './thumbnails.js';
// Export utility functions
export {
getVideoMetadata,
getVideoDuration,
getImageMetadata,
validatePaths,
ensureOutputDirectory
} from './utils.js';
// Export presets
export {
getPreset,
getResponsiveProfileSet,
PRESETS,
RESPONSIVE_PROFILES
} from '../presets.js';
// Export CLI utilities
export {
formatTime,
formatFileSize,
expandTildePath,
configureCommandLine,
handleThumbnailsOnly,
prepareTranscodeOptions,
prepareBatchOptions,
prepareScanOptions,
displayTranscodeResults,
displayBatchResults,
createTranscodeProgressBar,
createBatchProgressBar,
updateProgressBar
} from './cli.js';
// Export batch processing functionality
export {
BatchProcessEmitter,
SUPPORTED_EXTENSIONS,
scanDirectory,
batchProcess,
batchProcessDirectory
} from './batch.js';
// Export terminal UI functionality
export {
createBatchUI,
attachBatchUI
} from './terminal-ui.js';