# ajasrc

Source element for AJA capture cards.

## Example usage

Capture 1080p30 audio/video and display it locally

    gst-launch-1.0 ajasrc video-format=1080p-3000 ! ajasrcdemux name=d \
        d.video ! queue max-size-bytes=0 max-size-buffers=0
    max-size-time=1000000000 ! videoconvert ! autovideosink \ d.audio ! queue
    max-size-bytes=0 max-size-buffers=0 max-size-time=1000000000 ! audioconvert !
    audioresample ! autoaudiosink

Capture 1080p30 audio/video and directly output it again on the same card

    gst-launch-1.0 ajasrc video-format=1080p-3000 channel=1 input-source=sdi-1
    audio-system=2 ! ajasrcdemux name=d \
        d.video ! queue max-size-bytes=0 max-size-buffers=0
    max-size-time=1000000000 ! c.video \
        d.audio ! queue max-size-bytes=0 max-size-buffers=0
    max-size-time=1000000000 ! c.audio \ ajasinkcombiner name=c ! ajasink
    channel=0 reference-source=input-1

## Hierarchy

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

## Factory details

Authors: – Sebastian Dröge <sebastian></sebastian>

Classification: – `Audio/Video/Source`

Rank – none

Plugin – aja

Package – GStreamer Bad Plug-ins

## Pad Templates

### `src`

    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: interleaved
        field-order: top-field-first
    pixel-aspect-ratio: 1/1
          framerate: 25/1
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: interleaved
        field-order: top-field-first
    pixel-aspect-ratio: 1/1
          framerate: 30000/1001
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: interleaved
        field-order: top-field-first
    pixel-aspect-ratio: 1/1
          framerate: 30/1
    video/x-raw:
             format: v210
              width: 1280
             height: 720
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60000/1001
    video/x-raw:
             format: v210
              width: 1280
             height: 720
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60/1
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24000/1001
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24/1
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30000/1001
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30/1
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 25/1
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24000/1001
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24/1
    video/x-raw:
             format: v210
              width: 1280
             height: 720
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 50/1
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 50/1
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60000/1001
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60/1
    video/x-raw:
             format: v210
              width: 1280
             height: 720
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24000/1001
    video/x-raw:
             format: v210
              width: 1280
             height: 720
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 50/1
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 25/1
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30000/1001
    video/x-raw:
             format: v210
              width: 1920
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30/1
    video/x-raw:
             format: v210
              width: 720
             height: 576
     interlace-mode: interleaved
        field-order: top-field-first
    pixel-aspect-ratio: 12/11
          framerate: 25/1
    video/x-raw:
             format: v210
              width: 720
             height: 576
     interlace-mode: interleaved
        field-order: top-field-first
    pixel-aspect-ratio: 16/11
          framerate: 25/1
    video/x-raw:
             format: v210
              width: 720
             height: 486
     interlace-mode: interleaved
        field-order: bottom-field-first
    pixel-aspect-ratio: 10/11
          framerate: 30000/1001
    video/x-raw:
             format: v210
              width: 720
             height: 486
     interlace-mode: interleaved
        field-order: bottom-field-first
    pixel-aspect-ratio: 40/33
          framerate: 30000/1001
    video/x-raw:
             format: v210
              width: 720
             height: 486
     interlace-mode: progressive
    pixel-aspect-ratio: 10/11
          framerate: 24000/1001
    video/x-raw:
             format: v210
              width: 720
             height: 486
     interlace-mode: progressive
    pixel-aspect-ratio: 40/33
          framerate: 24000/1001
    video/x-raw:
             format: v210
              width: 720
             height: 486
     interlace-mode: progressive
    pixel-aspect-ratio: 10/11
          framerate: 24/1
    video/x-raw:
             format: v210
              width: 720
             height: 486
     interlace-mode: progressive
    pixel-aspect-ratio: 40/33
          framerate: 24/1
    video/x-raw:
             format: v210
              width: 2048
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24000/1001
    video/x-raw:
             format: v210
              width: 2048
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24/1
    video/x-raw:
             format: v210
              width: 2048
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 25/1
    video/x-raw:
             format: v210
              width: 2048
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30000/1001
    video/x-raw:
             format: v210
              width: 2048
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30/1
    video/x-raw:
             format: v210
              width: 2048
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 50/1
    video/x-raw:
             format: v210
              width: 2048
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60000/1001
    video/x-raw:
             format: v210
              width: 2048
             height: 1080
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60/1
    video/x-raw:
             format: v210
              width: 3840
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24000/1001
    video/x-raw:
             format: v210
              width: 3840
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24/1
    video/x-raw:
             format: v210
              width: 3840
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 25/1
    video/x-raw:
             format: v210
              width: 3840
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30000/1001
    video/x-raw:
             format: v210
              width: 3840
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30/1
    video/x-raw:
             format: v210
              width: 3840
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 50/1
    video/x-raw:
             format: v210
              width: 3840
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60000/1001
    video/x-raw:
             format: v210
              width: 3840
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60/1
    video/x-raw:
             format: v210
              width: 4096
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24000/1001
    video/x-raw:
             format: v210
              width: 4096
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24/1
    video/x-raw:
             format: v210
              width: 4096
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 25/1
    video/x-raw:
             format: v210
              width: 4096
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30000/1001
    video/x-raw:
             format: v210
              width: 4096
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30/1
    video/x-raw:
             format: v210
              width: 4096
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 50/1
    video/x-raw:
             format: v210
              width: 4096
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60000/1001
    video/x-raw:
             format: v210
              width: 4096
             height: 2160
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60/1
    video/x-raw:
             format: v210
              width: 7680
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24000/1001
    video/x-raw:
             format: v210
              width: 7680
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24/1
    video/x-raw:
             format: v210
              width: 7680
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 25/1
    video/x-raw:
             format: v210
              width: 7680
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30000/1001
    video/x-raw:
             format: v210
              width: 7680
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30/1
    video/x-raw:
             format: v210
              width: 7680
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 50/1
    video/x-raw:
             format: v210
              width: 7680
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60000/1001
    video/x-raw:
             format: v210
              width: 7680
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60/1
    video/x-raw:
             format: v210
              width: 8192
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24000/1001
    video/x-raw:
             format: v210
              width: 8192
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 24/1
    video/x-raw:
             format: v210
              width: 8192
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 25/1
    video/x-raw:
             format: v210
              width: 8192
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30000/1001
    video/x-raw:
             format: v210
              width: 8192
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 30/1
    video/x-raw:
             format: v210
              width: 8192
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 50/1
    video/x-raw:
             format: v210
              width: 8192
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60000/1001
    video/x-raw:
             format: v210
              width: 8192
             height: 4320
     interlace-mode: progressive
    pixel-aspect-ratio: 1/1
          framerate: 60/1

