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 ...

Post2VPS.Com

VPS SPECIFICATION - 384MB RAM 30GB HDD 300MHZ CPU 10Mbps Bandwidth Debian 7 OpenVZ 20 NAT IPV4 ports Sponsor: None [ Offered by Post2VPS.Com ] Requirements - 5 posts to ask for the vps and same to keep it yours and please make a review after a week of usage. Link - post2vps.com
Freedomain.club offers vps and tld's, requritements 50 points to ask for the vps and same to keep it.Following are the vps specification : > 2 CPU Cores > Disk Space: 10GB (SSD Cached) > RAM: 512MB > Bandwidth: 512GB > 1 * IPV4 > Any linux operating system Give it a try. Link : www.freedomain.club