[Libav-user] how can i let avio_open2() output to memory instead of file?

Wagner Patriota wagner.patriota at gmail.com
Wed Sep 5 16:54:47 CEST 2012

On Wed, Sep 5, 2012 at 10:22 AM, 陈 钢 <chengang5 at staff.sina.com.cn> wrote:

> I found this,
> int avio_open2(AVIOContext **s, const char *url, int flags,const
> AVIOInterruptCB *int_cb, AVDictionary **options);
> how can i use a memory opinter instead of const char *url?
look for FFmpeg protocols
you can get content from any protocol FFmpeg has... or you can write one
and register it with FFmpeg

> I want to do this because i am writing a nginx flv2ts module, it read flv
> file from harddisk and output mpegts to HTTP client. And I don`t want to
> leave a file on hard disk.

yes, the same thing: protocols.... they are located in libavformat

> who can help? thanks
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120905/d4147f34/attachment.html>

More information about the Libav-user mailing list