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

jonsmirl at gmail.com jonsmirl at gmail.com
Tue Apr 29 03:48:30 CEST 2014


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.

Could not write header for output file #0 (incorrect codec parameters
?): Protocol not found

jonsmirl at linaro-developer:~/libav$ ./avconv -v verbose -f alsa -ac 2
-i pulse -f video4linux2 -i /dev/video0 -strict experimental -vcodec
libx264 -acodec aac -hls_time 10 -hls_list_size 999999999
foo/output.m3u8
avconv version v10_beta1-614-g1eb57e1, Copyright (c) 2000-2014 the
Libav developers
  built on Apr 28 2014 22:22:05 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu8)
  configuration: --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'
  libavutil     53. 13. 0 / 53. 13. 0
  libavcodec    55. 49. 0 / 55. 49. 0
  libavformat   55. 16. 0 / 55. 16. 0
  libavdevice   54.  0. 0 / 54.  0. 0
  libavfilter    4.  4. 0 /  4.  4. 0
  libavresample  1.  2. 0 /  1.  2. 0
  libswscale     2.  1. 2 /  2.  1. 2
[alsa @ 0x1f34c40] capture with some ALSA plugins, especially dsnoop, may hang.
[alsa @ 0x1f34c40] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, alsa, from 'pulse':
  Duration: N/A, start: 1398727750.995358, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[video4linux2 @ 0x1f490e0] [8]Capabilities: 4000001
[video4linux2 @ 0x1f490e0] Querying the device for the current frame size
[video4linux2 @ 0x1f490e0] Setting frame size to 640x480
[video4linux2 @ 0x1f490e0] Estimating duration from bitrate, this may
be inaccurate
Input #1, video4linux2, from '/dev/video0':
  Duration: N/A, start: 22641.291910, bitrate: 147456 kb/s
    Stream #1.0: Video: rawvideo, yuyv422, 640x480, 147456 kb/s, 30
fps, 1000k tbn
[buffer @ 0x1f4b700] w:640 h:480 pixfmt:yuyv422
[fps @ 0x1f30680] fps=30/1
[buffersink @ 0x1f4b420] auto-inserting filter 'auto-inserted fifo 0'
between the filter 'fps for output stream 0:0' and the filter 'output
stream 0:0'
[format @ 0x1f4b840] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'Parsed filter 0 null' and the filter 'format'
[scale @ 0x1f31560] w:640 h:480 fmt:yuyv422 -> w:640 h:480 fmt:yuv420p flags:0x4
[abuffer @ 0x1f31660] tb:1/48000 samplefmt:s16 samplerate: 48000 ch layout:0x3
[abuffersink @ 0x1f30960] auto-inserting filter 'auto-inserted fifo 0'
between the filter 'audio format for output stream 0:1' and the filter
'output stream 0:1'
[aformat @ 0x1f31860] auto-inserting filter 'auto-inserted resampler
0' between the filter 'Parsed filter 0 anull' and the filter 'audio
format for output stream 0:1'
[resample @ 0x1f32200] fmt:s16 srate:48000 cl:stereo -> fmt:fltp
srate:48000 cl:stereo
[libx264 @ 0x1f4a6e0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x1f4a6e0] profile High, level 3.0
Output #0, hls, to 'foo/output.m3u8':
  Metadata:
    encoder         : Lavf55.16.0
    Stream #0.0: Video: libx264, yuv420p, 640x480, q=-1--1, 90k tbn, 30 tbc
    Stream #0.1: Audio: aac, 48000 Hz, stereo, fltp, 200 kb/s
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo -> libx264)
  Stream #0:0 -> #0:1 (pcm_s16le -> aac)
Could not write header for output file #0 (incorrect codec parameters
?): Protocol not found
[fps @ 0x1f30680] 0 frames in, 0 frames out; 0 frames dropped, 0
frames duplicated.
jonsmirl at linaro-developer:~/libav$

-- 
Jon Smirl
jonsmirl at gmail.com


More information about the libav-tools mailing list