Giter Club home page Giter Club logo

yt-fetchaudio's Introduction

YouTube Video to Audio

A GUI application that serves to do just one thing - download and convert a YouTube video, to audio (primarily for music); with the ability to trim the file - given start/end time - so you don't have to listen to annoying intro's/outro's.

Purpose

Most online services nowadays have too many options which are tedious to browse through, or require subscriptions to bypass limitations on things such as the download size. Also, some videos on YouTube have unnecessary intro's/outro's which I don't want to tune into when I'm listening to music; hence this program.

Features

  • Straightforward Graphical User Interface.
  • Quick YouTube to audio conversion.
  • Trim/cut the audio file; download a subclip from start to end.
  • Change output file-name/directory.

Demo

Usage

Dependencies

Can install these via pip:

  • moviepy
  • ffmpeg
  • pytube
  • dearpygui

Running the Program

python main.py

Supported Audio Formats

  • mp3
  • aac

Start/End Time Format

Start/End input value needs to be comma separated in the form of <hr>, <sec>, <min>. Examples of input:

# Subclip starting from 1 minute and 2 seconds
1,2
# Subclip starting from 15 seconds
15

These will be evaluated to a tuple for moviepy.

If nothing is entered, the program will simply convert the whole downloaded YouTube video, to audio.

Config File

The output directory for the download is read from config.yml file. Simply change the string value for the directory key in config.yml to change where you want the downloaded file to go. Example:

# config.yml
directory: "/path/to/directory/"
# sending the downloaded file to downloads folder
directory: "~/Downloads"

Invalid directory path will be evaluated to "" which is the directory the program itself resides in.

Warning: Refrain from specifying the file-name in the string because this string is evaluated as a directory.

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.