aatishdumps / yt-to-mp3-fastapi

This is a FastAPI application that allows you to convert YouTube videos to MP3 files with custom bitrate options. The application uses yt-dlp to download the audio from YouTube and ffmpeg to convert it to MP3 format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YouTube to MP3 Converter

This is a FastAPI application that allows you to convert YouTube videos to MP3 files with custom bitrate options. The application uses yt-dlp to download the audio from YouTube and ffmpeg to convert it to MP3 format. It also includes background tasks to automatically clean up old downloaded files and stores the download history in a local file for persistence across server restarts.

Features

Download and convert YouTube videos to MP3 with custom bitrate options (128, 192, 256, 320 kbps).
Background tasks to remove old downloaded files and manage download history.
Easy-to-use API with FastAPI framework.
Customizable paths for ffmpeg and yt-dlp using environment variables.

Requirements

Python 3.6 or higher
ffmpeg and yt-dlp

Deploy

Deploy

About

This is a FastAPI application that allows you to convert YouTube videos to MP3 files with custom bitrate options. The application uses yt-dlp to download the audio from YouTube and ffmpeg to convert it to MP3 format.


Languages

Language:Python 99.0%Language:Procfile 1.0%