[FFmpeg-user] Could not write header for output file #0 (incorrect codec parameters ?):

juan carlos Rebate nerus492 at gmail.com
Tue Jun 21 23:35:47 CEST 2016


2016-06-21 21:43 GMT+02:00 juan carlos Rebate <nerus492 at gmail.com>:

>
>
> 2016-06-21 21:27 GMT+02:00 Cley Faye <cleyfaye at gmail.com>:
>
>> 2016-06-21 21:06 GMT+02:00 juan carlos Rebate <nerus492 at gmail.com>:
>>
>> > I keep looking but not quite find anything to help me solve the problem
>>
>>
>> ​> ffmpeg -y -i rtp://239.0.0.107:8208
>>
>>  -map 0 -f mp4 -c:v mpeg4 -listen 1
>> http://localhost:80 <http://localhost/> -multiple_requests 1 -seekable 1
>> -bufsize 200k -r 299
>> -re -b:v 982k​
>>
>> ​What was told in the previous message is that some of your arguments are
>> misplaced. In the quoted command line, everything after localhost:80 is
>> ignored because it is misplaced. Maybe fixing that first will help.​
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>>
> that is not the reason, ffmpeg command ignores any order, there is no
> place to indicate how have correctamete
>
Now if you are inside, it is assumed that this is the right place but you
still see the same error,
>ffmpeg -i rtp://239.0.0.107:8208 -map 0 -f mp4 -c:v mpeg4 -listen 1
http://192.168.1.41:80
ffmpeg version N-80117-gdac030d Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig
--enable-frei0r --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --enable-libschroedinger --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
--enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 43.100 / 57. 43.100
  libavformat    57. 37.101 / 57. 37.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.100 /  6. 46.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[NULL @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[NULL @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] non-existing SPS 0 referenced in buffering period
[h264 @ 0000000000913b20] non-existing PPS 0 referenced
[h264 @ 0000000000913b20] decode_slice_header error
[h264 @ 0000000000913b20] no frame!
[h264 @ 0000000000913b20] Increasing reorder buffer to 2
Input #0, rtp, from 'rtp://239.0.0.107:8208':
  Duration: N/A, start: 50097.230233, bitrate: N/A
  Program 173
    Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv,
bt470bg), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 25 tbr, 90k tbn
    Stream #0:0(esp): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo,
s16p, 192 kb/s (clean effects)
    Stream #0:2(vo): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo,
s16p, 128 kb/s (clean effects)
[mp4 @ 00000000028811e0] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 2 times
[mp4 @ 00000000028811e0] muxer does not support non seekable output
Output #0, mp4, to 'http://192.168.1.41:80':
  Metadata:
    encoder         : Lavf57.37.101
    Stream #0:0(esp): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, fltp, 128 kb/s (clean effects)
    Metadata:
      encoder         : Lavc57.43.100 aac
    Stream #0:1: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 720x576 [SAR
16:11 DAR 20:11], q=2-31, 200 kb/s, 25 fps, 25 tbn
    Metadata:
      encoder         : Lavc57.43.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:2(vo): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz,
stereo, fltp, 128 kb/s (clean effects)
    Metadata:
      encoder         : Lavc57.43.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (mp2 (native) -> aac (native))
  Stream #0:1 -> #0:1 (h264 (native) -> mpeg4 (native))
  Stream #0:2 -> #0:2 (mp2 (native) -> aac (native))
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument
[aac @ 0000000002192160] Qavg: nan
[aac @ 0000000000963e20] Qavg: nan


More information about the ffmpeg-user mailing list