Skip to main content

[PHP] Converting a youtube video to audio (mp3) file

Hello,

Lets start...

First of all find a website that provides an API for converting Youtube videos to audio files
- For that you may find a website with url http://youtubeinmp3.com/

Then, visit that website..Follow their documentation/guide for fetching the mp3 from the video and displaying a download button.

Follow this code format -

<a href='//www.youtubeinmp3.com/fetch/?video=https://www.youtube.com/watch?v=i62Zjga8JOM' style='text-decoration:none;color:#03a730;'><img src='//www.youtubeinmp3.com/icon/folder.png' style='vertical-align:middle;'> <strong>Download MP3</strong></a>
Pass the watch link,through the above url..If the url is correct then a download button named "Download MP3" should get generated

You can find addtional customisations to API below in the website (http://youtubeinmp3.com/)


Note : You can save the fetched data in json,xml or plain text format and then use it later or you can fetch the metadata of the Youtube video and do something more amazing..

PS : Downloading or converting youtube videos maybe illegal..Its just for educational purposes.

This project is available on my github account https://github.com/jayantur13/Youtube_video_to_audio_converter

Regards.

Popular posts from this blog

VNC alternative:X2GO Server & Client

Hello again, In this thread I'll be explaining and showing commands on how to install X2GoServer, it is much easier than VNC (in my opinion) and very easy to use. It takes some time to install because the packages are a little big. What is VNC ? > In computing, Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer protocol (RFB) to remotely control another computer. > Mainly,X2GO server is used for running a custom linux desktop with a flavour of windows software applications using "wine" by connecting client to server (using x2go client). Requirement : > Virtual Server > A good amount of ram > Patience Note : > This tutorial will work on Debian/Ubuntu,change apt-get to yum for centOS and similar for others > Use sudo as a prefix,if the below commands don't seem to work First of all, login with PuTTY on your Debian(wheezy) VPS. After you have done this just copy and paste ...

Nationserver.us Free P2H Provider

Some of the vps packages that we had offered : -  ★ Package 1 ★ (5 Total)  1GB Ram 100GB Disk 1000 GB Bandwidth 1 IPv4 - Additional Available SolusVM/OpenVZ - Linux  ★ Package 2 ★ (3 Total) 1GB Ram 2 vCore @ 1GHz 30GB Disk - SSD RAID 10 2TB Bandwidth @ 1Gbps 1 IPv4 - Additional Available SolusVM/OpenVZ - Linux  ★ Package 3 ★ (1 Total) 2GB Ram 2 vCore @ 1.5GHz 50GB Disk - SSD RAID 10 3TB Bandwidth @ 1Gbps 1 IPv4 - Additional Available SolusVM/OpenVZ - Linux  ★ Package 4 ★ (1 Total)  1GB Ram 25GB Disk 1000 GB Bandwidth 1 IPv4 - Additional Available SolusVM/OpenVZ - Linux  ★ Package 5 ★ (2 Total)  512mb Ram 25GB Disk 1000 GB Bandwidth 1 IPv4 - Additional Available SolusVM/OpenVZ - Linux Location (Package 4 & 5 ) [*] Montreal, Quebec, Canada (FREE DDoS protection) [*] Jacksonville, Florida, United States [*] Phoenix, Arizona, United States (FREE DDoS protection) [*] Los Angeles, California Visit - https://nationserver.us/ Regar...

Best torrent clients/downloaders

Vuze/Azerous- Vuze Bittorrent Client  The Best Way to Download Torrents Features- Meta Search META SEARCH Your starting point for finding torrents across the web. Subscriptions SUBSCRIPTIONS Add subscriptions to have your favorite content delivered to you. Faster Downloads FASTER DOWNLOADS Download torrents quickly and efficiently with bandwidth management. Web Remote WEB REMOTE Control your Vuze torrent downloads from any computer or mobile browser .                                                               HD Player HD PLAYER Integrated hi def player on your PC and Mac. Simply click play. Device Playback DEVICE PLAYBACK Drag and drop to play on iPhone, iPod, iPad, Apple TV, PS3, Xbox 360, PSP, and TiVo.