[libav-tools] Could not write header for output file #0 (incorrect codec parameters ?): Protocol not found

Luca Barbato lu_zero at gentoo.org
Tue Apr 29 14:19:23 CEST 2014


On 29/04/14 14:00, jonsmirl at gmail.com wrote:
> On Tue, Apr 29, 2014 at 6:47 AM, Luca Barbato <lu_zero at gentoo.org> wrote:
>> On 29/04/14 03:48, jonsmirl at gmail.com wrote:
>>> I built avconv like this...
>>>  ./configure --enable-libx264 --enable-gpl --disable-everything
>>> --enable-protocol=hls --enable-muxer=hls --enable-demuxer=avi
>>> --enable-decoder=pcm_s16le,rawvideo --enable-encoder=libx264,aac
>>> --enable-indev=v4l2,alsa
>>>
>>> Does anyone know which build option I am missing to cause this? I am
>>> trying to make libav smaller for an embedded system.
>>
>> file protocol I'd guess.
> 
> No change from adding file protocol except binary is a lot larger. Same error.

Make sure you rebuilt it properly, you are missing the file protocol for
sure (tested locally).

You might use the pulse capture directly from it btw.

In doubt

diff --git a/libavformat/avio.c b/libavformat/avio.c
index fe42974..5b05b29 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -205,6 +205,7 @@ int ffurl_alloc(URLContext **puc, const char
*filename, int flags,
             return url_alloc_for_protocol(puc, up, filename, flags,
int_cb);
     }
     *puc = NULL;
+    av_log(NULL, AV_LOG_ERROR, "Protocol %s not found\n", proto_str);
     return AVERROR_PROTOCOL_NOT_FOUND;
 }



More information about the libav-tools mailing list