SOLVED: Harware-accelerated video encoding from C++ buffer with gstreamer omxh264enc and filesink

@techtruth
Thank you for sharing your experience.
Do you think if it would work well for multiple inputs?
I’m using multiple cameras so I think I need multiple gstreamer pipelines for it.
then, can I just simply make multiple gst_app_t structures?
In my implementation it didn’t work well, so I’m trying to use your code as a test.

Thank you.