ColinChang.FFmpegHelper 1.3.1

dotnet add package ColinChang.FFmpegHelper --version 1.3.1                
NuGet\Install-Package ColinChang.FFmpegHelper -Version 1.3.1                
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="ColinChang.FFmpegHelper" Version="1.3.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ColinChang.FFmpegHelper --version 1.3.1                
#r "nuget: ColinChang.FFmpegHelper, 1.3.1"                
#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 ColinChang.FFmpegHelper as a Cake Addin
#addin nuget:?package=ColinChang.FFmpegHelper&version=1.3.1

// Install ColinChang.FFmpegHelper as a Cake Tool
#tool nuget:?package=ColinChang.FFmpegHelper&version=1.3.1                

This is a common utility that can help you to run any ffmpeg commands. It contains a RTSP helper that can recorder a video from RTSP stream.

It's based on .net standard 2.0

FFmpegHelper

FFmpegHelper can run a common ffmpeg command with the formate.ffmpeg [beforeinput options] -i input [beforeoutput options] output.We provide some methods inside as samples,you can extend any other useful common methods like what we provide.

method function
ScreenshotAsync Screenshot
WatermarkAsync Watermark a video
ConvertToAsync Convert video format
ExtractVideoAsync Extract a segment from a video
ReplaceBackgroundAsync Replace the background of input file and overlay it on top of a static background

RtspHelper

RtspHelper is a useful utility based on FFmpegHelper to work with RTSP stream. It provides 3 functions.

  • Recording.recording a specify RTSP stream to a video file
  • Watermark.marking a picture watermark during recording.
  • Screenshot.screenshot once or set a timer.

Platforms

  • Windows(x86,x64)
  • macOS(x64)

This package is based on FFmpeg v4.1.4 Resources under ffmpeg_v4.1.4 are from FFmpeg officical Website.You can download a newer version and replace it in the project.We are using the official shared version of ffmpeg package.

Since Linux has so many different version branches,we don't support it yet.FFmpeg provides built packages for Debian/Ubuntu/Fedora and Redhat only.For other versions and custom requirements,you can build FFmpeg from its source code.So here we don't provide linux support. but we will handle it soon.

If you wanna extend Linux support,just edit this place.

Principle

We just packaged a library to transfer command to FFmpeg CLI.It's useful and simiple,except this,you also can use the FFmpeg API to use it for development.FFmpeg SDK only provide for baisc language like C.

Guide

Check the sample project to see how to use it easily.

Product 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ColinChang.FFmpegHelper:

Package Downloads
ColinChang.RtspStream2VideoFile

This package has stopped updating,please use ColinChang.FFmpegHelper instead. https://www.nuget.org/packages/ColinChang.FFmpegHelper/

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.1 2,371 7/26/2019
1.2.1 1,448 4/14/2019
1.2.0 1,730 4/9/2019
1.0.0 1,671 4/7/2019

1.update watermark method name
2.add a function for videos converter
3.add a function for extracting a segment from a video
4.add functions for replacing videos background
5.upgrade ffmpeg to v4.1.4