Download youtube video file

broken image
broken image

I assume I've made some newbie mistake somewhere above which I can't fine.ĮDIT: As Joel Hinz has pointed out I failed to download ffmpeg, unfortunately it still appears to not be working :( So far I've only been messing around with javascript so, I have no idea how php works.

broken image

When I input a url and submit it instead of downloading the youtube video it downloads the php file in which the code resides.

broken image

I've got almost everything working except the downloading part. I'm attempting to create an little website in which you input a youtube url and it'll download the video in an mp3 format and play it back to you with the audio visualizer. I've just started programming a few weeks ago so keep in mind I have no idea what exactly I'm doing.

broken image