decklinkaudiosrc

Capture Video and Audio from a BlackMagic DeckLink Device. Can only be used in conjunction with decklinkvideosink.

Sample pipeline

 gst-launch-1.0 \
   decklinkvideosrc device-number=0 mode=1080p25 ! autovideosink \
   decklinkaudiosrc device-number=0 ! autoaudiosink

Capturing 1080p25 video and audio from the SDI-In of Card 0. Devices are numbered starting with 0.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseSrc
                    ╰──GstPushSrc
                        ╰──decklinkaudiosrc

Factory details

Authors: – David Schleef , Sebastian Dröge

Classification:Audio/Source/Hardware

Rank – none

Plugin – gstdecklink

Package – GStreamer Bad Plug-ins

Pad Templates

src

audio/x-raw:
         format: { S16LE, S32LE }
       channels: 2
           rate: 48000
         layout: interleaved
audio/x-raw:
         format: { S16LE, S32LE }
       channels: { (int)8, (int)16 }
   channel-mask: 0x0000000000000000
           rate: 48000
         layout: interleaved

Presencealways

Directionsrc

Object typeGstPad


Properties

alignment-threshold

“alignment-threshold” guint64

Timestamp alignment threshold in nanoseconds

Flags : Read / Write

Default value : 40000000


blocksize

“blocksize” guint

Size in bytes to read per buffer (-1 = default)

Flags : Read / Write

Default value : 4096


buffer-size

“buffer-size” guint

Size of internal buffer in number of video frames

Flags : Read / Write

Default value : 5


channels

“channels” GstDecklinkAudioChannels *

Audio channels

Flags : Read / Write / Construct

Default value : 2 (2)


connection

“connection” GstDecklinkAudioConnection *

Audio input connection to use

Flags : Read / Write / Construct

Default value : auto (0)


device-number

“device-number” gint

Output device instance to use

Flags : Read / Write / Construct

Default value : 0


discont-wait

“discont-wait” guint64

Window of time in nanoseconds to wait before creating a discontinuity

Flags : Read / Write

Default value : 1000000000


do-timestamp

“do-timestamp” gboolean

Apply current stream time to buffers

Flags : Read / Write

Default value : false


hw-serial-number

“hw-serial-number” gchararray

The serial number (hardware ID) of the Decklink card

Flags : Read

Default value : NULL


num-buffers

“num-buffers” gint

Number of buffers to output before sending EOS (-1 = unlimited)

Flags : Read / Write

Default value : -1


typefind

“typefind” gboolean

Run typefind before negotiating (deprecated, non-functional)

Flags : Read / Write

Default value : false


Named constants

GstDecklinkAudioChannels

Members

2 (2) – 2 Channels
8 (8) – 8 Channels
16 (16) – 16 Channels
max (0) – Maximum channels supported

GstDecklinkAudioConnection

Members

auto (0) – Automatic
embedded (1) – SDI/HDMI embedded audio
aes (2) – AES/EBU input
analog (3) – Analog input
analog-xlr (4) – Analog input (XLR)
analog-rca (5) – Analog input (RCA)

The results of the search are