[FFmpeg-user] Past duration 0.9xxxxx too large

Nicholas Robbins nickrobbins at yahoo.com
Sat Feb 28 12:52:49 CET 2015


I recently started getting this error in a batch of transcodes.

The files are DVD rips of a TV show that are mixed "30"fps and "24"fps. (the credits are at 30fps.) They are in mkvs that think they are "30"fps but actually counting frames gives something like 24.03 fps.

In the past this command has worked fine. 


Now I'm getting 19000 lines of "Past duration 0.999392 too large" (exact number varies, is 0.9xxx > 99% of the time) 


So, a) is this an indication that I am doing something wrong?
b) if not how do I make this stop so my logs are readable?

Command: 

/usr/bin/ffmpeg -hide_banner -benchmark -i IN.mkv -map 0 -c:a copy -c:s copy -c:v libx264 -preset veryfast -crf 17 -r 24000/1001 OUT.mkv

Output:

Input #0, matroska,webm, from '/var/srv/media/videos/NO-BACKUP-holding/transcoding/2015-02-27-Fri-18-48/Law.and.Order.1990.S02E01.film.mkv':
Metadata:
encoder         : libmakemkv v1.9.0 (1.3.0/1.4.1) x86_64-pc-linux-gnu
creation_time   : 2015-02-07 18:46:28
Duration: 00:46:19.64, start: 0.000000, bitrate: 5624 kb/s
Chapter #0:0: start 0.000000, end 210.960750
Metadata:
title           : Chapter 01
Chapter #0:1: start 210.960750, end 591.424167
Metadata:
title           : Chapter 02
Chapter #0:2: start 591.424167, end 926.241983
Metadata:
title           : Chapter 03
Chapter #0:3: start 926.241983, end 1198.447250
Metadata:
title           : Chapter 04
Chapter #0:4: start 1198.447250, end 1536.618417
Metadata:
title           : Chapter 05
Chapter #0:5: start 1536.618417, end 1745.527117
Metadata:
title           : Chapter 06
Chapter #0:6: start 1745.527117, end 2126.874750
Metadata:
title           : Chapter 07
Chapter #0:7: start 2126.874750, end 2506.103600
Metadata:
title           : Chapter 08
Chapter #0:8: start 2506.103600, end 2721.335283
Metadata:
title           : Chapter 09
Chapter #0:9: start 2721.335283, end 2779.643533
Metadata:
title           : Chapter 10

Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv), 720x480 [SAR 8:9 DAR 4:3], max. 9040 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
title           : Stereo
Stream #0:2(fre): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Metadata:
title           : Stereo
Stream #0:3(eng): Subtitle: dvd_subtitle, 720x480 (default)
Stream #0:4(spa): Subtitle: dvd_subtitle, 720x480
Stream #0:5(fre): Subtitle: dvd_subtitle, 720x480
[libx264 @ 0x7d77194900] using SAR=8/9
[libx264 @ 0x7d77194900] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
[libx264 @ 0x7d77194900] profile High, level 3.0
[libx264 @ 0x7d77194900] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 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=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to '/tmp/transcode//Law.and.Order.1990.S02E01.film.mkv':
Metadata:
encoder         : Lavf56.19.100
Chapter #0:0: start 0.000000, end 210.960750
Metadata:
title           : Chapter 01
Chapter #0:1: start 210.960750, end 591.424167
Metadata:
title           : Chapter 02
Chapter #0:2: start 591.424167, end 926.241983
Metadata:
title           : Chapter 03
Chapter #0:3: start 926.241983, end 1198.447250
Metadata:
title           : Chapter 04
Chapter #0:4: start 1198.447250, end 1536.618417
Metadata:
title           : Chapter 05
Chapter #0:5: start 1536.618417, end 1745.527117
Metadata:
title           : Chapter 06
Chapter #0:6: start 1745.527117, end 2126.874750
Metadata:
title           : Chapter 07

