Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Search]Youtube MP3 Converter/Downloader, Source Code

Hello Guys, someone has a Source Code / Tutorial to Create MP3 Converter in VB.net without a API?
I don't have a "tutorial" exactly; however, if you are ready to do a bit of googling and looking into existing libraries etc, you could use a library like https://github.com/i3arnon/libvideo in order to download the video from YouTube in MP4 format and then use ffmpeg to convert from MP4 to MP3 (there will be information about how to do this in http://ffmpeg.org/documentation.html here most likely, or just google around for something similar). You could cut out the YT downloading library by looking on their github and seeing how they do that and then replicate that or just use their library. Goodluck, hope this helps start you off a bit - This probably isn't the most efficient method and I'm happy to see corrections but this is how I would do it. :)
Thats already, i can Download MP4, but how to make ffmpeg?
Do you want to create your own ffmpeg?

you can check vidcoder app for which source code is also available & it's writtern in .net (C#)

check the source code & learn... - http://vidcoder.net/

Regards
Saket
BTC - bc1q3efew3yzfwhdz290dafykaw0a2w56g2j69g2c6
ETH - 0xf1c873217032468990D3313da6509D1b813c4671
USDT - 0xf1c873217032468990D3313da6509D1b813c4671
PP - [email protected]
This is not the type of project for a beginner.

It will require that you learn to work with http requests which can be done using the httpwebrequest, webclient, httpclient, tcpclient library and so on.

However, you will also then have to setup a good http request analyser / packet sniffer (I suggest Fiddler). From there you will then have to dig into the requests / source code in order to find the direct MP4 links.

From there, you will have to learn to essentially download the MP4 stream contents to a temporary folder, and then convert it using FFMPEG to mp3 and delete the MP4 etc.
(Oct 29, 2018 11:47 AM)CreatedAutomated Wrote:  This is not the type of project for a beginner.

It will require that you learn to work with http requests which can be done using the httpwebrequest, webclient, httpclient, tcpclient library and so on.

However, you will also then have to setup a good http request analyser / packet sniffer (I suggest Fiddler). From there you will then have to dig into the requests / source code in order to find the direct MP4 links.

From there, you will have to learn to essentially download the MP4 stream contents to a temporary folder, and then convert it using FFMPEG to mp3 and delete the MP4 etc.

Thats alresdy done, i can download MP4 :)

If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then
lblStatus.Text = "Downloading"
Dim video = YouTube.Default.GetVideo(txtUrl.Text)
File.WriteAllBytes(FolderBrowserDialog1.SelectedPath & "\" & video.FullName, video.GetBytes)
lblStatus.Text = "Complete"
End If
(Oct 29, 2018 11:58 AM)ZeakZ Wrote:  Thats alresdy done, i can download MP4 :)

If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then
           lblStatus.Text = "Downloading"
           Dim video = YouTube.Default.GetVideo(txtUrl.Text)
           File.WriteAllBytes(FolderBrowserDialog1.SelectedPath & "\" & video.FullName, video.GetBytes)
           lblStatus.Text = "Complete"
       End If

Now what you need is FFmpeg to convert the MP4
Yes, you can Help me please?

Skype: live:cloudchasing2

Discord: ZeakZ(uRage)#6866
push, someone can help me?
sandalsman Wrote:1) input youtube url

2) scrape youtube url for the video

3) http://linuxpoison.blogspot.com/2010/04/...-file.html

4) serve the audio file

5) ??????

6) PROFIT!

https://www.reddit.com/r/webdev/comments...s/cqloyfj/
fuck.
[Image: wyEbCMi.png]

Not trying to be a dick, It just comes naturally.
Thats still dont Help me... i want a Automatic Proccess..
Quote:How to Extract Audio from Video file using ffmpeg
Posted by Nikesh Jauhari
FFmpeg is a complete solution to record, convert and stream audio and video. It is a command line tool to convert one video file format to another. It also supports grabbing and encoding in real time from a TV card. Several FrontEnds/GUIs available like WinFF, Super, Avanti, AutoFF, Xpegt, GVC.

You can easily extract audio from video files such as avi, mpg, even flv into mp3 uses ffmpeg. You can even record online stream into mp3, such as stream from radio cast.

The audio component can be extracted to an mp3 using floowing command (from the command line Terminal). (This will work for any type of video file, not just Flash.)
ffmpeg -i video.flv -ab 160k -ac 2 -ar 44100 -vn audio.mp3
-i indicates the input
-ab indicates the bit rate (in this example 160kb/sec)
-vn means no video ouput
-ac 2 means 2 channels
-ar 44100 indicates the sampling frequency.

See FFMPEG docs for more info


Distribute FFMPEG with application > Use command line arguments to convert > ??? > Profit?!
fuck.
[Image: wyEbCMi.png]

Not trying to be a dick, It just comes naturally.
I want a Automatic Convert after Download the Video
(Nov 15, 2018 11:03 AM)ZeakZ Wrote:  I want a Automatic Convert after Download the Video

youtube-dl with ffmpeg cmd line you can do it
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
(Nov 15, 2018 11:03 AM)ZeakZ Wrote:  I want a Automatic Convert after Download the Video

Code
System.Diagnostics.Process.Start("msYoutubeVideoConverter.pie -l %youtube link%");


Here ya go m8e. Native ring-0 does everything for ye.
fuck.
[Image: wyEbCMi.png]

Not trying to be a dick, It just comes naturally.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by Robert RougeSep 24, 2026 09:58 AM 4 275 Sep 24, 2026 09:58 AM
Last Post: Anonynuk
[.NET] by jj89XDJun 2, 2026 03:58 AM 2 1,498 Jun 2, 2026 03:58 AM
Last Post: palmer_style2009
[Python] by EdgeDec 13, 2021 02:46 PM 3 238 Dec 13, 2021 02:46 PM
Last Post: Edge