[FFmpeg-devel] Blackmagic DeckLink indev

JULIAN GARDNER joolzg at btinternet.com
Thu Mar 29 20:59:43 CEST 2012


OK ive made the modifications and now it runs and encodes

ffmpeg version N-39398-g282ec72 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 29 2012 16:45:04 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libx264
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  3.100 / 54.  3.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 66.101 /  2. 66.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 10.100 /  0. 10.100
  libpostproc    52.  0.100 / 52.  0.100
[decklink @ 0x1c0a6c0] DeckLink grabbber BETA
[decklink @ 0x1c0a6c0] Estimating duration from bitrate, this may be inaccurate
Input #0, decklink, from '':
  Duration: N/A, start: 0.000000, bitrate: 885388 kb/s
    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1280x720, 883852 kb/s, 59.94 fps, 59.94 tbr, 1000k tbn, 59.94 tbc
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv422p'
[buffer @ 0x1c1b760] w:1280 h:720 pixfmt:uyvy422 tb:1/1000000 sar:0/1 sws_param:flags=2
[buffersink @ 0x1c09160] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x1c20c80] w:1280 h:720 fmt:uyvy422 sar:0/1 -> w:1280 h:720 fmt:yuv422p sar:0/1 flags:0x4
[libx264 @ 0x1c08b40] VBV maxrate unspecified, assuming CBR
[libx264 @ 0x1c08b40] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 0x1c08b40] profile High 4:2:2, level 3.1, 4:2:2 8-bit
[mpegts @ 0x1c1dca0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'a.ts':
  Metadata:
    encoder         : Lavf54.3.100
    Stream #0:0: Video: h264, yuv422p, 1280x720, q=-1--1, 1100 kb/s, 90k tbn, 25 tbc
    Stream #0:1: Audio: aac, 32000 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> libx264)
  Stream #0:1 -> #0:1 (pcm_s16le -> libfaac)
Press [q] to stop, [?] for help
frame=  295 fps= 25 q=32766.0 Lsize=    2011kB time=00:00:11.71 bitrate=1406.4kbits/s dup=0 drop=407    
video:1666kB audio:158kB global headers:0kB muxing overhead 10.263457%
[libx264 @ 0x1c08b40] frame I:4     Avg QP:25.76  size: 12514
[libx264 @ 0x1c08b40] frame P:277   Avg QP:29.00  size:  5792
[libx264 @ 0x1c08b40] frame B:14    Avg QP:29.38  size:  3643
[libx264 @ 0x1c08b40] consecutive B-frames: 90.5%  9.5%  0.0%  0.0%
[libx264 @ 0x1c08b40] mb I  I16..4: 14.1% 81.9%  4.0%
[libx264 @ 0x1c08b40] mb P  I16..4: 14.8% 37.9%  0.0%  P16..4: 32.9%  5.4%  1.1%  0.0%  0.0%    skip: 7.9%
[libx264 @ 0x1c08b40] mb B  I16..4:  0.2%  0.2%  0.0%  B16..8:  9.7%  0.2%  0.0%  direct:69.0%  skip:20.6%  L0:29.2% L1:70.2% BI: 0.6%
[libx264 @ 0x1c08b40] 8x8 transform intra:72.2% inter:65.8%
[libx264 @ 0x1c08b40] coded y,uvDC,uvAC intra: 5.6% 23.0% 1.0% inter: 3.6% 74.0% 0.7%
[libx264 @ 0x1c08b40] i16 v,h,dc,p: 72% 18%  6%  4%
[libx264 @ 0x1c08b40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 14% 70%  1%  1%  1%  1%  1%  1%
[libx264 @ 0x1c08b40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 26% 11%  8%  9%  7%  9%  6%  7%
[libx264 @ 0x1c08b40] i8c dc,h,v,p: 35% 61%  2%  2%
[libx264 @ 0x1c08b40] Weighted P-Frames: Y:11.9% UV:7.6%
[libx264 @ 0x1c08b40] kb/s:1156.32


But i cant then play it

FFplay version git-8f935b9, Copyright (c) 2003-2011 the FFmpeg developers
  built on Feb 23 2011 09:37:57 with gcc 4.2.1 (Apple Inc. build 5664)
  configuration: --enable-libmp3lame --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libfaac
  libavutil    50. 39. 0 / 50. 39. 0
  libavcodec   52.113. 1 / 52.113. 1
  libavformat  52.102. 0 / 52.102. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 12. 0 /  0. 12. 0
[h264 @ 0x10204ea00] top block unavailable for requested intra mode at 2 0
[h264 @ 0x10204ea00] error while decoding MB 2 0, bytestream (13007)
[h264 @ 0x10204ea00] concealing 3600 DC, 3600 AC, 3600 MV errors
[h264 @ 0x10204ea00] top block unavailable for requested intra4x4 mode -1 at 53 0
[h264 @ 0x10204ea00] error while decoding MB 53 0, bytestream (2316)
[h264 @ 0x10204ea00] concealing 3596 DC, 3596 AC, 3596 MV errors
[h264 @ 0x10204ea00] concealing 3580 DC, 3580 AC, 3580 MV errors
[h264 @ 0x10204ea00] concealing 3112 DC, 3112 AC, 3112 MV errors
[h264 @ 0x10204ea00] concealing 3557 DC, 3557 AC, 3557 MV errors
[h264 @ 0x10204ea00] concealing 3516 DC, 3516 AC, 3516 MV errors
[h264 @ 0x10204ea00] concealing 3234 DC, 3234 AC, 3234 MV errors
[h264 @ 0x10204ea00] top block unavailable for requested intra mode at 2 0
[h264 @ 0x10204ea00] error while decoding MB 2 0, bytestream (5648)
[h264 @ 0x10204ea00] concealing 3600 DC, 3600 AC, 3600 MV errors
[mpegts @ 0x102038e00] max_analyze_duration reached
Input #0, mpegts, from 'a.ts':
  Duration: 00:00:11.79, start: 1.368000, bitrate: 1396 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0.0[0x100]: Video: h264 (High 4:2:2), yuv420p, 1280x720, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x101]: Audio: aac, 32000 Hz, stereo, s16, 112 kb/s
[h264 @ 0x10204ea00] top block unavailable for requested intra mode at 2 0
[h264 @ 0x10204ea00] error while decoding MB 2 0, bytestream (13007)
[h264 @ 0x10204ea00] concealing 3600 DC, 3600 AC, 3600 MV errors
[h264 @ 0x10204ea00] top block unavailable for requested intra4x4 mode -1 at 53 0
[h264 @ 0x10204ea00] error while decoding MB 53 0, bytestream (2316)
[h264 @ 0x10204ea00] concealing 3596 DC, 3596 AC, 3596 MV errors
[h264 @ 0x10204ea00] concealing 3580 DC, 3580 AC, 3580 MV errors
[h264 @ 0x10204ea00] concealing 3112 DC, 3112 AC, 3112 MV errorsB f=0/0   
[h264 @ 0x10204ea00] concealing 3557 DC, 3557 AC, 3557 MV errors  
[h264 @ 0x10204ea00] concealing 3516 DC, 3516 AC, 3516 MV errors  
[h264 @ 0x10204ea00] concealing 3234 DC, 3234 AC, 3234 MV errors  
[h264 @ 0x10204ea00] top block unavailable for requested intra mode at 2 0
[h264 @ 0x10204ea00] error while decoding MB 2 0, bytestream (5648)
[h264 @ 0x10204ea00] concealing 3600 DC, 3600 AC, 3600 MV errors
[h264 @ 0x10204ea00] top block unavailable for requested intra mode at 23 0
[h264 @ 0x10204ea00] error while decoding MB 23 0, bytestream (4518)
[h264 @ 0x10204ea00] concealing 3600 DC, 3600 AC, 3600 MV errors
[h264 @ 0x10204ea00] concealing 3555 DC, 3555 AC, 3555 MV errors
[h264 @ 0x10204ea00] concealing 3116 DC, 3116 AC, 3116 MV errors  
[h264 @ 0x10204ea00] concealing 3081 DC, 3081 AC, 3081 MV errors
[h264 @ 0x10204ea00] concealing 3231 DC, 3231 AC, 3231 MV errors  
[h264 @ 0x10204ea00] concealing 3226 DC, 3226 AC, 3226 MV errors

Any ideas?

I also get errors on the 1080i50 input but i do get a picture

joolz


More information about the ffmpeg-devel mailing list