댓글 검색 목록

[Nodejs] node-video-lib

페이지 정보

작성자 운영자 작성일 19-12-20 22:43 조회 558 댓글 0

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);
    }
});






댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.