youtube mp3 converter
v1.0.3
YouTube 비디오를 다운로드하고 mp3로 변환하는 간단한 노드 모듈입니다. YouTube 링크를 mp3로 변환하는 훌륭하고 사용하기 쉬운 API를 제공하는 ytdl 및 ffmped 라이브러리에 대한 간단한 래퍼입니다.
YouTube에서 비디오 또는 해당 오디오를 다운로드하는 것은 해당 정책을 직접적으로 위반하는 것입니다. 자신의 동영상이 아닌 다른 동영상에 이 모듈을 사용하면 YouTube에서 귀하를 고소할 수 있습니다.
이 모듈은 ffmpeg 라이브러리에 의존합니다. ffmpeg가 설치되어 있는지 확인하세요. 설치 세부 사항을 보려면 여기를 참조하세요.
npm install youtube-mp3-converter
npm run test
// Sets up the downloader
const youtubeMp3Converter = require ( 'youtube-mp3-converter' )
// creates Download function
const convertLinkToMp3 = youtubeMp3Converter ( pathToSaveFiles )
// Downloads mp3 and Returns path were it was saved.
const pathToMp3 = await convertLinkToMp3 ( 'https://www.youtube.com/watch?v=_cyND_1y1k0' )
const youtubeMp3Converter = require ( 'youtube-mp3-converter' )
const convertLinkToMp3 = youtubeMp3Converter ( pathToSaveFiles )
const pathToMp3 = await convertLinkToMp3 ( 'https://www.youtube.com/watch?v=_cyND_1y1k0' , {
startTime : "00:00:10" , // from where in the video the mp3 should start
duration : 20 , // Length of mp3 in seconds (from start point)
title : 'fooo' // The tile of the mp3 file, undefined it takes the youtube title
} )
이 모듈에는 현재 몇 가지 심각한 테스트가 부족합니다. 연장하고 싶다면 제 손님이 되어 주세요.