Giter Site home page Giter Site logo

swipher / youtube2audio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from irahorecka/youtube2audio

0.0 0.0 0.0 22.08 MB

GUI application to download YouTube videos as annotated MP3 or MP4 files

License: MIT License

Python 99.23% Makefile 0.77%

youtube2audio's Introduction

youtube2audio

Version License

A desktop application to download YouTube videos as annotated MP3 or MP4 files.

Application Interface


Using the application

Paste a YouTube playlist or video URL and load its content. Make edits to the table and click "Ask butler" (not shown in image above) to provide annotation hints to your videos. You can choose to download MP3 or MP4 files. Finally, select a download folder, download your videos, and just like that, you have nicely annotated audio files.

This application uses PyQt5 to provide the user interface and multithreading to execute calls asynchronously. The backend uses itunespy to suggest song annotations (i.e. "Ask butler"), pytube to download the YouTube video as an MP4 audio file, and FFmpeg to convert the MP4 file to MP3.

Watch the video demo for more information.


Running the application

  1. Download ffmpeg
  2. Clone GitHub repository
  3. pip install -r requirements.txt
  4. python main.py

Check Troubleshooting if you encounter any trouble running / using the application or downloading MP3 files. If undocumented exceptions occur, please file the issue in issues.


Download ffmpeg

There are several options to install ffmpeg depending on your OS:

  1. Using homebrew
    • Downloading homebrew: Linux, macOS
    • brew install ffmpeg
  2. Through ffmpeg.org

Troubleshooting

  1. pytube is constantly upgrading to maintain compliance with YouTube's API. If you find exception messages on your terminal console during download, separately install the following pytube version as follows:

    pip install git+https://github.com/irahorecka/pytube.git@97c1743

  2. If the script completes instantly without downloading your video(s), you're probably experiencing an SSL: CERTIFICATE_VERIFY_FAIL exception. This fails to instantiate pytube.Youtube, thus failing the download prematurely.

    To troubleshoot this (if you're using macOS), go to Macintosh HD > Applications > Python3.7 folder (or whatever version of python you're using) > double click on Install Certificates.command file. This should do the trick.

youtube2audio's People

Contributors

irahorecka avatar ejuarezg avatar dependabot[bot] avatar sourcery-ai-bot 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.