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

陈 钢 chengang5 at staff.sina.com.cn
Wed Sep 5 15:22:05 CEST 2012

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?

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.

who can help? thanks

More information about the Libav-user mailing list