Chapter #0:7: start 2126.874750, end 2506.103600
Metadata:
title           : Chapter 08
Chapter #0:8: start 2506.103600, end 2721.335283
Metadata:
title           : Chapter 09
Chapter #0:9: start 2721.335283, end 2779.643533
Metadata:
title           : Chapter 10
Stream #0:0(eng): Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=-1--1, 23.98 fps, 1k tbn, 23.98 tbc
Metadata:
encoder         : Lavc56.21.101 libx264
Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s (default)
Metadata:
title           : Stereo
Stream #0:2(fre): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s
Metadata:
title           : Stereo
Stream #0:3(eng): Subtitle: dvd_subtitle, 720x480 (default)
Stream #0:4(spa): Subtitle: dvd_subtitle, 720x480
Stream #0:5(fre): Subtitle: dvd_subtitle, 720x480
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (copy)
Stream #0:4 -> #0:4 (copy)
Stream #0:5 -> #0:5 (copy)
Press [q] to stop, [?] for help
Past duration 0.602379 too large
Past duration 0.811180 too large
Past duration 0.995995 too large
Past duration 0.991997 too large
Past duration 0.987999 too large
Past duration 0.795189 too large
Past duration 0.791191 too large
Past duration 0.999992 too large
Past duration 0.995995 too large
Past duration 0.991997 too large
Past duration 0.987999 too large
Past duration 0.998009 too large

Past duration 0.994011 too large
Past duration 0.990013 too large
Past duration 0.999992 too large
Past duration 0.995995 too large
Past duration 0.991997 too large
frame=   84 fps=0.0 q=22.0 size=      58kB time=00:00:03.52 bitrate= 135.2kbits/s dup=0 drop=5
<continues for 19000 lines>
Past duration 0.998009 too large
Past duration 0.994011 too large
frame=66646 fps= 37 q=22.0 size= 1109450kB time=00:46:19.61 bitrate=3269.7kbits/s dup=0 drop=107    ^Mframe=66646 fps= 37 q=-1.0 Lsize= 1111923kB time=00:46:19.61 bitra
te=3277.0kbits/s dup=0 drop=107 
video:973042kB audio:130294kB subtitle:6808kB other streams:0kB global headers:2kB muxing overhead: 0.160196%
[libx264 @ 0x7d77194900] frame I:648   Avg QP:14.86  size: 51217
[libx264 @ 0x7d77194900] frame P:29629 Avg QP:18.12  size: 20534
[libx264 @ 0x7d77194900] frame B:36369 Avg QP:20.06  size:  9756
[libx264 @ 0x7d77194900] consecutive B-frames: 10.6% 39.5% 30.9% 19.0%
[libx264 @ 0x7d77194900] mb I  I16..4:  8.9% 42.4% 48.7%
[libx264 @ 0x7d77194900] mb P  I16..4:  5.3% 22.3%  0.7%  P16..4: 34.5% 18.3% 15.3%  0.0%  0.0%    skip: 3.6%
[libx264 @ 0x7d77194900] mb B  I16..4:  2.6% 10.1%  0.0%  B16..8: 28.8% 10.4%  1.5%  direct:29.0%  skip:17.6%  L0:21.1% L1:30.8% BI:48.1%
[libx264 @ 0x7d77194900] 8x8 transform intra:77.3% inter:69.8%
[libx264 @ 0x7d77194900] coded y,uvDC,uvAC intra: 91.7% 79.5% 33.4% inter: 52.4% 45.3% 1.6%
[libx264 @ 0x7d77194900] i16 v,h,dc,p: 19% 11% 62%  9%
[libx264 @ 0x7d77194900] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 11% 58%  3%  3%  3%  3%  3%  4%
[libx264 @ 0x7d77194900] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 20% 15%  7%  8%  8%  8%  7%  9%
[libx264 @ 0x7d77194900] i8c dc,h,v,p: 51% 22% 24%  4%
[libx264 @ 0x7d77194900] Weighted P-Frames: Y:10.9% UV:2.0%
[libx264 @ 0x7d77194900] kb/s:2867.64
bench: utime=3500.366s
bench: maxrss=72976kB


More information about the ffmpeg-user mailing list