<div dir="ltr"><div>Hi,</div><div><br></div><div>I am using libavformat to encapsulate video and audio in a mpegts container. </div><div><br></div><div>I have it working when I outputting to a file, but I need the data in memory for further distribution. </div><div><br></div><div>I have been seeking for a callback or some other way to extract the bytes normally is written to the output file.</div><div><br></div><div>How would I go about outputting the data to memory instead?</div><div><br></div><div>Kind regards</div><div><br></div><div>Jesper</div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div></div>