On Wed, Sep 5, 2012 at 10:22 AM, 陈 钢 <span dir="ltr"><<a href="mailto:chengang5@staff.sina.com.cn" target="_blank">chengang5@staff.sina.com.cn</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I found this,<br>
<br>
int avio_open2(AVIOContext **s, const char *url, int flags,const AVIOInterruptCB *int_cb, AVDictionary **options);<br>
<br>
how can i use a memory opinter instead of const char *url?<br>
<br></blockquote><div><br>look for FFmpeg protocols<br>you can get content from any protocol FFmpeg has... or you can write one and register it with FFmpeg<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
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.<br></blockquote><div><br>yes, the same thing: protocols.... they are located in libavformat<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
who can help? thanks<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br>