All Projects β†’ cvzi β†’ mpv-youtube-download

cvzi / mpv-youtube-download

Licence: other
A userscript for MPV that allows you to download youtube audio and video with one key press πŸ’Ύ

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to mpv-youtube-download

Youtube Dl Android
πŸ“¦πŸ“¦Video downloader for Android - Download videos from Youtube, Facebook, Twitter, Instagram, Dailymotion, Vimeo and more than 1000 other sites
Stars: ✭ 322 (+1912.5%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Smd
Spotify Music Downloader
Stars: ✭ 822 (+5037.5%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Youtube Music
YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
Stars: ✭ 376 (+2250%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
ytqck.github.io
YouTube quick ⚑ Search and Download Music for Free.
Stars: ✭ 18 (+12.5%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Youtube Mp3 Downloader
Extract music from YouTube videos
Stars: ✭ 187 (+1068.75%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
spongebob-cli
Watch classic spongebob from the terminal!
Stars: ✭ 179 (+1018.75%)
Mutual labels:  youtube, mpv, youtube-dl
mpv-youtube-upnext
A userscript for MPV that allows you to play "up next"/recommended youtube videos ⏭️
Stars: ✭ 29 (+81.25%)
Mutual labels:  mpv, youtube-dl, mpv-script
ypc
Convert text/spotify/deezer albums/playlists to youtube urls and audio/video files.
Stars: ✭ 17 (+6.25%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Ytcc
Command line tool to keep track of your favorite playlists on YouTube and many other places.
Stars: ✭ 92 (+475%)
Mutual labels:  youtube, mpv, youtube-dl
Firedm
python open source (Internet Download Manager) with multi-connections, high speed engine, based on python, LibCurl, and youtube_dl https://github.com/firedm/FireDM
Stars: ✭ 977 (+6006.25%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Youtube Downloader
πŸ‘ A much faster alternative to youtube-dl built for PHP applications. Working as of 2021-02-27
Stars: ✭ 474 (+2862.5%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Candy
🍭 Cross-platform YouTube-downloader with playlist and channel support as well as build-in audio / video converter.
Stars: ✭ 229 (+1331.25%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Youtub.ly Android
An android app to download πŸ“Ή videos and songs from youtube to phone internal storage
Stars: ✭ 17 (+6.25%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
Yturl
YouTube videos on the command line
Stars: ✭ 218 (+1262.5%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
YouTube-Downloader
An easy-to-use, YouTube video downloader, without pesky ads or malware.
Stars: ✭ 22 (+37.5%)
Mutual labels:  youtube, youtube-dl, youtube-downloader
PowerShell-Youtube-dl
A PowerShell script interface used to operate the youtube-dl command line program.
Stars: ✭ 64 (+300%)
Mutual labels:  youtube-dl, youtube-downloader
android-youtube-dl
The android library that wraps Python 2.7 and youtube-dl python scripts
Stars: ✭ 35 (+118.75%)
Mutual labels:  youtube-dl, youtube-downloader
flutter youtube downloader
A Flutter Youtube and Video Downloader
Stars: ✭ 19 (+18.75%)
Mutual labels:  youtube-dl, youtube-downloader
YouP3
Android app for downloading media from YouTube with 4K Support (Beta)
Stars: ✭ 51 (+218.75%)
Mutual labels:  youtube-dl, youtube-downloader
mpv-gif-generator
Creates animated gifs using mpv hotkeys
Stars: ✭ 32 (+100%)
Mutual labels:  mpv, mpv-script

youtube-download

A userscript for MPV that allows you to download the current youtube video/audio with one key press.

Start a video download with ctrl+d (configurable) or start an audio download with ctrl+a (configurable).

Installation

Copy youtube-download.lua into your scripts directory, e.g.:

cp youtube-download.lua ~/.config/mpv/scripts/

optional, copy the config file:

cp youtube-download.conf ~/.config/mpv/script-opts/

Make sure you have either ffmpeg or avconv installed.

Windows:

The location of the scripts directory on Windows is %APPDATA%\mpv\scripts e.g. C:\Users\cvzi\AppData\Roaming\mpv\scripts The location of the .conf files on Windows is %APPDATA%\mpv\script-opts

On windows, you need to add the directory of the ffmpeg.exe to your machine's %PATH or put the ffmpeg.exe in the same directory as the youtube-dl.exe/yt-dlp.

mpv.net:

The script folder for mpv.net is: %APPDATA%\mpv.net\scripts

The .conf files belong into: %APPDATA%\mpv.net\script-opts

The keyboard shortcuts in the script and the .conf-file don't work with mpv.net. You need to set the keyboard shortcuts yourself in your input.conf. Default location is %APPDATA%\mpv.net\input.conf. Add the following lines to the end of your input.conf (change the keys if they are already used, leave out lines that you don't need):


 Ctrl+d     script-message-to   youtube_download   download-video
 Ctrl+a     script-message-to   youtube_download   download-audio
 Ctrl+s     script-message-to   youtube_download   download-subtitle
 Ctrl+i     script-message-to   youtube_download   download-embed-subtitle

Debugging errors:

To get more information in case of an error you can make mpv print more data about the script:

mpv --msg-level=youtube_download=trace "https://www.youtube.com/watch?v=AbC_DeFgHIj"

or on Windows:

mpv.com --msg-level=youtube_download=trace "https://www.youtube.com/watch?v=AbC_DeFgHIj"

Features and default keyboard shortcuts:

  • CTRL + d : Download video
  • CTRL + a : Download audio
  • CTRL + s : Download subtitle
  • CTRL + i : Download video with embedded subtitle
  • To cancel a running download process, press any of the above key combinations twice
  • CTRL + r : Select an interval of start/end time to download only a portion of a video
    • Default interval: from current playing position til end
    • Use arrow keys to select another interval
    • Press CTRL + r again to fine tune second by second
    • Start download with CTRL + d, CTRL + a, ...
  • A download archive for youtube-dl can be set in the script configuration (disabled by default)
  • Cookies are picked up from --ytdl-raw-options or can be specified in the script configuration (disabled by default)
  • A log file for youtube-dl download errors can be set in the in the script configuration (disabled by default)
  • Choose between youtube-dl or yt-dlp. By default the script will try to auto-detect what is available and will prefer yt-dlp over youtube-dl. You can set the executable in the config to avoid the auto-detection.

Credit

youtube-quality's Credit

  • reload.lua, for the function to reload a video while preserving the playlist.
  • mpv-playlistmanager, from which I ripped off much of the menu formatting config.
  • ytdl_hook.lua, from which I ripped off much of the youtube-dl code to fetch the format list
  • somebody on /mpv/ for the idea
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].