[FFmpeg-user] capturing decklink "past duration too large" wrong pts ?

Joop Flack joop.flack at gmx.de
Tue May 3 11:42:37 CEST 2016


Hello,
I am trying to capture 4 different streams using 4 Blackmagic mini 
recorders (to ProResLT) and in the second step to create a splitscreen 
with those videos.
After arround 15 seconds while creating the splitscreen I get the message:
"Past duration 0.999992 too large"
The result is a nice splitscreen video which freezes after 15 seconds 
(as soon as the error message shows up)
I also tried the option -vsync drop for the splitscreen encoding and I 
made it past the 15 seconds barrier, but the video length is not correct.
I also tried -vf setpts with diffent options.
I asume it is a pts problem while capturing (playback using vlc for the 
captured streams is fine) but so far I havenĀ“t found any solution for 
this problem.
Best
Joop
Following you can find my ffmpeg commands/console output:

ffmpeg -bm_v210 1 -f decklink -i "DeckLink Mini Recorder (4)@7" -vcodec 
prores -profile:v 1 -an -t 00:00:20 
C:\Users\test\Desktop\videos_output\Kunde_20160501_144716\test_20160501_144716_stream1.mov
ffmpeg -bm_v210 1 -f decklink -i "DeckLink Mini Recorder (4)@7" -vcodec 
prores -profile:v 1 -an -t 00:00:20 
C:\Users\test\Desktop\videos_output\Kunde_20160501_144716\test_20160501_144716_stream2.mov
ffmpeg -bm_v210 1 -f decklink -i "DeckLink Mini Recorder (4)@7" -vcodec 
prores -profile:v 1 -an -t 00:00:20 
C:\Users\test\Desktop\videos_output\Kunde_20160501_144716\test_20160501_144716_stream3.mov
ffmpeg -bm_v210 1 -f decklink -i "DeckLink Mini Recorder (4)@7" -vcodec 
prores -profile:v 1 -an -t 00:00:20 
C:\Users\test\Desktop\videos_output\Kunde_20160501_144716\test_20160501_144716_stream4.mov
here the complete console output for one (the other 3 are identical):

fmpeg -bm_v210 1 -f decklink -i "DeckLink Mini Recorder (4)
@7" -vcodec prores -profile:v 1 -an -t 00:00:20 
C:\Users\test\Desktop\videos_out
put\Kunde_20160501_144716\test_20160501_144716_stream1.mov
ffmpeg version N-77715-gfc703f5 Copyright (c) 2000-2016 the FFmpeg 
developers
   built with gcc 5.2.0 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b 
--enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm 
--enable-l
ibilbc --enable-libmodplug --enable-libmp3lame 
--enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus 
--enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex 
--enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc 
--enable-libvo-amrwbenc
  --enable-libvorbis --enable-libvpx --enable-libwavpack 
--enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid 
--enable-libzimg --
enable-lzma --enable-decklink --enable-zlib
   libavutil      55. 12.100 / 55. 12.100
   libavcodec     57. 21.100 / 57. 21.100
   libavformat    57. 21.101 / 57. 21.101
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 23.100 /  6. 23.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
[decklink @ 000000000200d140] Found Decklink mode 1920 x 1080 with rate 
25.00
[decklink @ 000000000200d140] Stream #1: not enough frames to estimate 
rate; con
sider increasing probesize
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, decklink, from 'DeckLink Mini Recorder (4)@7':
   Duration: N/A, start: 0.000000, bitrate: 1536 kb/s
     Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
     Stream #0:1: Video: v210 (V210 / 0x30313256), yuv422p10le, 
1920x1080, -4 kb/
s, 25 tbr, 1000k tbn, 25 tbc
Output #0, mov, to 
'C:\Users\test\Desktop\videos_output\Kunde_20160501_144716\te
st_20160501_144716_stream1.mov':
   Metadata:
     encoder         : Lavf57.21.101
     Stream #0:0: Video: prores (apcs / 0x73637061), yuv422p10le, 
1920x1080, q=2-
31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
     Metadata:
       encoder         : Lavc57.21.100 prores
Stream mapping:
   Stream #0:1 -> #0:0 (v210 (native) -> prores (native))
