I need help using libvideo to make a simple Youtube video downloader. I just need to know the basics and then i can probably figure out the rest.
How do I make a YouTube to MP3/MP4 Converter in C#?
- 2.3K Views
- Last Post 22 February 2021
Lucas Gibson posted this 11 February 2019
java2s posted this 13 February 2019
You can use YoutubeExtrator to download a youtube video
Open your Mange Nuget Packages, then install YoutubeExtrator
Add code to handle download the youtube video as the following c# code
//Get your url video
IEnumerable<VideoInfo> url = DownloadUrlResolver.GetDownloadUrls(txtUrl.Text);
VideoInfo video = url.First(p => p.VideoType == VideoType.Mp4 && p.Resolution == 720);
if (url.RequiresDecryption)
DownloadUrlResolver.DecryptDownloadUrl(url);
//Download video
VideoDownloader downloader = new VideoDownloader(url, Path.Combine(Application.StartupPath + "\\", url.Title + url.VideoExtension));
//Create a new thread to process download youtube file
Thread t = new Thread(() => { downloader.Execute(); }) { IsBackground = true };
t.Start();
I hope you can solve the problem
Grioo posted this 22 February 2021
I need help using libvideo to make a simple Youtube video downloader. I just need to know the basics and then i can probably figure out the rest.
Have you tried using the software?
Search
Categories
This Weeks High Earners
-
retailgators 21
-
wpblackfriday 6
-
bvpwyawfurp 2
-
Justintic 2
-
Igorygg 2
-
hylvzfltohy 2
-
lwqyxfvqptc 2
-
Rogerrax 2
-
StroyBarma 2
-
Kristinaixl 2