I want to write a code which can receive video in form of raw matrices and audio samples, (after encoding ) combine this audio and video in to some container i.e. mpeg-ts. and the stream it to the internet in real time. I am desparately reading everything but of no avail. Can somebody help me ? is this possible using ffmpeg API ?