<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-09-27 14:35 GMT+03:00 Michael IV <span dir="ltr"><<a href="mailto:explomaster@gmail.com" target="_blank">explomaster@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi!<div> I want to accumulate results of <span style="color:rgb(0,92,197);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">av_interleaved_write_frame(<wbr>) </span><span style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap"><font color="#000000">in a buffer instead of a file.</font></span><div><br></div><div><br></div><div>avformat_alloc_output_<wbr>context2() file name parameter can be null. That probably means I should be<br></div><div>able to access some internal buffer with the write frames?Or can I supply a custom buffer to write the frames to? </div><div>Tnx!</div></div></div>
<br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
<br></blockquote></div><br></div><div class="gmail_extra">Something like this</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">  Buffer io;</div><div class="gmail_extra">  int buf_size = 4096;</div><div class="gmail_extra">  void* buf = av_malloc(buf_size);</div><div class="gmail_extra">  AVIOContext* avio_ctx = avio_alloc_context((unsigned char*)buf,buf_size,1,&io,0,&Buffer::Write,&Buffer::Seek);</div><div class="gmail_extra">  AVFormatContext* ofmt = avformat_alloc_context();</div><div class="gmail_extra">  ofmt->pb = avio_ctx;</div><div><br></div></div></div>