and don't forget to "./configure" again.... it's necessary in order to create the config.h again....<br><br><div class="gmail_quote">On Thu, May 10, 2012 at 11:38 AM, Wagner Patriota <span dir="ltr"><<a href="mailto:wagner.patriota@gmail.com" target="_blank">wagner.patriota@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>should work...<br><br>maybe you are compiling with "–-disable-protocols" ?<br><a href="http://ffmpeg.org/ffmpeg.html#Protocols" target="_blank">http://ffmpeg.org/ffmpeg.html#Protocols</a><div>

<div class="h5"><br><br><div class="gmail_quote">On Tue, May 8, 2012 at 4:02 PM, Denis <span dir="ltr"><<a href="mailto:info@denisgottardello.it" target="_blank">info@denisgottardello.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In data lunedì 07 maggio 2012 16:14:17, Wagner Patriota ha scritto:<br>
<div>> no, it's easier... example: if you have myprotocol.c, just add to Makefile<br>
> the following line:<br>
><br>
> OBJS-$(CONFIG_MYPROTOCOL_PROTOCOL) += myprotocol.o<br>
><br>
> that's it... look for the session "protocols I/O" in the Makefile<br>
<br>
<br>
</div>I don't understand. I have placed a file called "bufferptocolo.c" in<br>
"ffmpeg-0.10.2/libavformat/" folder. Then in the<br>
"ffmpeg-0.10.2/libavformat/makefile" file I have added this row<br>
"OBJS-$(CONFIG_BUFFER_PROTOCOL)             += bufferprotocol.o"<br>
but the file is not compiled. No error has reported.<br>
<br>
The file contains this:<br>
<br>
<br>
#if CONFIG_BUFFER_PROTOCOL<br>
<br>
static int buffer_open(URLContext *h, const char *filename, int flags)<br>
{<br>
    printf("buffer_open\n");<br>
    return 0;<br>
}<br>
<br>
static int buffer_read(URLContext *h, unsigned char *buf, int size)<br>
{<br>
    printf("buffer_read\n");<br>
    return (-1 == r)?AVERROR(errno):r;<br>
}<br>
<br>
static int buffer_write(URLContext *h, const unsigned char *buf, int size)<br>
{<br>
    printf("buffer_write\n");<br>
    return (-1 == r)?AVERROR(errno):r;<br>
}<br>
<br>
static int64_t buffer_seek(URLContext *h, int64_t pos, int whence)<br>
{<br>
    printf("buffer_seek\n");<br>
    return 0;<br>
}<br>
<br>
static int buffer_close(URLContext *h)<br>
{<br>
    printf("buffer_seek\n");<br>
    return 0;<br>
}<br>
<br>
static int buffer_get_handle(URLContext *h)<br>
{<br>
    printf("buffer_get_handle\n");<br>
    return (intptr_t) h->priv_data;<br>
}<br>
<br>
static int buffer_check(URLContext *h, int mask)<br>
{<br>
    printf("buffer_check\n");<br>
    return 0;<br>
}<br>
<br>
URLProtocol ff_buffer_protocol = {<br>
    .name                = "buffer",<br>
    .url_open            = buffer_open,<br>
    .url_read            = buffer_read,<br>
    .url_write           = buffer_write,<br>
    .url_seek            = buffer_seek,<br>
    .url_close           = buffer_close,<br>
    .url_get_file_handle = buffer_get_handle,<br>
    .url_check           = buffer_check,<br>
};<br>
<br>
#endif /* CONFIG_BUFFER_PROTOCOL */<br>
<br>
<br>
Have you got any idea?<br>
<div><div><br>
--<br>
<a href="http://www.denisgottardello.it" target="_blank">www.denisgottardello.it</a><br>
Skype: mrdebug<br>
Videosurveillance and home automation!<br>
<a href="http://www.denisgottardello.it/DomusBoss/DomusBossIndice.php" target="_blank">http://www.denisgottardello.it/DomusBoss/DomusBossIndice.php</a><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>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br>