Code Monkey home page Code Monkey logo

4k-youtube-downloader's Introduction

4K-Youtube-Downloader

Download the max resolution youtube videos with audio.

Youtube switched to separate audio/video streaming technology for higher quality formats and no longer provides direct 720p/1080p/1440p mp3 streams. Most of the youtube downloader available online can't download high resolution videos with audio. So I tried to do it with python with these two packages:-

pytube - library (and command-line utility) for downloading YouTube videos

FFmpeg - a command-line tool, designed for processing of video and audio files

Download the latest FFmpeg build from here:- https://github.com/BtbN/FFmpeg-Builds/releases and extract it.

FFmpeg doesn’t work directly on Windows 10. You need to add a program to system path using Environment Variables. To use FFmpeg, you need first to add the bin folder containing the FFmpeg executable file to your Windows path.

In the Windows search menu, type Edit the system environment variables and click Enter. This will open the system properties window.

Navigate to Advanced button and click Environment Variables at the bottom of the window.

In the Environment Variables window, Select the variable Path and click Edit to change the Path variable.

Click New and type the path of FFmpeg folder e.g.“C:\ffmpeg\bin\” and click OK.

Launch Command Prompt and type the command ffmpeg in the command prompt terminal and hit Enter to verify.

Run pip install requirements.txt to install the required packages.

Set the output_dir in the download.py script where the videos will be saved.

Run python download.py in command prompt to download a video. Then input the video link. Then it will show all the available resolutions for the video. Upon selecting the desired resolution It will download the audio and video file seperately and the merge it for you and save it to the output directory.

alt text

4k-youtube-downloader's People

Contributors

arnabx007 avatar

Watchers

 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.