ColinChang.FFmpegHelper 1.3.1

This is a common utility that can help you to run most of ffmpeg commands.It contains a RTSP helper that can recorder a video from RTSP stream.Plus it can use watermark and screenshot.Windows(x64,x86) and macOS are supported currently,Linux will be supported soon.

Install-Package ColinChang.FFmpegHelper -Version 1.3.1
dotnet add package ColinChang.FFmpegHelper --version 1.3.1
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.

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.

Release Notes

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

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.3.1 62 7/26/2019
1.2.1 188 4/14/2019
1.2.0 120 4/9/2019
1.0.0 108 4/7/2019