Thank you both guys for the quick replies.
It’s quite interesting that libavcodec can be interfaced with the encoder.
Actually I am using gstreamer becuase I need to get both the video data and also the raw data of the frames from the USB camera.
gstreamer, with the use of parallel pipelines, allows me to do this.
I did not started to study the libavcodec code yet, but I think this is also possible using this libraries.
@ldts, could you confirm that libavcodec would let me access to camera raw frames ?
@Loic, you are right, of course.