Presence – always

Direction – src

Object type – GstPad

## Properties

### attach-ancillary-meta

    “attach-ancillary-meta” gboolean

If set to TRUE attach any ancillary data as GstAncillaryMeta on buffers

Flags : Read / Write / Construct

Default value : false

Since : 1.24

### audio-source

    “audio-source” Aja-audio-source *

Audio source to use

Flags : Read / Write / Construct

Default value : Embedded (0)

### audio-system

    “audio-system” GstAjaAudioSystem *

Audio system to use

Flags : Read / Write / Construct

Default value : Auto (based on selected channel) (0)

### capture-cpu-core

    “capture-cpu-core” guint

Sets the affinity of the capture thread to this CPU core (-1=disabled)

Flags : Read / Write / Construct

Default value : -1

### channel

    “channel” guint

Channel to use

Flags : Read / Write / Construct

Default value : 0

### closed-caption-capture-mode

    “closed-caption-capture-mode” Aja-closed-caption-capture-mode *

Closed Caption Capture Mode

Flags : Read / Write / Construct

Default value : CEA708 S334-2 and CEA608 S334-1 Annex A Closed Captions (0)

### device-identifier

    “device-identifier” gchararray

Input device instance to use

Flags : Read / Write / Construct

Default value : 0

### embedded-audio-input

    “embedded-audio-input” Aja-embedded-audio-input *

Embedded Audio Input to use

Flags : Read / Write / Construct

Default value : auto (0)

### end-frame

    “end-frame” guint

End frame buffer to be used for capturing (automatically assign that many frames if same number as start-frame).

