Modifying CISCO openh264 to take image frames and out compressed frames
Has anyone tried to modify the CISCO openh264 library to take JPEG images as input and compress them into P and I frames (output as frames, NOT video) and similarly to modify decoder to take compressed P and I frames and generate uncompressed-frames ? I have a camera looking at a static scene and taking pictures (1280x720p) every 30 second. The scene is almost static. Currenlty I am using JPEG compression to compress each frame individually and it is resulting in an image size of ~270KB. This compressed frame is transferred via internet to a storage server. Since there is very little motion in the scene, the 'I' frame size will be very small (I think it should be ~20-50KB). So it will be very cost effective to transmit I frames over internet instead of JPEG images. Can anyone guide me to some project or about how to proceed with this task ?
You are describing exactly what a codec does. It takes images, and compresses them. There relationship in time is irrelevant to the compression step. The decoder than decides how to display or just write them to disk. You don't need to modify open264, what you want to do is exactly what it is designed to do.
How can I pass an ifstream as argument to std::thread function?
File handling in c++ to read two integers
linux scheduling to strictly prefer higher priority thread than low priority thread
Returning reference using a ternery expression causes runtime error
In which cases is it okay to allocate on the stack
Simplest way to know a class's type
Draw a vector<glm::vec3> opengl c++
Normal member methods with same name as templated member methods
Efficiently converting complex to its polar form
A* Pathfinding without diagonal movement
Extending namespace std with backported types and templates from newer C++ standards
What is address 0xbaddc0dedeadbead “Bad decode dead bead”
General Solution for classes in which copy constructor using default constructor
How to parse UTF-8 Chinese string
OpenCL returning -64 upon calling clGetPlatformIDs
Eclipse cdt debug quote error