All Projects → Hemant-Mann → YTDownloader

Hemant-Mann / YTDownloader

Licence: MIT license
A YouTube Downloader library made for php using ffmpeg + youtube-dl

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to YTDownloader

yt-dlandcut
Download and cut an Youtube video by providing its url and the time range
Stars: ✭ 20 (+66.67%)
Mutual labels:  youtube-dl
tele-tube-rider
Telegram Bot 🤖 to download videos from Youtube, Reddit and Twitter and send it back to you.
Stars: ✭ 36 (+200%)
Mutual labels:  youtube-dl
fan-ren-xiu-xian-zhuan
凡人修仙传(fanrenxiuxianzhuan)的资源汇总,谨献给“凡友”们。
Stars: ✭ 32 (+166.67%)
Mutual labels:  youtube-dl
Alexi5
A Discord Bot built using discordJS. Started as a joke for spamming memes. Branch "v2" is currently being used for active development. Hosted on Heroku.
Stars: ✭ 19 (+58.33%)
Mutual labels:  youtube-dl
MobOff
A CLI to download, convert and send youtube videos to several devices using Pushbullet.
Stars: ✭ 47 (+291.67%)
Mutual labels:  youtube-dl
BAT FFMPEG
Batch script files for FFMPEG (Microsoft Windows and DOS, OS/2 🦄)
Stars: ✭ 104 (+766.67%)
Mutual labels:  youtube-dl
Youtubedl Android
youtube-dl for android
Stars: ✭ 235 (+1858.33%)
Mutual labels:  youtube-dl
Youtube-DL-Agent.bundle
A plex metadata agent for Youtube-DL downloads
Stars: ✭ 92 (+666.67%)
Mutual labels:  youtube-dl
you-get-ffmpeg
结合you-get、youtube-dl和FFMPEG,附带文件管理视频播放等命令
Stars: ✭ 72 (+500%)
Mutual labels:  youtube-dl
android-browser-downloader
🌎 Android Browser - Video Downloader - This repository is deprecated. Please check out new version of this project at: https://github.com/cuongpm/youtube-dl-android
Stars: ✭ 34 (+183.33%)
Mutual labels:  youtube-dl
youtube-downloader
youtube-dl GUI simplify
Stars: ✭ 22 (+83.33%)
Mutual labels:  youtube-dl
gropple
Server and bookmarklet to download files via youtube-dl directly from your browser. Cross platform single binary installation, web browser configurable.
Stars: ✭ 33 (+175%)
Mutual labels:  youtube-dl
vscode-mediaplayer
Mediaplayer extention for VS Code
Stars: ✭ 18 (+50%)
Mutual labels:  youtube-dl
Youtube-DL-GUI
A Youtube-DL GUI made in C#
Stars: ✭ 18 (+50%)
Mutual labels:  youtube-dl
youtube-downloader-python
You can download the YouTube video for free and convert it to any extension you want.
Stars: ✭ 20 (+66.67%)
Mutual labels:  youtube-dl
Publicleech
can be found on Telegram as https://telegram.dog/PublicLeechGroup
Stars: ✭ 236 (+1866.67%)
Mutual labels:  youtube-dl
pymusicdl
Download songs based on song name/ YouTube playlist/ Spotify playlist /album
Stars: ✭ 41 (+241.67%)
Mutual labels:  youtube-dl
Videomass
Videomass is a free, open source and cross-platform GUI for FFmpeg and youtube-dl / yt-dlp
Stars: ✭ 451 (+3658.33%)
Mutual labels:  youtube-dl
Laravel-Youtube-API
A way to add an API to your Laravel app that converts youtube video's to mp3/mp4 and returns a download/stream link and information.
Stars: ✭ 19 (+58.33%)
Mutual labels:  youtube-dl
youtube-dl-nas
youtube download queue websocket server with login for private NAS.
Stars: ✭ 136 (+1033.33%)
Mutual labels:  youtube-dl

YTDownloader

It is library for downloading and converting youtube videos to desired formats

Dependencies

Youtube-dl

# Linux/Mac Users
sudo wget https://yt-dl.org/downloads/2016.05.10/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

FFMPEG

# For Ubuntu 15.10 above
sudo apt-get install ffmpeg

Setup

# Linux/Unix Based System
git clone https://github.com/Hemant-Mann/YTDownloader.git
cd YTDownloader
mkdir downloads
chmod 777 downloads/

Usage

<?php
require 'autoloader.php';
use YTDownloader\Service\Download as Downloader;
use YTDownloader\Helper\Convert as Convert;

$url = "https://www.youtube.com/watch?v=YykjpeuMNEk";

try {
  // $opts = ['path' => '/home/user/Download', 'bitrate' => '128K'];
  // $ytdl = new Downloader($url, $opts);

  $ytdl = new Downloader($url);
  
  // Get Available Qualities
  // $q = $ytdl->availableQualities();
  
  // Dont need to manually Mention the quality code just pass the human
  // readable string - '144p', '240p' etc
  // $file = $ytdl->download(22, 'mp4'); (prev version)

  // Current and more readable
  $mp4File = $ytdl->convert('mp4', ['type' => 'video', 'quality' => '360p', 'fullPath' => true]);
  // $mp4File = $ytdl->convert('mp4', ['type' => 'video', 'quality' => '244p']);
  
  $mp3File = $ytdl->convert('mp3', ['type' => 'audio', 'fullPath' => true]);
  
  // prev Version
  // $mp3File = Downloader::getDownloadPath() . $mp3File;

  // Current Version -- Pass fullPath to convert function to get fullpath of the downloaded file
  
  var_dump($mp3File);
  var_dump($mp4File);
} catch (\Exception $e) {
  echo print_r($e, true);
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].