Press [q] to stop, [?] for help
frame=   15 fps=0.0 q=-0.0 size=    5842kB time=00:00:00.40 
bitrate=119651.0kbit
frame=   28 fps= 27 q=-0.0 size=   13438kB time=00:00:00.92 
bitrate=119661.0kbit
frame=   41 fps= 26 q=-0.0 size=   21023kB time=00:00:01.44 
bitrate=119594.8kbit
frame=   54 fps= 26 q=-0.0 size=   28610kB time=00:00:01.96 
bitrate=119578.5kbit
frame=   67 fps= 26 q=-0.0 size=   36197kB time=00:00:02.48 
bitrate=119565.4kbit
frame=   80 fps= 26 q=-0.0 size=   43790kB time=00:00:03.00 
bitrate=119574.6kbit
frame=   93 fps= 26 q=-0.0 size=   51374kB time=00:00:03.52 
bitrate=119561.6kbit
frame=  106 fps= 25 q=-0.0 size=   58965kB time=00:00:04.04 
bitrate=119564.1kbit
frame=  119 fps= 25 q=-0.0 size=   66532kB time=00:00:04.56 
bitrate=119524.7kbit
frame=  132 fps= 25 q=-0.0 size=   74109kB time=00:00:05.08 
bitrate=119507.8kbit
frame=  145 fps= 25 q=-0.0 size=   81690kB time=00:00:05.60 
bitrate=119500.2kbit
frame=  158 fps= 25 q=-0.0 size=   89271kB time=00:00:06.12 
bitrate=119494.3kbit
frame=  171 fps= 25 q=-0.0 size=   96855kB time=00:00:06.64 
bitrate=119494.0kbit
frame=  184 fps= 25 q=-0.0 size=  104451kB time=00:00:07.16 
bitrate=119506.5kbit
frame=  197 fps= 25 q=-0.0 size=  112029kB time=00:00:07.68 
bitrate=119497.8kbit
frame=  210 fps= 25 q=-0.0 size=  119610kB time=00:00:08.20 
bitrate=119493.3kbit
frame=  223 fps= 25 q=-0.0 size=  127191kB time=00:00:08.72 
bitrate=119489.1kbit
frame=  236 fps= 25 q=-0.0 size=  134761kB time=00:00:09.24 
bitrate=119476.4kbit
frame=  249 fps= 25 q=-0.0 size=  142361kB time=00:00:09.76 
bitrate=119489.5kbit
frame=  262 fps= 25 q=-0.0 size=  149928kB time=00:00:10.28 
bitrate=119475.8kbit
frame=  275 fps= 25 q=-0.0 size=  157506kB time=00:00:10.80 
bitrate=119471.4kbit
frame=  288 fps= 25 q=-0.0 size=  165090kB time=00:00:11.32 
bitrate=119471.8kbit
frame=  301 fps= 25 q=-0.0 size=  172678kB time=00:00:11.84 
bitrate=119474.8kbit
frame=  314 fps= 25 q=-0.0 size=  180265kB time=00:00:12.36 
bitrate=119476.7kbit
frame=  327 fps= 25 q=-0.0 size=  187854kB time=00:00:12.88 
bitrate=119480.0kbit
frame=  340 fps= 25 q=-0.0 size=  195439kB time=00:00:13.40 
bitrate=119480.4kbit
frame=  353 fps= 25 q=-0.0 size=  203033kB time=00:00:13.92 
bitrate=119485.8kbit
frame=  366 fps= 25 q=-0.0 size=  210609kB time=00:00:14.44 
bitrate=119481.1kbit
frame=  379 fps= 25 q=-0.0 size=  218193kB time=00:00:14.96 
bitrate=119481.2kbit
frame=  392 fps= 25 q=-0.0 size=  225773kB time=00:00:15.48 
bitrate=119479.1kbit
frame=  405 fps= 25 q=-0.0 size=  233370kB time=00:00:16.00 
bitrate=119485.4kbit
frame=  418 fps= 25 q=-0.0 size=  240968kB time=00:00:16.52 
bitrate=119492.0kbit
frame=  431 fps= 25 q=-0.0 size=  248559kB time=00:00:17.04 
bitrate=119495.0kbit
frame=  444 fps= 25 q=-0.0 size=  256136kB time=00:00:17.56 
bitrate=119491.3kbit
frame=  457 fps= 25 q=-0.0 size=  263721kB time=00:00:18.08 
bitrate=119491.2kbit
frame=  470 fps= 25 q=-0.0 size=  271302kB time=00:00:18.60 
bitrate=119489.5kbit
frame=  483 fps= 25 q=-0.0 size=  278896kB time=00:00:19.12 
bitrate=119493.4kbit
frame=  496 fps= 25 q=-0.0 size=  286472kB time=00:00:19.64 
bitrate=119489.7kbit
frame=  500 fps= 25 q=-0.0 Lsize=  291729kB time=00:00:20.00 
bitrate=119492.3kbi
ts/s speed=   1x
video:291725kB audio:0kB subtitle:0kB other streams:0kB global 
headers:0kB muxin
g overhead: 0.001581%
And fot the splitscreen encoding:

