In that case I would take a look at ...
Mmm... My entire code is with OpenCV, and as I know I can execute a gstreamer pipeline from OpenCV function, by setting this into VideoWriter initialization, by inserting this pipeline:
VideoWriter(string("appsrc ! autovideoconvert ! v4l2video1h264enc extra-controls=\"encode,h264_level=10,h264_profile=4,frame_level_rate_control_enable=1\" ! h264parse ! rtph264pay config-interval=1 pt=96 ! filesink location=pfile.mp4"), CV_FOURCC('H', '2', '6', '4'), 15, Size(DEFAULT_FRAME_Y, DEFAULT_FRAME_X));
I don't remember where I found the pipeline as example.
The file pfile.mp4 is created, but is always empty..
So I am going to read something more about gstreamer.
Thank you for the infos !