I did some experiments with GStreamer using the gst-launch utility. However, the ultimate goal is to implement the same functionality in my own application using the GStreamer libraries.
The problem is that it is ultimately difficult (at least for those who are not used for the GStreamer API) to "port" what I test on the command line to C / C ++ code.
An example of a command that may be needed for a port is:
gst-launch filesrc location="CLIP8.mp4" ! decodebin2 ! jpegenc ! multifilesink location="test%d.jpg"
What is the most “direct” way / approach to take such a command and write it in C in my own application.
Also, as a side issue, how can I replace multifileink with the ability to do this job in memory (I use OpenCV to do a few calculations on a given image that needs to be extracted from the video). Is it possible to immediately decode the memory and use it immediately, without saving to the file system? It can (and should) be sequential, I mean that only after moving to the next frame, I would finish processing the current one so that I would not have to store thousands of frames in memory.
What do you say?
source share