shiv50084 / ffencoder Goto Github PK
View Code? Open in Web Editor NEWThis project forked from rockcarry/ffencoder
a video recorder based on ffmpeg.
License: GNU General Public License v3.0
This project forked from rockcarry/ffencoder
a video recorder based on ffmpeg.
License: GNU General Public License v3.0
!!!!!!!!!!!!!!!!!!!! ! 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.