Git Product home page Git Product logo

openh264lib.net's Introduction

OpenH264Lib.NET

OpenH264 wrapper library for .NET Framework.   This library is made by C++/CLI language to bridge other .NET Framework language like C#.   This library is encode only.(not support decoding H264 frame.)

How to use

// create encoder
var encoder = new OpenH264Lib.OpenH264Encoder();

// setup encoder
float fps = 10.0f;
encoder.Setup(640, 480, fps, (data, length, keyFrame) =>
{
    // called when each frame encoded.
    Console.WriteLine("Encord {0} bytes, KeyFrame:{1}", length, keyFrame);
});

// encode frame
foreach(var bmp in bitmaps)
{
    encoder.Encode(bmp, i);
}

See Example

(1) Open OpenH264Lib.sln Visual Studio solution file.
(2) Build OpenH264Lib project. Then created OpenH264Lib.dll.
(3) Build OpenH264Sample project. This is example C# project how to use OpenH264Lib.dll.
(4) Download 'openh264-1.7.0-win32.dll' from Cisco's OpenH264 Github repository, and copy it to OpenH264Sample/bin/Debug/ directory.
(5) Execute OpenH264Sample.exe. This program demos encode bmp/jpg/png images you select.

openh264lib.net's People

Contributors

secile avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.