2017-09-27 14:35 GMT+03:00 Michael IV <[email protected]>:

> Hi!
>  I want to accumulate results of av_interleaved_write_frame() in a buffer
> instead of a file.
>
>
> avformat_alloc_output_context2() file name parameter can be null. That
> probably means I should be
> able to access some internal buffer with the write frames?Or can I supply
> a custom buffer to write the frames to?
> Tnx!
>
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
Something like this

  Buffer io;
  int buf_size = 4096;
  void* buf = av_malloc(buf_size);
  AVIOContext* avio_ctx = avio_alloc_context((unsigned
char*)buf,buf_size,1,&io,0,&Buffer::Write,&Buffer::Seek);
  AVFormatContext* ofmt = avformat_alloc_context();
  ofmt->pb = avio_ctx;
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to