Git Product home page Git Product logo

youtube-download-hq's Introduction

Youtube Download - High Quality

Download the maximum quality resolution videos on Youtube and all the captions available.

Why to use it

This code use pytube library to download youtube videos and their captions. However, there is a youtube limitation to download high quality video and audio codec's together in same file, then it's only possible to download audio and video (above 720p) separately. In this sense, this code can download both maximum quality video and audio files, merge them with ffmpeg and get all captions available. The output files are: merged file (in .mkv), audio file, video file and the captions (in .srt).

Requirements

First, it's necessary to install pytube. If you are using Jupyter Notebook, just paste this code in cell:

pip install pytube3

You may need to install K-Lite Mega Codec Pack too.

How to use

In youtubeHQ.py, get the youtube video link and paste on:

VIDEO = 'https://www.youtube.com/watch?v=0xY06PT5JDE'

or, on command-prompt:

> python youtubeHQ.py YOUTUBE_LINK_HERE

After that, create the directory C:\videos\, because that's where the files will be saved. This can be changed in the code. If subtitles are available, they will be downloaded and saved in the same folder. Don't forget to put youtubeHQ.py and ffmpeg.exe in the same folder.

Screenshot

Output files

youtube-download-hq's People

Contributors

luiseduardobr1 avatar

Stargazers

Alexander Elgin avatar Tasvir Z. Khan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.