[FFmpeg-user] errors: Input buffer exhausted before END element found, error while decoding, Failed to update header with correct duration..

LD2K.com Litecoin Mining Pool voipcallnet at gmail.com
Thu Oct 30 21:04:21 CET 2014


ffmpeg often stops with errors:

[mpegts @ 0x316cae0] PES packet size mismatchme=00:31:33.14
bitrate=1005.2kbits/s
    Last message repeated 1 times
[aac @ 0x317c7e0] Input buffer exhausted before END element found
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x38b40e0] negative number of zero coeffs at 29 18
[h264 @ 0x38b40e0] error while decoding MB 29 18
[h264 @ 0x38b40e0] concealing 812 DC, 812 AC, 812 MV errors in I frame
[flv @ 0x31bbc00] Failed to update header with correct duration.
[flv @ 0x31bbc00] Failed to update header with correct filesize

=============================.

ffmpeg -re -i  http://Source -preset fast -acodec aac -strict experimental
-ar 44100 -ac 2 -b:a 96k -vcodec libx264 -b:v 900k -maxrate 1000k -bufsize
2000k -g 60 -flags +global_header -f flv http://Destination
ffmpeg version 2.4.2-   http://johnvansickle.com/ffmpeg/    Copyright (c)
2000-2014 the FFmpeg developers
  built on Oct  9 2014 07:24:56 with gcc 4.8 (Debian 4.8.3-11)
  configuration: --enable-gpl --enable-version3 --disable-shared
--disable-debug --enable-runtime-cpudetect --enable-libmp3lame
--enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex
--enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig
--enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-gray --enable-libopenjpeg --enable-libopus --disable-ffserver
--enable-libass --enable-gnutls --cc=gcc-4.8
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
[h264 @ 0x3172be0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x3172be0] decode_slice_header error
[h264 @ 0x3172be0] no frame!
Input #0, mpegts, from 'http://Source':
  Duration: N/A, start: 78430.151411, bitrate: 117 kb/s
  Program 1
    Stream #0:0[0x100](rus): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 117 kb/s
    Stream #0:1[0x101]: Video: h264 (Constrained Baseline) ([27][0][0][0] /
0x001B), yuv420p, 704x576 [SAR 16:11 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50
tbc
[libx264 @ 0x328e880] using SAR=16/11
[libx264 @ 0x328e880] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1
Cache64
[libx264 @ 0x328e880] profile High, level 3.0
[libx264 @ 0x328e880] 264 - core 142 r50 dd79a61 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1
ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=1 keyint=60 keyint_min=6 scenecut=40
intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=900 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1000 vbv_bufsize=2000
nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, flv, to 'http://Destination':
  Metadata:
    encoder         : Lavf56.4.101
    Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p,
704x576 [SAR 16:11 DAR 16:9], q=-1--1, 900 kb/s, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.1.100 libx264
    Stream #0:1(rus): Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz,
stereo, fltp, 96 kb/s
    Metadata:
      encoder         : Lavc56.1.100 aac
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:0 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[mpegts @ 0x316cae0] PES packet size mismatchme=00:31:33.14
bitrate=1005.2kbits/s
    Last message repeated 1 times
[aac @ 0x317c7e0] Input buffer exhausted before END element found
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x38b40e0] negative number of zero coeffs at 29 18
[h264 @ 0x38b40e0] error while decoding MB 29 18
[h264 @ 0x38b40e0] concealing 812 DC, 812 AC, 812 MV errors in I frame
[flv @ 0x31bbc00] Failed to update header with correct duration.
[flv @ 0x31bbc00] Failed to update header with correct filesize.
frame=47313 fps= 25 q=-1.0 Lsize=  232612kB time=00:31:33.28
bitrate=1006.5kbits/s
video:208092kB audio:22243kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.989065%
[libx264 @ 0x328e880] frame I:1177  Avg QP:18.14  size: 24962
[libx264 @ 0x328e880] frame P:21942 Avg QP:22.47  size:  6217
[libx264 @ 0x328e880] frame B:24194 Avg QP:23.16  size:  1955
[libx264 @ 0x328e880] consecutive B-frames: 26.3% 12.2% 13.1% 48.4%
[libx264 @ 0x328e880] mb I  I16..4: 25.9% 42.7% 31.4%
[libx264 @ 0x328e880] mb P  I16..4:  5.5%  7.0%  1.2%  P16..4: 37.7% 12.3%
5.1%  0.0%  0.0%    skip:31.3%
[libx264 @ 0x328e880] mb B  I16..4:  1.7%  1.2%  0.1%  B16..8: 25.5%  5.1%
0.2%  direct:11.3%  skip:55.0%  L0:49.3% L1:43.4% BI: 7.4%
[libx264 @ 0x328e880] 8x8 transform intra:47.3% inter:63.7%
[libx264 @ 0x328e880] coded y,uvDC,uvAC intra: 42.3% 61.2% 17.8% inter:
12.2% 25.1% 0.3%
[libx264 @ 0x328e880] i16 v,h,dc,p: 49% 22% 13% 16%
[libx264 @ 0x328e880] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 15% 25%  3%  4%
6%  4%  6%  4%
[libx264 @ 0x328e880] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 17% 11%  5%  6%
8%  5%  7%  4%
[libx264 @ 0x328e880] i8c dc,h,v,p: 52% 18% 26%  4%
[libx264 @ 0x328e880] Weighted P-Frames: Y:1.7% UV:1.1%
[libx264 @ 0x328e880] ref P L0: 79.4% 20.6%
[libx264 @ 0x328e880] ref B L0: 83.5% 16.5%
[libx264 @ 0x328e880] ref B L1: 94.5%  5.5%
[libx264 @ 0x328e880] kb/s:900.75


More information about the ffmpeg-user mailing list