ffmpeg -threads 16 -i
test_20160501_144716_stream1.mov -s 1920x1080 -vf "scale=940:529 
[inScale];color
=c=black at 1.0:s=1920x1080:r=25:d=15.0 
[bg];movie=test_20160501_144716_stream2.mov
,scale=940:529 [vid2]; [bg][vid2]overlay=0:0 [basis1];[basis1][inScale] 
overlay=
0:540 [basis2];movie=test_20160501_144716_stream3.mov, scale=940:529 
[vid2];[bas
is2][vid2] overlay=960:0 [basis3]; 
movie=test_20160501_144716_stream4.mov,scale=
940:529 [vid3];[basis3][vid3] overlay=960:540" -vcodec prores -profile:v 
1 -an K
unde_20160501_144716splitscreen.mov
ffmpeg version N-77715-gfc703f5 Copyright (c) 2000-2016 the FFmpeg 
developers
   built with gcc 5.2.0 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b 
--enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm 
--enable-l
ibilbc --enable-libmodplug --enable-libmp3lame 
--enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus 
--enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex 
--enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc 
--enable-libvo-amrwbenc
  --enable-libvorbis --enable-libvpx --enable-libwavpack 
--enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid 
--enable-libzimg --
enable-lzma --enable-decklink --enable-zlib
   libavutil      55. 12.100 / 55. 12.100
   libavcodec     57. 21.100 / 57. 21.100
   libavformat    57. 21.101 / 57. 21.101
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 23.100 /  6. 23.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_20160501_144716_stream1.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 512
     compatible_brands: qt
     encoder         : Lavf57.21.101
   Duration: 00:00:20.00, start: 0.000000, bitrate: 119492 kb/s
     Stream #0:0(eng): Video: prores (apcs / 0x73637061), yuv422p10le, 
1920x1080,
  119490 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
     Metadata:
       handler_name    : DataHandler
       encoder         : Lavc57.21.100 prores
Output #0, mov, to 'Kunde_20160501_144716splitscreen.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 512
     compatible_brands: qt
     encoder         : Lavf57.21.101
     Stream #0:0(eng): Video: prores (apcs / 0x73637061), yuv422p10le, 
