You must be an experienced in libavcodec
I need to make a wrapper for libavcodec library that will create encoded video from images.
I need following api:
start(filename, framerate) - initializes video codec and prepares system for adding images to video
addFrame(*data) - add a frame to video "on the fly" as known structure of fixed resolution
finish() - closes the file and cleans up
currently i save the images and use:
ffmpeg -y -report -f -image2 -framerate 40 -pattern_type sequence -i %[url removed, login to view] -vcodec -libx264 -crf 30 -preset fast -r 40 OutputDirectoryName/[url removed, login to view]
command to generate video
I want to get rid of necessity to save image files. I'd like to start encoding process, provide the process with frame data one by one (asynchronously), and finilize the encoding.
write SALAM in your proposal so i know u read it