首页 > FFmpeg视频转码时报错:Past duration 0.799995 too large

FFmpeg视频转码时报错:Past duration 0.799995 too large

ffmpeg version 2.7.2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.3 (Debian 4.9.3-1)
  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 --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpeg, from '':
  Duration: 00:00:41.44, start: 0.600000, bitrate: 8420 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg), 720x576 [SAR 16:15 DAR 4:3], 8000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
[libx264 @ 0x3e8f800] using SAR=16/15
[libx264 @ 0x3e8f800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x3e8f800] profile High, level 2.1
[libx264 @ 0x3e8f800] 264 - core 146 r109 121396c - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 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=24 lookahead_threads=2 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=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=2pass mbtree=1 bitrate=256 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.41 aq=1:1.00
Output #0, mp4, to :
  Metadata:
    encoder         : Lavf56.36.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 450x360 [SAR 16:15 DAR 4:3], q=10-51, pass 2, 256 kb/s, 15 fps, 15360 tbn, 15 tbc
    Metadata:
      encoder         : Lavc56.41.100 libx264
    Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 256 kb/s
    Metadata:
      encoder         : Lavc56.41.100 libvo_aacenc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (mp2 (native) -> aac (libvo_aacenc))
Press [q] to stop, [?] for help
Past duration 0.799995 too large
[libx264 @ 0x3e8f800] Incomplete MB-tree stats file.0:40.57 bitrate= 506.6kbits/s dup=0 drop=404    
Video encoding failed
[libx264 @ 0x3e8f800] frame I:4     Avg QP:11.71  size: 10843
[libx264 @ 0x3e8f800] frame P:184   Avg QP:13.34  size:  4765
[libx264 @ 0x3e8f800] frame B:407   Avg QP:16.66  size:  1002
[libx264 @ 0x3e8f800] consecutive B-frames:  4.2% 10.1% 10.6% 75.2%
[libx264 @ 0x3e8f800] mb I  I16..4: 36.5% 47.1% 16.4%
[libx264 @ 0x3e8f800] mb P  I16..4:  2.2%  3.5%  3.8%  P16..4: 18.7%  5.7%  6.3%  0.0%  0.0%    skip:59.8%
[libx264 @ 0x3e8f800] mb B  I16..4:  0.1%  0.3%  0.5%  B16..8: 13.0%  1.9%  0.7%  direct: 1.3%  skip:82.1%  L0:39.9% L1:55.2% BI: 4.9%
[libx264 @ 0x3e8f800] 8x8 transform intra:38.2% inter:65.6%
[libx264 @ 0x3e8f800] coded y,uvDC,uvAC intra: 64.2% 71.4% 64.6% inter: 6.1% 5.6% 3.0%
[libx264 @ 0x3e8f800] i16 v,h,dc,p: 54% 26%  3% 17%
[libx264 @ 0x3e8f800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 22% 25%  5%  5%  5%  5%  5%  7%
[libx264 @ 0x3e8f800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 28% 12%  4%  5%  6%  5%  5%  5%
[libx264 @ 0x3e8f800] i8c dc,h,v,p: 43% 27% 23%  7%
[libx264 @ 0x3e8f800] Weighted P-Frames: Y:1.1% UV:0.5%
[libx264 @ 0x3e8f800] ref P L0: 68.1%  3.1% 18.5% 10.3%
[libx264 @ 0x3e8f800] ref B L0: 82.8% 12.0%  5.2%
[libx264 @ 0x3e8f800] ref B L1: 93.1%  6.9%
[libx264 @ 0x3e8f800] kb/s:267.84
[libvo_aacenc @ 0x430b4a0] 2 frames left in the queue on closing
Conversion failed!

关键错误如下:


Past duration 0.799995 too large
[libx264 @ 0x3e8f800] Incomplete MB-tree stats file.0:40.57 bitrate= 506.6kbits/s dup=0 drop=404    
Video encoding failed

[libvo_aacenc @ 0x430b4a0] 2 frames left in the queue on closing
Conversion failed!

有没有人遇到过该如何处理?

使用 -fpre 和 -pass 参数分2步转码,在第二步转码时报的错误,视频格式为mpg

【热门文章】
【热门文章】