Flags : Read / Write

Default value : 8

### input-source

    “input-source” Aja-input-source *

Input source to use

Flags : Read / Write / Construct

Default value : Auto (based on selected channel) (0)

### queue-size

    “queue-size” guint

Size of internal queue in number of video frames. Half of this is allocated as device buffers and equal to the latency.

Flags : Read / Write

Default value : 16

### reference-source

    “reference-source” GstAjaReferenceSource *

Reference source to use

Flags : Read / Write / Construct

Default value : Freerun (1)

### rp188

    “rp188” gboolean

Enable RP188 timecode retrieval

Flags : Read / Write / Construct

Default value : true

### sdi-input-mode

    “sdi-input-mode” GstAjaSdiMode *

SDI input mode to use

Flags : Read / Write / Construct

Default value : Single Link (0)

### signal

    “signal” gboolean

True if there is a valid input signal available

Flags : Read

Default value : false

### start-frame

    “start-frame” guint

Start frame buffer to be used for capturing (automatically assign that many frames if same number as end-frame).

Flags : Read / Write

Default value : 8

### timecode-index

    “timecode-index” GstAjaTimecodeIndex *

Timecode index to use

Flags : Read / Write / Construct

Default value : Embedded SDI VITC (0)

### video-format

    “video-format” Aja-video-format *

Video format to use

Flags : Read / Write / Construct

Default value : Auto detect format (0)

## Named constants

### Aja-audio-source

#### Members

`Embedded` (0) – embedded
`AES` (1) – aes
`Analog` (2) – analog
`HDMI` (3) – hdmi
`Microphone` (4) – mic

### GstAjaAudioSystem

#### Members

`Auto (based on selected channel)` (0) – auto
`Audio system 1` (1) – 1
`Audio system 2` (2) – 2
`Audio system 3` (3) – 3
`Audio system 4` (4) – 4
`Audio system 5` (5) – 5
`Audio system 6` (6) – 6
`Audio system 7` (7) – 7
`Audio system 8` (8) – 8

### Aja-closed-caption-capture-mode

#### Members

`CEA708 S334-2 and CEA608 S334-1 Annex A Closed Captions` (0) – cea708-and-cea608
`CEA708 S334-2 or if not existing CEA608 S334-1 Annex A Closed Captions` (1) – cea708-or-cea608
`CEA608 S334-1 Annex A or if not existing CEA708 S334-2 Closed Captions` (2) – cea608-or-cea708
`CEA708 S334-2 Closed Captions only` (3) – cea708-only
`CEA608 S334-1 Annex A Closed Captions only` (4) – cea608-only
`Don't capture Closed Captions` (5) – none

### Aja-embedded-audio-input

#### Members

`auto` (0) – auto
`Video 1` (1) – video-1
`Video 2` (2) – video-2
`Video 3` (3) – video-3
`Video 4` (4) – video-4
`Video 5` (5) – video-5
`Video 6` (6) – video-6
`Video 7` (7) – video-7
`Video 8` (8) – video-8

### Aja-input-source

#### Members

`Auto (based on selected channel)` (0) – auto
`Analog Input 1` (1) – analog-1
`SDI Input 1` (6) – sdi-1
`SDI Input 2` (7) – sdi-2
`SDI Input 3` (8) – sdi-3
`SDI Input 4` (9) – sdi-4
`SDI Input 5` (10) – sdi-5
`SDI Input 6` (11) – sdi-6
`SDI Input 7` (12) – sdi-7
`SDI Input 8` (13) – sdi-8
`HDMI Input 1` (2) – hdmi-1
`HDMI Input 2` (3) – hdmi-2
`HDMI Input 3` (4) – hdmi-3
`HDMI Input 4` (5) – hdmi-4

### GstAjaReferenceSource

#### Members

`Auto` (0) – auto
`Freerun` (1) – freerun
`External` (2) – external
`SDI Input 1` (3) – input-1
`SDI Input 2` (4) – input-2
`SDI Input 3` (5) – input-3
`SDI Input 4` (6) – input-4
`SDI Input 5` (7) – input-5
`SDI Input 6` (8) – input-6
`SDI Input 7` (9) – input-7
`SDI Input 8` (10) – input-8

### GstAjaSdiMode

