Skip to content

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.

Notifications You must be signed in to change notification settings

aatishdumps/yt-to-mp3-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks