TensorStack.Media 0.15.0

Prefix Reserved
dotnet add package TensorStack.Media --version 0.15.0
                    
NuGet\Install-Package TensorStack.Media -Version 0.15.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="TensorStack.Media" Version="0.15.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TensorStack.Media" Version="0.15.0" />
                    
Directory.Packages.props
<PackageReference Include="TensorStack.Media" />
                    
Project file
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 TensorStack.Media --version 0.15.0
                    
#r "nuget: TensorStack.Media, 0.15.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 TensorStack.Media@0.15.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=TensorStack.Media&version=0.15.0
                    
Install as a Cake Addin
#tool nuget:?package=TensorStack.Media&version=0.15.0
                    
Install as a Cake Tool

TensorStack.Media

Loading, saving and streaming of images, audio and video, using SkiaSharp, OpenCvSharp and FFmpeg.

Nuget Package

Media Badge

Setup

Video and audio use FFmpeg, set its location once at startup (defaults to ffmpeg.exe and ffprobe.exe in the working directory)

MediaManager.Initialize("ffmpeg.exe", "ffprobe.exe", "Temp");

Images

ImageInput

ImageInput extends ImageTensor with loading and saving images to disk

var image = new ImageInput("Input.png");
var resized = new ImageInput("Input.png", 1024, 1024, ResizeMode.Crop);
await image.SaveAsync("Output.png");

// Any ImageTensor can be saved directly
await imageTensor.SaveAsync("Output.png");

Video

VideoInput

VideoInput extends VideoSequence, a buffered video with all frames and audio in memory

var video = new VideoInput("Input.mp4");
Console.WriteLine($"{video.FrameCount} frames @ {video.FrameRate}fps");
await video.SaveAsync("Output.mp4");

VideoInputStream

VideoInputStream is a video backed by a file stream, loading frames on demand so long videos can be processed one frame at a time

var stream = await VideoInputStream.CreateAsync("Input.mp4");
await foreach (var frame in stream.GetAsync())
{
    // Process frame
}

// Or chain a pipeline and save the result
await pipeline.RunAsync(new UpscaleStreamOptions { Stream = stream.GetAsync() }).SaveAsync("Output.mp4");

VideoManager

  • LoadVideoInfoAsync - Video info and thumbnail
  • LoadVideoSequenceAsync - Load a VideoSequence, with optional size and frame rate overrides
  • WriteVideoStreamAsync - Write a frame stream to a file, with optional frame processor

Audio

AudioInput

AudioInput extends AudioTensor with loading and saving audio to disk

var audio = await AudioInput.CreateAsync("Input.wav", sampleRate: 16000, channels: 1);
await audio.SaveAsync("Output.wav");

// Any AudioTensor can be saved, resampled or downmixed
await audioTensor.Resample(24000).ToMono().SaveAsync("Output.wav");

AudioInputStream

AudioInputStream is audio backed by a file, loading data on demand

  • GetAsync - Load as AudioInput at a sample rate and channel count
  • MoveAsync / CopyAsync - Move or copy the source file
  • CreateAsync - Open a file

AudioManager

  • LoadInfoAsync - Audio stream info
  • LoadTensorAsync - Load an AudioTensor
  • SaveAudio - Save an AudioTensor
  • AddAudioAsync - Copy the audio track from a source video to a target video
  • CreateAudioTimelineAsync - Mix an AudioTimeline of segments to a file
Product Compatible and additional computed target framework versions.
.NET net10.0-windows10.0.17763 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on TensorStack.Media:

Package Downloads
TensorStack.WPF

Package Description

TensorStack.StableDiffusionCpp

.NET Wrapper API for StableDiffusion.cpp

TensorStack.LlamaCpp

.NET Wrapper API for llama.cpp

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.15.0 99 11/18/2026
0.14.14 96 11/17/2026
0.14.13 104 11/16/2026
0.14.12 92 11/15/2026
0.14.11 90 11/15/2026
0.14.10 103 11/14/2026
0.14.9 101 11/13/2026
0.14.8 95 11/10/2026
0.14.7 96 11/8/2026
0.14.6 104 11/5/2026
0.14.5 113 11/1/2026
0.14.4 190 10/29/2026
0.14.3 115 10/28/2026
0.14.2 141 10/20/2026
0.14.1 135 10/16/2026
0.13.13 127 10/11/2026
0.13.12 114 10/10/2026
0.13.10 140 10/6/2026
0.13.9 114 10/5/2026
0.13.8 117 10/4/2026
Loading failed