Egami.Video
1.3.0
dotnet add package Egami.Video --version 1.3.0
NuGet\Install-Package Egami.Video -Version 1.3.0
<PackageReference Include="Egami.Video" Version="1.3.0" />
<PackageVersion Include="Egami.Video" Version="1.3.0" />
<PackageReference Include="Egami.Video" />
paket add Egami.Video --version 1.3.0
#r "nuget: Egami.Video, 1.3.0"
#:package Egami.Video@1.3.0
#addin nuget:?package=Egami.Video&version=1.3.0
#tool nuget:?package=Egami.Video&version=1.3.0
Egami.Video
A fully managed, MIT-licensed video library for .NET 10, built on Egami. Video frames are Egami rasters, so resizing, color conversion and drawing from Egami work on video with no copying.
- Containers: MP4 and QuickTime (fragmented MP4 too), Matroska and WebM, AVI (OpenDML over 1 GB), IVF, YUV4MPEG2, Ogg, and the audio files WAV, FLAC, MP3, AIFF and CAF.
- Video codecs: AV1, VP9 and VP8 decode and encode (AV1 decodes equal to libaom, VP9 to libvpx), FFV1 for lossless archives and Motion JPEG. H.264 decodes and encodes through the opt-in package Egami.Video.H264, and HEVC decodes through Egami.Video.Hevc.
- Audio codecs: PCM, FLAC, Opus, ALAC and AAC LC decode and encode; Vorbis, MP3, AC-3 and G.711 decode; audio filters.
- Remuxing, trimming with smart cut and seeking without decoding what need not be; SRT, WebVTT and ASS subtitles.
- Editing (
VideoEdit,Clip): joins, transitions, overlays, keying, layouts and titles, rendered to a file. - Deinterlacing (
Deinterlacer), HDR metadata, scene detection, waveforms and spectrograms.
Royalty-free codecs only in this package (the MP3 and AC-3 patents have expired; AAC is decoded and encoded as AAC LC only, without SBR, parametric stereo, USAC or DRC). No native code, no wrapped C or C++ libraries.
Read frames
using var reader = VideoReader.Open("camera.avi");
foreach (VideoFrame<Rgb8> frame in reader.ReadFrames<Rgb8>())
{
using (frame)
frame.Raster.Save($"frame-{frame.Timestamp.Ticks}.png");
}
Write a clip
using var writer = VideoWriter.Create("out.mkv",
new VideoWriterOptions { Codec = VideoCodecs.MotionJpeg, FrameRate = new Rational(30, 1), Quality = 85 });
foreach (Raster<Rgb8> image in images)
writer.WriteFrame(image);
Remux without decoding
using var demuxer = MediaFile.OpenDemuxer("in.avi");
using var muxer = MediaFile.CreateMuxer("out.mkv", demuxer.Tracks);
while (demuxer.ReadPacket() is { } packet)
using (packet) muxer.WritePacket(packet);
Documentation
The Video guide and the API reference are on Egami's site. Egami.Video is built and tested in the Egami repository.
License
MIT. See LICENSE and THIRD-PARTY-NOTICES.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Egami (>= 1.4.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Egami.Video:
| Package | Downloads |
|---|---|
|
Egami.Video.H264
H.264 (AVC) decoding and encoding for Egami.Video, in managed code: decodes Constrained Baseline, Main, High, High 10 and High 4:2:2 streams, progressive and interlaced, in MP4, MOV, Matroska, AVI and raw .h264 files; encodes 8-bit 4:2:0 in Constrained Baseline, Main and High. H.264 is covered by patents; Egami's authors grant no patent rights and are not lawyers. Whether you need a patent licence depends on your country and on how you use and distribute this package; commercial products may need one from the AVC patent pools or holders. Egami.Video itself contains no H.264 codec and does not depend on this package. |
|
|
Egami.Video.Hevc
HEVC (H.265) decoding for Egami.Video, in managed code: Main, Main 10, Main 12 and the format range extensions to 12 bits, in MP4, MOV, Matroska and raw .h265 files, through Egami.Heic's HEVC decoder. HEVC is covered by patents; Egami's authors grant no patent rights and are not lawyers. Whether you need a patent licence depends on your country and on how you use and distribute this package; commercial products may need one from the HEVC patent pools or holders. Egami.Video itself contains no HEVC decoder and does not depend on this package. |
GitHub repositories
This package is not used by any popular GitHub repositories.