[FFmpeg-user] Blackmagic card issue capturing

Christian Bianchini max246 at gmail.com
Fri Mar 4 12:36:02 CET 2016


Adding -vsync drop I have fixed this issue but you this is when the error
happened:



ffmpeg.exe -y -f dshow -video_size 1920x1080 -pixel_format uyv
y422 -rtbufsize 702000k -framerate 59.94 -i "video=Decklink Video Capture"
-code
c:v libx264 -preset ultrafast -an -crf 0 -loglevel verbose test.mkv
ffmpeg version N-78598-g98a0053 Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 5.3.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-amrwbenc
--enable-libvorbis --
enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-lib
x265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma
--enable-d
ecklink --enable-zlib
  libavutil      55. 18.100 / 55. 18.100
  libavcodec     57. 24.103 / 57. 24.103
  libavformat    57. 25.101 / 57. 25.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 34.100 /  6. 34.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543710940335 graph timestamp 716543710840335 diff
-100000 D
ecklink Video Capture
Input #0, dshow, from 'video=Decklink Video Capture':
  Duration: N/A, start: 71654371.084034, bitrate: N/A
    Stream #0:0: Video: rawvideo, 1 reference frame (HDYC / 0x43594448),
uyvy422
(tv), 1920x1080, 59.94 tbr, 10000k tbn, 59.94 tbc
[graph 0 input from stream 0:0 @ 00000081cdc4c540] w:1920 h:1080
pixfmt:uyvy422
tb:1/10000000 fr:10000000/166833 sar:0/1 sws_param:flags=2
[auto-inserted scaler 0 @ 00000081cdc4fa60] w:iw h:ih flags:'bicubic'
interl:0
[format @ 00000081cdc4fb80] auto-inserting filter 'auto-inserted scaler 0'
betwe
en the filter 'Parsed_null_0' and the filter 'format'
[auto-inserted scaler 0 @ 00000081cdc4fa60] w:1920 h:1080 fmt:uyvy422
sar:0/1 ->
 w:1920 h:1080 fmt:yuv422p sar:0/1 flags:0x4
No pixel format specified, yuv422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 00000081cdc430e0] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2
AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 00000081cdc430e0] profile High 4:4:4 Predictive, level 4.2,
4:2:2 8-b
it
[libx264 @ 00000081cdc430e0] 264 - core 148 r2665 a01e339 - H.264/MPEG-4
AVC cod
ec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options:
cabac=0 r
ef=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0 mixed_ref=0 me_range=16
chro
ma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0
chroma_qp_offset=0
threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1
interlaced=0 blu
ray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250
keyint_min=25 sc
enecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0
Output #0, matroska, to 'test.mkv':
  Metadata:
    encoder         : Lavf57.25.101
    Stream #0:0: Video: h264 (libx264), -1 reference frame (H264 /
0x34363248),
yuv422p, 1920x1080, q=-1--1, 59.94 fps, 1k tbn, 59.94 tbc
    Metadata:
      encoder         : Lavc57.24.103 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543711107168 graph timestamp 716543710840335 diff
-266833 D
ecklink Video Capture
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543711274002 graph timestamp 716543710840335 diff
-433667 D
ecklink Video Capture
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543711440835 graph timestamp 716543710840335 diff
-600500 D
ecklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543711607668 graph timestamp 716543710840335 diff
-767333 D
ecklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543711774502 graph timestamp 716543710840335 diff
-934167 D
ecklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543711941335 graph timestamp 716543710840335 diff
-1101000
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543712108168 graph timestamp 716543710840335 diff
-1267833
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543712275002 graph timestamp 716543710840335 diff
-1434667
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543712441835 graph timestamp 716543710840335 diff
-1601500
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543712608668 graph timestamp 716543710840335 diff
-1768333
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543712775502 graph timestamp 716543710840335 diff
-1935167
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543712942335 graph timestamp 716543710840335 diff
-2102000
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543713109168 graph timestamp 716543710840335 diff
-2268833
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543713276002 graph timestamp 716543710840335 diff
-2435667
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543713442835 graph timestamp 716543710840335 diff
-2602500
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543713609668 graph timestamp 716543710840335 diff
-2769333
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543713776502 graph timestamp 716543710840335 diff
-2936167
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543713943335 graph timestamp 716543710840335 diff
-3103000
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543714110168 graph timestamp 716543710840335 diff
-3269833
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543714277002 graph timestamp 716543710840335 diff
-3436667
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543714443835 graph timestamp 716543710840335 diff
-3603500
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543714610668 graph timestamp 716543710840335 diff
-3770333
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543714777502 graph timestamp 716543710840335 diff
-3937167
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543714944335 graph timestamp 716543710840335 diff
-4104000
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543715111168 graph timestamp 716543710840335 diff
-4270833
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543715278002 graph timestamp 716543710840335 diff
-4437667
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543715444835 graph timestamp 716543710840335 diff
-4604500
Decklink Video Capture
*** dropping frame 2 from stream 0 at ts 0
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543715611668 graph timestamp 716543710840335 diff
-4771333
Decklink Video Capture
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543715778502 graph timestamp 716543710840335 diff
-4938167
Decklink Video Capture
frame=    2 fps=0.0 q=-1.0 Lsize=     338kB time=00:00:00.03
bitrate=83830.1kbit
s/s dup=0 drop=26 speed=0.0689x
video:337kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing o
verhead: 0.217941%
Input file #0 (video=Decklink Video Capture):
  Input stream #0:0 (video): 28 packets read (116121600 bytes); 28 frames
