MP4 및 FLV 비디오 파일 작업 및 HLS 스트리밍을 위한 MPEG-TS 청크 생성을 위한 순수 JavaScript 라이브러리.
https://github.com/gkozlenko/node-video-lib
이 라이브러리는 H.264 / H.265 비디오 코덱 및 AAC 오디오 코덱을 사용하여 인코딩 된 MP4 및 FLV 비디오 파일에서만 작동합니다.
const fs = require('fs'); const VideoLib = require('node-video-lib'); fs.open('/path/to/file', 'r', function(err, fd) { try { let movie = VideoLib.MovieParser.parse(fd); // Work with movie console.log('Duration:', movie.relativeDuration()); } catch (ex) { console.error('Error:', ex); } finally { fs.closeSync(fd); } });
등록된 댓글이 없습니다.