Giter Site home page Giter Site logo

shiv50084 / ffencoder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rockcarry/ffencoder

0.0 0.0 0.0 3.97 MB

a video recorder based on ffmpeg.

License: GNU General Public License v3.0

Shell 0.24% C 98.25% Makefile 0.14% C++ 1.15% Objective-C 0.22%

ffencoder's Introduction

!!!!!!!!!!!!!!!!!!!!
! important notice !
!!!!!!!!!!!!!!!!!!!!

this project is stop maintained and its source code is out of date.
the lastest ffencode source code is keeping maintain in v4l2test project.

please refer to v4l2test project:
https://github.com/rockcarry/v4l2test



+-------------+
 instroduction
+-------------+
ffencoder is a video encoder based on ffmpeg. It wraps around ffmpeg encoding and muxing functions, providing a simple interface to encode audio and video data into mp4 file.

I wrote a script to auto make dll from ffmpeg source code for mingw32. It will auto download and patch source code, and then make out dll file. I only enable h264 and aac encoding of ffmpeg configure to make dll size small.

It's quite easy to use, only exposing four C functions interface for user. It has already been used and tested on my ffnes project for nes game replay recording.

+-----------+
 how to make
+-----------+
1. first you need a ubuntu pc, and install wget, git, yasm, mingw32, etc.
2. run script build_ffmpeg_lib.sh, it will download and build ffmpeg, x264, faac source codes.
3. cd src dir, then make, you will get ffencoder.dll
4. run i586-mingw32msvc-strip ffencoder.dll, this will make ffencoder.dll size small
5. these files: ffencoder.dll, ffencoder.h are for your usage.
6. for msvc++ you could use pexports and lib tool to make a ffencoder.lib from ffencoder.dll


+-----------+
 how to use
+-----------+
no need to explain more, because only 4 functions:
void* ffencoder_init (FFENCODER_PARAMS *params);
void  ffencoder_free (void *ctxt);
void  ffencoder_audio(void *ctxt, void *data[8], int nbsample   );
void  ffencoder_video(void *ctxt, void *data[8], int linesize[8]);

+---------+
 features
+---------+
1. support multi-thread encoding
2. auto drop frame when cpu could not encode in time
3. support push rtmp live stream


rockcarry
2016-9-12

ffencoder's People

Contributors

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