Xabe.FFmpeg
2.2.3
See the version list below for details.
dotnet add package Xabe.FFmpeg --version 2.2.3
NuGet\Install-Package Xabe.FFmpeg -Version 2.2.3
<PackageReference Include="Xabe.FFmpeg" Version="2.2.3" />
<PackageVersion Include="Xabe.FFmpeg" Version="2.2.3" />
<PackageReference Include="Xabe.FFmpeg" />
paket add Xabe.FFmpeg --version 2.2.3
#r "nuget: Xabe.FFmpeg, 2.2.3"
#:package Xabe.FFmpeg@2.2.3
#addin nuget:?package=Xabe.FFmpeg&version=2.2.3
#tool nuget:?package=Xabe.FFmpeg&version=2.2.3
Xabe.FFmpeg
.NET Standard wrapper for FFmpeg. It's allow to process media without know how FFmpeg works, and can be used to pass customized arguments to FFmpeg from dotnet core application.
Using
You have to have installed FFmpeg and added it to your PATH variable or specify directory where FFmpeg executables are before run conversion in variable FFbase.FFmpegDir. Default the library is trying to find FFmpeg executables names contains "ffprobe", "ffmpeg". This function is case insensitive. Those names can be changed in FFbase.FFmpegExecutableName and FFbase.FFprobeExecutableName.
Install the Xabe.FFmpeg NuGet package via nuget:
PM> Install-Package Xabe.FFmpeg
Creating media info:
IMediaInfo mediaInfo = new MediaInfo("videofile.mkv");
Media info contains information about video like: duration, audio format, video format, radio, frame rate, height, width, size in Properties property.
It is possible to have more elastic way to convert media. Conversion class is builder for FFmpeg command. You can specify all implemented FFmpeg options and run process:
string output = Path.ChangeExtension(Path.GetTempFileName(), ".mp4");
bool result = await ConversionHelper.ToMp4("videofile.mkv", output)
.Start();
or
string outputPath = Path.ChangeExtension(Path.GetTempFileName(), Extensions.Mp4);
bool conversionResult = await new Conversion()
.SetInput("videofile.mkv")
.Rotate(rotateDegrees)
.SetOutput(outputPath)
.Start();
it is possible to give your own arguments
bool conversionResult = await new Conversion().Start("-i \"C:\Xabe.FFmpeg.Test\bin\Debug\netcoreapp2.0\Resources\SampleVideo_360x240_1mb.mkv\" \"C:\Users\tzmuda\AppData\Local\Temp\tmp9B8A.mp4\"");
Features
- Cross-platform support
- Getting an information about video
- Extracting audio or video
- Convert media
- Create snapshot
- Add audio to video
- Concatenate multiple videos
- Reverse
- Change speed
- Rotate video
- Pass parameters directly to FFmpeg
- Set watermark for video file
Lincence
Xabe.FFmpeg is licensed under MIT - see License for details.
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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
.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. |
-
.NETStandard 2.0
- JetBrains.Annotations (>= 11.0.0)
- Newtonsoft.Json (>= 10.0.3)
NuGet packages (20)
Showing the top 5 NuGet packages that depend on Xabe.FFmpeg:
Package | Downloads |
---|---|
Xabe.FFmpeg.Downloader
FFmpeg assemly downloader. Download ffmpeg binary data on Windows, Mac or Linux. |
|
Kayisoft.Abp.XabeFFmpeg
Kayisoft Xabe FFmpeg Module |
|
RenderHaze.VideoRenderer
Timeline-based video compositor, part of RenderHaze |
|
Ae.MediaMetadata
Extracts EXIF and other information from media files using ffmpeg. |
|
CommonNetFuncs.Media.Ffmpeg
Helper methods for running tasks with ffmpeg using the Xabe.FFmpeg package. |
GitHub repositories (5)
Showing the top 5 popular GitHub repositories that depend on Xabe.FFmpeg:
Repository | Stars |
---|---|
MayDay-wpf/AIBotPublic
AIBot PRO 是一个基于.NET 6 的 AI聚合客户端 to C 弱 to B 可以集成众多AI产品(ChatGPT,Gemini,Claude,文心一言,通义千问,讯飞星火),无感切换对话,支持知识库、插件开发、AI流程引擎(workflow)、以及开放平台对外输出定制化的特色AI API
|
|
TypNull/Tubifarry
Tubifarry is a Lidarr plugin that enhances your music library by fetching music from YouTube, integrating with Slskd for Soulseek access, automating Spotify playlist imports, converting files, and retrieving soundtracks from Radarr and Sonarr.
|
|
cliveontoast/GoMoPho
Google motion photos video extractor
|
|
aehyok/.NET8.0
net8.0 efcore mysql redis rabbitmq 微服务
|
|
Dixin/Blog
Code examples for blog https://weblogs.asp.net/dixin.
|
Version | Downloads | Last Updated |
---|---|---|
6.0.2 | 437 | 8/8/2025 |
6.0.1 | 60,888 | 2/13/2025 |
6.0.0 | 1,394 | 2/10/2025 |
5.2.6 | 424,065 | 3/14/2023 |
5.2.5 | 22,699 | 2/9/2023 |
5.2.4 | 15,305 | 1/25/2023 |
5.2.3 | 14,552 | 12/22/2022 |
5.2.2 | 2,416 | 12/20/2022 |
5.2.1 | 4,000 | 12/11/2022 |
5.2.0 | 140,176 | 5/5/2022 |
5.1.0 | 55,849 | 1/18/2022 |
5.0.2 | 133,717 | 5/28/2021 |
5.0.1 | 4,797 | 5/22/2021 |
5.0.0 | 4,120 | 5/15/2021 |
4.4.1 | 6,332 | 5/11/2021 |
4.4.0 | 51,228 | 12/9/2020 |
4.3.1 | 64,147 | 9/24/2020 |
4.3.0 | 2,787 | 9/18/2020 |
4.2.0 | 11,961 | 8/31/2020 |
4.1.1 | 12,148 | 7/2/2020 |
4.1.0 | 17,678 | 6/6/2020 |
4.0.0 | 12,085 | 5/1/2020 |
3.6.2 | 32,399 | 4/1/2020 |
3.6.1 | 5,484 | 3/21/2020 |
3.6.0 | 1,806 | 3/14/2020 |
3.5.2 | 15,223 | 2/11/2020 |
3.5.1 | 13,329 | 12/18/2019 |
3.5.0 | 22,193 | 9/20/2019 |
3.4.0 | 5,198 | 7/19/2019 |
3.3.0 | 9,292 | 6/27/2019 |
3.2.0 | 1,842 | 6/15/2019 |
3.1.10 | 1,814 | 6/1/2019 |
3.1.9 | 2,618 | 4/30/2019 |
3.1.7 | 1,622 | 4/27/2019 |
3.1.6 | 1,939 | 4/10/2019 |
3.1.5 | 3,838 | 2/8/2019 |
3.1.4 | 609,917 | 9/21/2018 |
3.1.3 | 2,078 | 9/2/2018 |
3.1.2 | 1,783 | 8/30/2018 |
3.1.1 | 2,440 | 8/22/2018 |
3.1.0 | 2,447 | 7/20/2018 |
3.0.2 | 2,866 | 5/16/2018 |
3.0.1 | 2,631 | 3/23/2018 |
3.0.0 | 2,405 | 3/21/2018 |
2.3.1 | 3,206 | 1/28/2018 |
2.3.0 | 3,145 | 12/13/2017 |
2.2.9 | 2,224 | 12/4/2017 |
2.2.8 | 4,515 | 11/20/2017 |
2.2.7 | 1,968 | 11/15/2017 |
2.2.6 | 1,989 | 11/13/2017 |
2.2.5 | 1,999 | 11/9/2017 |
2.2.4 | 1,961 | 11/7/2017 |
2.2.3 | 2,231 | 10/31/2017 |
2.2.2 | 2,030 | 10/25/2017 |
2.2.1 | 2,134 | 10/24/2017 |
2.2.0 | 363,229 | 10/22/2017 |
2.1.1 | 36,759 | 10/4/2017 |
2.1.0 | 1,957 | 9/28/2017 |
2.0.6 | 1,953 | 9/28/2017 |
2.0.5 | 1,980 | 9/28/2017 |
2.0.3 | 2,261 | 9/14/2017 |
2.0.2 | 2,018 | 9/7/2017 |
2.0.1 | 2,076 | 9/6/2017 |
2.0.0 | 20,631 | 9/4/2017 |
1.5.1 | 1,914 | 9/3/2017 |
1.5.0 | 1,896 | 8/29/2017 |
1.4.2 | 1,831 | 8/26/2017 |
1.4.1 | 1,921 | 8/23/2017 |
1.4.0 | 1,836 | 8/22/2017 |
1.3.0 | 1,885 | 8/20/2017 |
1.2.3 | 1,905 | 8/20/2017 |
1.2.2 | 1,831 | 8/17/2017 |
1.2.1 | 1,872 | 8/17/2017 |
1.2.0 | 1,900 | 8/17/2017 |
1.1.2 | 1,893 | 8/16/2017 |
1.1.1 | 1,894 | 8/16/2017 |
1.1.0 | 1,839 | 8/15/2017 |
1.0.10 | 1,913 | 7/25/2017 |
1.0.8 | 1,883 | 7/20/2017 |
1.0.7 | 1,922 | 7/19/2017 |
1.0.6 | 1,974 | 7/1/2017 |
1.0.5 | 1,896 | 7/1/2017 |
1.0.4 | 1,964 | 7/1/2017 |
1.0.3 | 1,862 | 6/30/2017 |
1.0.2 | 1,936 | 6/30/2017 |
1.0.1 | 2,236 | 6/27/2017 |
1.0.0 | 2,564 | 6/25/2017 |