WibuTube 1.1.0
dotnet add package WibuTube --version 1.1.0
NuGet\Install-Package WibuTube -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WibuTube" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WibuTube --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WibuTube, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WibuTube as a Cake Addin #addin nuget:?package=WibuTube&version=1.1.0 // Install WibuTube as a Cake Tool #tool nuget:?package=WibuTube&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
WibuTube Package
This library:
- Downloads video from YouTube
- Converts it to mp3
- Adds some other information to the mp3 file
Examples
Download YouTube video
WibuTubeConverter wibuTubeConverter = new();
// Most Heartfelt Music: "Dream Dancer" by Ben Crosland
string url = "https://www.youtube.com/watch?v=_z411ShLWHI&list=PLFJRIUbt-ELjQZqVbzvCGerxXgjGp_Ww5&index=12";
// Video is saved into "tmp/" folder in working directory by default
var mp4 = await wibuTubeConverter.DownloadVideoAsync(url);
// You can specify your prefered location
var mp4 = await wibuTubeConverter.DownloadVideoAsync(url, "TheGloryHole/");
Convert mp4
to mp3
var songPath = Path.GetFileNameWithoutExtension(mp4.FullName);
songPath = $"tmp/{songName}.mp3";
var mp3 = await wibuTubeConverter.ConvertVideoToMp3Async(videoPath, songPath);
// You can also choose to convert a part of video
int start = 0;
int duration = 60; // Seconds
var mp3 = await wibuTubeConverter.ConvertVideoToMp3Async(videoPath, songPath, start, duration);
Get thumbnail from video
int atSecond = 25;
string imgPath = "tmp/my-song-cover.jpg";
var imgFileInfo = await wibuTubeConverter.GetVideoSnapshotAsync(atSecond, mp4.FullName, imgPath);
Set thumbnail image for mp3
var mp3 = await wibuTubeConverter.SetMp3Thumbnail(songPath, imgPath);
Set a few more details for mp3
var mp3Info = wibuTubeConverter.SetMp3DetailInfo(songPath, new Song
{
Tittle = "Dream Dancer",
Album = "HDSoundi",
Performers = new[] { "Ben Crosland" }
});
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.1)
- TagLibSharp (>= 2.2.0)
- VideoLibrary (>= 3.1.9)
- Xabe.FFmpeg (>= 5.2.0)
- Xabe.FFmpeg.Downloader (>= 5.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.