#### Members

`Single Link` (0) – single-link
`Quad Link SQD` (1) – quad-link-sqd
`Quad Link TSI` (2) – quad-link-tsi

### GstAjaTimecodeIndex

#### Members

`Embedded SDI VITC` (0) – vitc
`Embedded SDI ATC LTC` (1) – atc-ltc
`Analog LTC 1` (2) – ltc-1
`Analog LTC 2` (3) – ltc-2

### Aja-video-format

#### Members

`Auto detect format` (0) – auto
`1080i 5000` (1) – 1080i-5000
`1080i 5994` (2) – 1080i-5994
`1080i 6000` (3) – 1080i-6000
`720p 5994` (4) – 720p-5994
`720p 6000` (5) – 720p-6000
`1080psf 2398` (6) – 1080psf-2398
`1080psf 2400` (7) – 1080psf-2400
`1080p 2997` (8) – 1080p-2997
`1080p 3000` (9) – 1080p-3000
`1080p 2500` (10) – 1080p-2500
`1080p 2398` (11) – 1080p-2398
`1080p 2400` (12) – 1080p-2400
`720p 5000` (13) – 720p-5000
`1080p 5000 A` (14) – 1080p-5000-a
`1080p 5994 A` (15) – 1080p-5994-a
`1080p 6000 A` (16) – 1080p-6000-a
`720p 2398` (17) – 720p-2398
`720p 2500` (18) – 720p-2500
`1080psf 2500 2` (19) – 1080psf-2500-2
`1080psf 2997 2` (20) – 1080psf-2997-2
`1080psf 3000 2` (21) – 1080psf-3000-2
`625 5000` (22) – 625-5000
`525 5994` (23) – 525-5994
`525 2398` (24) – 525-2398
`525 2400` (25) – 525-2400
`1080p DCI 2398` (26) – 1080p-dci-2398
`1080p DCI 2400` (27) – 1080p-dci-2400
`1080p DCI 2500` (28) – 1080p-dci-2500
`1080p DCI 2997` (29) – 1080p-dci-2997
`1080p DCI 3000` (30) – 1080p-dci-3000
`1080p DCI 5000 A` (31) – 1080p-dci-5000-a
`1080p DCI 5994 A` (32) – 1080p-dci-5994-a
`1080p DCI 6000 A` (33) – 1080p-dci-6000-a
`2160p 2398` (34) – 2160p-2398
`2160p 2400` (35) – 2160p-2400
`2160p 2500` (36) – 2160p-2500
`2160p 2997` (37) – 2160p-2997
`2160p 3000` (38) – 2160p-3000
`2160p 5000` (39) – 2160p-5000
`2160p 5994` (40) – 2160p-5994
`2160p 6000` (41) – 2160p-6000
`2160p DCI 2398` (42) – 2160p-dci-2398
`2160p DCI 2400` (43) – 2160p-dci-2400
`2160p DCI 2500` (44) – 2160p-dci-2500
`2160p DCI 2997` (45) – 2160p-dci-2997
`2160p DCI 3000` (46) – 2160p-dci-3000
`2160p DCI 5000` (47) – 2160p-dci-5000
`2160p DCI 5994` (48) – 2160p-dci-5994
`2160p DCI 6000` (49) – 2160p-dci-6000
`4320p 2398` (50) – 4320p-2398
`4320p 2400` (51) – 4320p-2400
`4320p 2500` (52) – 4320p-2500
`4320p 2997` (53) – 4320p-2997
`4320p 3000` (54) – 4320p-3000
`4320p 5000` (55) – 4320p-5000
`4320p 5994` (56) – 4320p-5994
`4320p 6000` (57) – 4320p-6000
`4320p DCI 2398` (58) – 4320p-dci-2398
`4320p DCI 2400` (59) – 4320p-dci-2400
`4320p DCI 2500` (60) – 4320p-dci-2500
`4320p DCI 2997` (61) – 4320p-dci-2997
`4320p DCI 3000` (62) – 4320p-dci-3000
`4320p DCI 5000` (63) – 4320p-dci-5000
`4320p DCI 5994` (64) – 4320p-dci-5994
`4320p DCI 6000` (65) – 4320p-dci-6000

The results of the search are