ManagedBass.Ffmpeg
1.0.0
dotnet add package ManagedBass.Ffmpeg --version 1.0.0
NuGet\Install-Package ManagedBass.Ffmpeg -Version 1.0.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="ManagedBass.Ffmpeg" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ManagedBass.Ffmpeg" Version="1.0.0" />
<PackageReference Include="ManagedBass.Ffmpeg" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ManagedBass.Ffmpeg --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ManagedBass.Ffmpeg, 1.0.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.
#:package ManagedBass.Ffmpeg@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ManagedBass.Ffmpeg&version=1.0.0
#tool nuget:?package=ManagedBass.Ffmpeg&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BASS_FFMPEG
A decoder plugin for BASS which uses the ffmpeg library with .NET bindings.
bass.dll is required for native projects. ManagedBass is required for .NET projects.
A simple example;
//If you load as a plugin.
var sourceChannel = Bass.CreateStream(Path.Combine(CurrentDirectory, this.FileName), 0, 0, this.BassFlags);
//Otherwise.
var sourceChannel = BassFfmpeg.CreateStream(Path.Combine(CurrentDirectory, this.FileName), 0, 0, this.BassFlags);
if (sourceChannel == 0)
{
Assert.Fail(string.Format("Failed to create source stream: {0}", Enum.GetName(typeof(Errors), Bass.LastError)));
}
if (!Bass.ChannelPlay(sourceChannel))
{
Assert.Fail(string.Format("Failed to play the playback stream: {0}", Enum.GetName(typeof(Errors), Bass.LastError)));
}
var channelLength = Bass.ChannelGetLength(sourceChannel);
var channelLengthSeconds = Bass.ChannelBytes2Seconds(sourceChannel, channelLength);
do
{
if (Bass.ChannelIsActive(sourceChannel) == PlaybackState.Stopped)
{
break;
}
var channelPosition = Bass.ChannelGetPosition(sourceChannel);
var channelPositionSeconds = Bass.ChannelBytes2Seconds(sourceChannel, channelPosition);
Debug.WriteLine(
"{0}/{1}",
TimeSpan.FromSeconds(channelPositionSeconds).ToString("g"),
TimeSpan.FromSeconds(channelLengthSeconds).ToString("g")
);
Thread.Sleep(1000);
} while (true);
if (!Bass.StreamFree(sourceChannel))
{
Assert.Fail(string.Format("Failed to free the source stream: {0}", Enum.GetName(typeof(Errors), Bass.LastError)));
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.6.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.