1920x1080
[SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc (default)
     Metadata:
       handler_name    : DataHandler
       encoder         : Lavc57.21.100 prores
Stream mapping:
   Stream #0:0 -> #0:0 (prores (native) -> prores (native))
Press [q] to stop, [?] for help
frame=    7 fps=0.0 q=-0.0 size=    2606kB time=00:00:00.20 
bitrate=106728.0kbit
frame=   15 fps= 14 q=-0.0 size=    6776kB time=00:00:00.52 
bitrate=106754.7kbit
frame=   22 fps= 14 q=-0.0 size=   10424kB time=00:00:00.80 
bitrate=106744.2kbit
frame=   30 fps= 14 q=-0.0 size=   14592kB time=00:00:01.12 
bitrate=106727.1kbit
frame=   37 fps= 14 q=-0.0 size=   18243kB time=00:00:01.40 
bitrate=106748.1kbit
frame=   45 fps= 14 q=-0.0 size=   22411kB time=00:00:01.72 
bitrate=106740.3kbit
frame=   53 fps= 14 q=-0.0 size=   26584kB time=00:00:02.04 
bitrate=106753.8kbit
frame=   61 fps= 14 q=-0.0 size=   30754kB time=00:00:02.36 
bitrate=106751.7kbit
frame=   69 fps= 15 q=-0.0 size=   34928kB time=00:00:02.68 
bitrate=106763.8kbit
frame=   77 fps= 15 q=-0.0 size=   39100kB time=00:00:03.00 
bitrate=106768.7kbit
frame=   85 fps= 15 q=-0.0 size=   43269kB time=00:00:03.32 
bitrate=106765.4kbit
frame=   93 fps= 15 q=-0.0 size=   47442kB time=00:00:03.64 
bitrate=106771.6kbit
frame=  101 fps= 15 q=-0.0 size=   51617kB time=00:00:03.96 
bitrate=106780.3kbit
frame=  109 fps= 15 q=-0.0 size=   55790kB time=00:00:04.28 
bitrate=106782.9kbit
frame=  117 fps= 15 q=-0.0 size=   59965kB time=00:00:04.60 
bitrate=106789.9kbit
frame=  125 fps= 15 q=-0.0 size=   64138kB time=00:00:04.92 
bitrate=106791.7kbit
frame=  133 fps= 15 q=-0.0 size=   68311kB time=00:00:05.24 
bitrate=106794.5kbit
frame=  141 fps= 15 q=-0.0 size=   72483kB time=00:00:05.56 
bitrate=106794.5kbit
frame=  149 fps= 15 q=-0.0 size=   76652kB time=00:00:05.88 
bitrate=106791.5kbit
frame=  157 fps= 15 q=-0.0 size=   80827kB time=00:00:06.20 
bitrate=106796.1kbit
frame=  165 fps= 15 q=-0.0 size=   85000kB time=00:00:06.52 
bitrate=106797.8kbit
frame=  173 fps= 15 q=-0.0 size=   89172kB time=00:00:06.84 
bitrate=106798.1kbit
frame=  180 fps= 15 q=-0.0 size=   92823kB time=00:00:07.12 
bitrate=106798.3kbit
frame=  188 fps= 15 q=-0.0 size=   96997kB time=00:00:07.44 
bitrate=106801.4kbit
frame=  195 fps= 15 q=-0.0 size=  100652kB time=00:00:07.72 
bitrate=106805.9kbit
frame=  203 fps= 15 q=-0.0 size=  104829kB time=00:00:08.04 
bitrate=106810.9kbit
frame=  211 fps= 15 q=-0.0 size=  108998kB time=00:00:08.36 
bitrate=106807.3kbit
frame=  219 fps= 15 q=-0.0 size=  113169kB time=00:00:08.68 
bitrate=106806.3kbit
frame=  227 fps= 15 q=-0.0 size=  117345kB time=00:00:09.00 
bitrate=106809.9kbit
frame=  235 fps= 15 q=-0.0 size=  121524kB time=00:00:09.32 
bitrate=106816.3kbit
frame=  243 fps= 15 q=-0.0 size=  125703kB time=00:00:09.64 
bitrate=106821.3kbit
frame=  251 fps= 15 q=-0.0 size=  129876kB time=00:00:09.96 
bitrate=106821.6kbit
frame=  259 fps= 15 q=-0.0 size=  134047kB time=00:00:10.28 
bitrate=106820.4kbit
frame=  267 fps= 15 q=-0.0 size=  138224kB time=00:00:10.60 
bitrate=106823.7kbit
frame=  275 fps= 15 q=-0.0 size=  142397kB time=00:00:10.92 
bitrate=106824.1kbit
frame=  283 fps= 15 q=-0.0 size=  146570kB time=00:00:11.24 
bitrate=106823.7kbit
frame=  291 fps= 15 q=-0.0 size=  150743kB time=00:00:11.56 
bitrate=106824.0kbit
frame=  299 fps= 15 q=-0.0 size=  154911kB time=00:00:11.88 
bitrate=106820.6kbit
frame=  307 fps= 15 q=-0.0 size=  159081kB time=00:00:12.20 
bitrate=106818.9kbit
frame=  315 fps= 15 q=-0.0 size=  163254kB time=00:00:12.52 
bitrate=106819.1kbit
frame=  323 fps= 15 q=-0.0 size=  167428kB time=00:00:12.84 
bitrate=106820.0kbit
frame=  331 fps= 15 q=-0.0 size=  171601kB time=00:00:13.16 
bitrate=106820.3kbit
frame=  338 fps= 15 q=-0.0 size=  175248kB time=00:00:13.44 
bitrate=106818.1kbit
frame=  346 fps= 15 q=-0.0 size=  179422kB time=00:00:13.76 
bitrate=106818.6kbit
frame=  353 fps= 15 q=-0.0 size=  183077kB time=00:00:14.04 
bitrate=106820.8kbit
frame=  361 fps= 15 q=-0.0 size=  187253kB time=00:00:14.36 
bitrate=106822.7kbit
frame=  368 fps= 15 q=-0.0 size=  190901kB time=00:00:14.64 
bitrate=106820.9kbit
Past duration 0.999992 too large
frame=  377 fps= 15 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 15 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 14 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 14 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 14 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 13 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 13 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 13 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 13 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 13 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 12 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 12 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 12 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 12 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 12 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 11 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 11 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 11 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 11 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 11 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 11 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 10 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 10 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps= 10 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps=9.9 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps=9.8 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps=9.7 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps=9.6 q=-0.0 size=  195597kB time=00:00:15.00 
bitrate=106821.9kbit
frame=  377 fps=9.5 q=-0.0 Lsize=  196647kB time=00:00:15.08 
bitrate=106825.9kbi
ts/s dup=0 drop=498 speed=0.379x
video:196644kB audio:0kB subtitle:0kB other streams:0kB global 
headers:0kB muxin
g overhead: 0.001856%


More information about the ffmpeg-user mailing list