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.
readLine() not being saved properly
Check socket with select() before using send()
Error: “Function” not declared in this scope
syntax for array of pointers in C++
Why the prvalue below in [expr.ref]/2?
How to access data from `std::ostringstream` without copying it [duplicate]
Why can't we generalize the pointer declaration?
C++ invalid order of execution for cin and cout on XCode
Tree and its preorder traversal - Code error
Why is my 2D array of double not accepted as a valid parameter?
How to allow only numbers in a variable?
Copy iterator range to vector without duplication
Is it better to include <cassert> or <assert.h>? [duplicate]
Using an Array of pointers to copy a PPM Image
Avoiding virtual function calls in a computational graph
Null session pipes example, write access