mskian / video-dl

Video Downloader 📥 - Download Facebook Video and Youtube Video and Audio.
https://sandl.herokuapp.com/
MIT License
25 stars 19 forks source link
express got json video-downloader youtube-dl youtube-downloader youtube-video

Video Downloader 📥

API Test

Video Downloader - Download Facebook Video and Youtube Video and Audio.

🤖 Easy to use - Just add the URL Done...!

Built with 📦

Usage ✨

git clone https://github.com/mskian/video-dl.git
cd video-dl
yarn install
yarn start
 http://localhost:4000/video/video?url=https://www.youtube.com/watch?v=bKDdT_nyP54
http://localhost:4000/audio/audio?url=https://www.youtube.com/watch?v=bKDdT_nyP54
http://localhost:4000/hd/video?url=https://www.facebook.com/LyricsEngsongs/videos/321854395918041/
http://localhost:4000/low/video?url=https://www.facebook.com/LyricsEngsongs/videos/321854395918041/

Try Online 🌐

Formats 📼

ytdl(url, {
            format: 'mp3',
            filter: 'audioonly',
            quality: 'highest'
        }).pipe(res);
ytdl(url, {
            format: 'mp4',
            quality: 'highest'
        }).pipe(res);

For More check- https://github.com/fent/node-ytdl-core#ytdlchooseformatformats-options

Free Deploy 🍔

Deploy

⚠ Vercel having RUNTIME Failed issue while downloading the youtube Video - https://github.com/vercel/vercel/issues/3825

Deploy with Vercel

Extract Downloadable Link (Not Working) ✂

Extract Downloadable Link From Facebook Due to recent changes in fb this method is not working

lib/fbvid.js

const fbvid = require('./lib/fbvid.js');

const video = 'https://www.facebook.com/LyricsEngsongs/videos/321854395918041/';

fbvid.low(video).then(vid => {
  console.log(vid)
});

fbvid.high(video).then(vid => {
  console.log(vid);
});

fbvid.title(video).then(vid => {
    console.log(vid);
});

fbvid.slug(video).then(vid => {
    console.log(vid);
});

Disclaimer ⚠

LICENSE ☑

MIT