Encoding custom frames into video

Hi, I am making a C++ application in which I have a bunch of frames (in unsigned char* format) and I need to encode them as a video using gstreamer library.
Most of the samples are about encoding the video from a camera, but my frames are not comming from camera.
Is there a good example for it?

(Preferably I want to use H265 encoder)

Maybe it helps as a starter.


1 Like

Thank you but I am looking for the code, this is just the command line.

Take a look at appsrc. That allows you to provide data from the application into a pipeline.

There are also some docs with example code about that, and a tutorial in the docs too.

1 Like

That is helpful, thank you