[FFmpeg-user] DeckLink BlackMagic Micro 4K Studio RAW Capture

Antonio Castles antonio.castles at gmail.com
Mon Sep 17 15:26:33 EEST 2018


Hi all,

I'm trying to capture the raw signal from a Blackmagic Micro Studio 4K
through the SDI port. This was a feature that was enabled not long ago, but
Blackmagic is not very explicit on how to take advantage of it. In the
manual, they say:

The RAW SDI frame should be captured as uncompressed 422 data and unpacked
according to the table above.

The data can be recorded as an uncompressed 10-bit YUV recording using a
6G-SDI capable product, such as one of the following:
‚
UltraStudio 4K
‚UltraStudio 4K Extreme 3
‚DeckLink 8K Pro
‚DeckLink 4K Extreme 12G
‚DeckLink Studio 4K
‚DeckLink SDI 4K
‚DeckLink Mini Recorder 4K

Once you have a QuickTime recording of the RAW data, you will need to
unpack the signal to perform your own debayering of the image data from the
sensor.

I have tried different combinations and I keep getting a green noisy signal
and then a buffer overrun. What I understand is that I should aim at
getting the signal contained in a .mov file with the rawvideo codec and
then I should demosaic it, right? The command that I' am trying and the
output from the console are the following:

ffmpeg -f decklink -i 'DeckLink Mini Recorder 4K' -format_code 4k30
-raw_format ‘yuv422p10’ -c:v rawvideo -pixel_format yuv422p -video_size
3840x2160 -vsync 1 -framerate 30 -an -y raw.mov

ffmpeg version N-89355-g9f9dfebeca Copyright (c) 2000-2017 the FFmpeg
developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/home/polarfilmlab/ffmpeg_build
--bindir=/home/polarfilmlab/bin --enable-shared --disable-static
--extra-cflags='-I/home/polarfilmlab/ffmpeg_build/include
-I/home/polarfilmlab/decklink/Linux/include '
--extra-ldflags='-L/home/polarfilmlab/ffmpeg_build/lib
-L/home/polarfilmlab/decklink/Linux/include' --enable-gpl --enable-nonfree
--enable-libvidstab --enable-decklink
  libavutil      56.  4.100 / 56.  4.100
  libavcodec     58.  6.102 / 58.  6.102
  libavformat    58.  2.103 / 58.  2.103
  libavdevice    58.  0.100 / 58.  0.100
  libavfilter     7.  6.100 /  7.  6.100
  libswscale      5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[decklink @ 0x55f1c43e75c0] Autodetected the input mode
[decklink @ 0x55f1c43e75c0] Found Decklink mode 3840 x 2160 with rate 30.00
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, decklink, from 'DeckLink Mini Recorder 4K':
  Duration: N/A, start: 0.000000, bitrate: 3982848 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422(progressive),
3840x2160, 3981312 kb/s, 30 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #0:1 -> #0:0 (rawvideo (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, mov, to 'raw.mov':
  Metadata:
    encoder         : Lavf58.2.103
    Stream #0:0: Video: rawvideo (raw  / 0x20776172), uyvy422, 3840x2160,
q=2-31, 3981312 kb/s, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc58.6.102 rawvideo
[decklink @ 0x55f1c43e75c0] Decklink input buffer overrun!3
bitrate=3990691.2kbits/s speed=0.878x
    Last message repeated 6 times


I am new to this and I am a bit lost, but being able to capture raw with
this camera would be a massive upgrade. Any help is greatly appreciated.


More information about the ffmpeg-user mailing list