Log in

View Full Version : Writing simple video encoder using libx264 API.


Zarbis
1st November 2012, 08:52
Hi there, not sure if it's correct place to ask, but anyways. I have program, that generates series of images and for now it just dumps them as bmp's, then i run external ffmpeg to encode them. I want to encode them on the fly internally, without piping to ffmpeg/avconv/x264. I've tried to use libav, but got completely overwhelmed by it's complexity and found libx264 API pretty simple to use.
The major question is how to feed data to encoder and how to write encoded frames to file. I've looked through sources and found cli_input and cli_output types that provide access to different i/o methods, but they seem to be explicitly for x264 executable use and unavailable in API.
So the question is: what is correct way to input and output data to/from libx264 encoder.

Thanks for help in advance.