decode
d;
  Total: 28 packets (116121600 bytes) demuxed
Output file #0 (test.mkv):
  Output stream #0:0 (video): 2 frames encoded; 2 packets muxed (345047
bytes);

  Total: 2 packets (345047 bytes) muxed
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543715945335 graph timestamp 716543710840335 diff
-5105000
Decklink Video Capture
[libx264 @ 00000081cdc430e0] frame I:1     Avg QP: 0.00  size:165736
[libx264 @ 00000081cdc430e0] frame P:1     Avg QP: 0.00  size:178788
[libx264 @ 00000081cdc430e0] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 00000081cdc430e0] mb P  I16..4: 96.2%  0.0%  0.0%  P16..4:  3.8%
 0.0
%  0.0%  0.0%  0.0%    skip: 0.0%
[libx264 @ 00000081cdc430e0] coded y,uvDC,uvAC intra: 1.7% 99.9% 99.9%
inter: 15
.4% 100.0% 100.0%
[libx264 @ 00000081cdc430e0] i16 v,h,dc,p: 99%  0%  1%  0%
[libx264 @ 00000081cdc430e0] i8c dc,h,v,p:  3%  4% 93%  0%
[libx264 @ 00000081cdc430e0] kb/s:82603.33
dshow passing through packet of type video size  4147200 timestamp
7165437108403
35 orig timestamp 716543716112168 graph timestamp 716543710840335 diff
-5271833
Decklink Video Capture
Exiting normally, received signal 2.


On 4 March 2016 at 04:12, Roger Pack <rogerdpack2 at gmail.com> wrote:

> full command line and uncut console output of failing run please?
> -roger-
>
> On 3/3/16, Christian Bianchini <max246 at gmail.com> wrote:
> > Yes, by using vsync it works fine, who knows why.. maybe because I dont
> > capture audio.
> >
> > On 2 March 2016 at 16:12, Roger Pack <rogerdpack2 at gmail.com> wrote:
> >
> >> On 3/2/16, Christian Bianchini <max246 at gmail.com> wrote:
> >> > I have ran with log level and this is the result when it successfully
> >> > capture at 60 FPS:
> >> >
> >> > frame=  153 fps= 61 q=0.0 size=   51752kB time=00:00:02.33
> >> > bitrate=181487.1kbits
> >> > dshow passing through packet of type video size  4147200 timestamp
> >> 26343746
> >> > orig
> >> >  timestamp 26078449 graph timestamp 26343718 diff 265269 Decklink
> Video
> >> > Capture
> >> > dshow passing through packet of type video size  4147200 timestamp
> >> 26509532
> >> > orig
> >> >  timestamp 26245282 graph timestamp 26509509 diff 264227 Decklink
> Video
> >> > Capture
> >> > ap
> >> >
> >> > This is when it fails
> >> >
> >> >
> >> > frame=    2 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
> >> > dup=0 dro
> >> > dshow passing through packet of type video size  4147200 timestamp
> >> > 7165437108888
> >> > 73 orig timestamp 716543716327540 graph timestamp 716543710888873 diff
> >> > -5438667
> >> > Decklink Video Capture
> >> > *** dropping frame 2 from stream 0 at ts 0
> >> > dshow passing through packet of type video size  4147200 timestamp
> >> > 7165437108888
> >> > 73 orig timestamp 716543716494373 graph timestamp 716543710888873 diff
> >> > -5605500
> >> > Decklink Video Capture
> >> > *** dropping frame 2 from stream 0 at ts 0
> >> > dshow passing through packet of type video size  4147200 timestamp
> >> > 7165437108888
> >> > 73 orig timestamp 716543716661206 graph timestamp 716543710888873 diff
> >> > -5772333
> >> > Decklink Video Capture
> >> > *** dropping frame 2 from stream 0 at ts 0
> >> > dshow passing through packet of type video size  4147200 timestamp
> >> > 7165437108888
> >> > 73 orig timestamp 716543716828040 graph timestamp 716543710888873 diff
> >> > -5939167
> >> > Decklink Video Capture
> >> >
> >> >
> >> > Does it makes any sense? is this the capture card failure?
> >>
> >> So reproducibly and reliably it always says "dropping frame 2" when it
> >> is failing?
> >>
> >> I don't know about vsync, it might be OK
> >> _______________________________________________
> >> ffmpeg-user mailing list
> >> ffmpeg-user at ffmpeg.org
> >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>
> >
> >
> >
> > --
> > ---------------------------
> > Hardware & Software Developer
> > christian at bianchini.ch <christian at biachini.ch>
> > www.max246.ch
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>



-- 
---------------------------
Hardware & Software Developer
christian at bianchini.ch <christian at biachini.ch>
www.max246.ch


More information about the ffmpeg-user mailing list