Youtube to mp3 downloader

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
8 posts Page 1 of 1
Contributors
User avatar
iAtomic
Just Registered
Just Registered
Posts: 7
Joined: Tue Apr 06, 2010 7:39 pm

Youtube to mp3 downloader
iAtomic
ummm how do i explain it...
kay it does what this site does :
http://www.video2mp3.net/
but in vb, is there a way to do that?
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Youtube to mp3 downloader
mandai
Yes there is an easy way to download files in VB, if that is what you are asking for.
Code: Select all
        Dim wc As WebClient = New WebClient()
        Dim u As Uri = New Uri("http://localhost/file.mp3")

        Try
            wc.DownloadFile(u, "myfile.mp3")
        Catch ex As Exception
            MsgBox("Error: " & ex.Message)
            Return
        End Try
But if you want to provide users with the option to download files through your VB app (like a proxy) then that would be something else.
User avatar
Harlem9191
Top Poster
Top Poster
Posts: 87
Joined: Mon Jan 18, 2010 8:45 pm

Re: Youtube to mp3 downloader
Harlem9191
Mandai is right. To download files use the code he provided.
But if you're downloading youtube videos you would have to download the video as an flv first and then convert it into an mp3.
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Youtube to mp3 downloader
zachman61
Yep that is exactly what they do
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
iAtomic
Just Registered
Just Registered
Posts: 7
Joined: Tue Apr 06, 2010 7:39 pm

Re: Youtube to mp3 downloader
iAtomic
is there a way to download it and convert it automatically?
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Youtube to mp3 downloader
mandai
Yes, once you have the flv file you could use a program like ffmpeg to convert it.

Example:
Code: Select all
        Dim psi As ProcessStartInfo = New ProcessStartInfo()
        psi.FileName = "ffmpeg.exe"
        psi.Arguments = "-i video.flv video.mp3"
        Process.Start(psi)
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Youtube to mp3 downloader
zachman61
hmm seems to work thanks mandai thats going in my new youtube program lol
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
iAtomic
Just Registered
Just Registered
Posts: 7
Joined: Tue Apr 06, 2010 7:39 pm

Re: Youtube to mp3 downloader
iAtomic
i have no clue how to use that code
it looks like what i need tho
8 posts Page 1 of 1
Return to “Tutorial Requests”