Skip to content
forked from sdcb/Sdcb.FFmpeg

FFmpeg basic .NET API generated by CppSharp

License

Notifications You must be signed in to change notification settings

aslyr/Sdcb.FFmpeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFmpeg.AutoGen main

NuGet Packages

Package Link
Sdcb.FFmpeg NuGet
Sdcb.FFmpeg.runtime.windows-x64 NuGet

FFmpeg auto generated unsafe bindings for C#/.NET, forked from https://github.com/Ruslan-B/FFmpeg.AutoGen, optimized for:

  • Using standard [DllImport] instead of LoadLibrary
  • Minimized repository size, removed all ffmpeg *.dll binaries using bfg
  • Auto download FFmpeg binaries from known existing sources
  • Omiting shorter enum values like AVCodecID.H264 instead of AVCodecID.AV_CODEC_ID_H264
  • Omiting same prefix macro into a combined enum like AVChannels.LayoutStereo instead of AV_CH_LAYOUT_STEREO
  • Other optimization and fixs...

Usage

For the more sophisticated operations please refer to offical ffmpeg Documentation expecially API section of it.

  • on Windows:
    Install NuGet package: https://www.nuget.org/packages/Sdcb.FFmpeg.runtime.windows-x64

  • on OS X:
    Install ffmpeg via Homebrew:

brew install ffmpeg
  • on Linux:
    Use your package manager of choice, in Ubuntu 22.04 & ffmpeg 5.0.1 specificly, you can write following commands:
apt update
apt install software-properties-common
add-apt-repository ppa:savoury1/ffmpeg4 -y
add-apt-repository ppa:savoury1/ffmpeg5 -y
apt update
apt install ffmpeg -y

Generation

The bindings generator uses CppSharp.

Prerequisites:

  • Visual Studio 2022 with C# and C++ desktop development workloads and Windows SDK for desktop.

Steps to generate:

  • Run Sdcb.FFmpeg.AutoGen
  • All files with extension *.g.cs in Sdcb.FFmpeg project will be regenerated.

License

Copyright © Sdcb, Ruslan Balanukhin 2022 All rights reserved.

Distributed under the GNU Lesser General Public License (LGPL) version 3.
http://www.gnu.org/licenses/lgpl.html

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

FFmpeg basic .NET API generated by CppSharp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%