# AJA documentation
`AJA` is an IO plugin for Vahana VR. It allows Vahana VR to capture audio/video
input and stream audio/video output with the AJA Corvid capture cards.
The plugin has been developed and tested with the following models:
* [AJA Corvid 88](https://www.aja.com/en/products/developer/corvid-88)
## Set-up
Drivers:
## Input configuration
The aja plugin can be used by Vahana VR through a .vah project file. Please see
the `*.vah file format specification` for additional details.
Define an input for each input on the capture cards. The `reader_config` member specifies how to read
it.
### Example
"inputs" : [
{
"width" : 1920,
"height" : 1080,
...
"reader_config" : {
"type" : "aja",
"name" : "01",
"device": 0,
"channel": 1,
"fps" : 30,
"pixel_format" : "UYVY",
"audio" : true,
}
...
},
{
"width" : 1920,
"height" : 1080,
...
"reader_config" : {
"type" : "aja",
"name" : "02",
"device": 0,
"channel" 2,
"fps" : 30,
"pixel_format" : "UYVY",
"audio" : false
}
...
}]
### Parameters
Member | Type | Value | |
type | string | aja | Required. Defines an AJA input. |
name | string | - | Required. The AJA input entry name. |
Note that these fields width the width
and height
fields must match exactly an existing display mode below.
device | int | - | Required. The input card number (Starting from 0). |
channel | int | - | Required. The intpu channel for the selected card. |
fps | double | - | Required. The input framerate. |
pixel_format | string | - | Required. The input pixel format. Supported values are UYVY , YV12 and BGRU . |
audio | bool | - | Required. Does this reader capture audio. |
## Output configuration
An example on how to use the device 1 in the channel 2 with audio enabled at 29.97 fps.
### Example
"outputs" : [
{
"type" : "aja",
"filename" : "12",
"device" : 1,
"channel" : 2,
"fps" : 29.97,
"pixel_format" : "UYVY",
"audio": true
}]
### Parameters
Member | Type | Value | |
type | string | aja | Required. Defines an AJA output. |
filename | string | - | Required. AJA output identifier. |
Note that these fields must match exactly an existing display mode below. You also want larger or equals width
and a height
than the pano's ones.
device | int | - | Required. The output card number (Starting from 0). |
channel | int | - | Required. The output channel for the selected card. |
fps | double | - | Required. The output framerate. |
pixel_format | string | - | Required. The output pixel format. Supported values are UYVY , YV12 and BGRU . |
audio | bool | - | Required. The output audio is enabled or disabled. |
offset_x | bool | - | Optional. The horizontal panorama offset within the display. |
offset_y | bool | - | Optional. The vertical panorama offset within the display. |
##Audio
We only support one audio mode for input and output:
48000 Hz 8 channels and 32 bits
## AJA supported display modes
The available display modes depend on the AJA cards.
For Corvid 88 you can get more information at https://www.aja.com/en/products/developer/corvid-88#techspecs
Mode name | Height | Width | Mode | Framerate |
SD | 525 | | i | 29.97 |
SD | 625 | | i | 25 |
HD | 720 | | p | 50 |
HD | 720 | | p | 59.94 |
HD | 720 | | p | 60 |
HD | 1080 | | i | 25 |
HD | 1080 | | i | 29.97 |
HD | 1080 | | i | 30 |
HD | 1080 | | PsF | 23.98 |
HD | 1080 | | PsF | 24 |
HD | 1080 | | PsF | 29.97 |
HD | 1080 | | PsF | 30 |
HD | 1080 | | p | 23.98 |
HD | 1080 | | p | 24 |
HD | 1080 | | p | 25 |
HD | 1080 | | p | 29.97 |
HD | 1080 | | p | 30 |
HD | 1080 | | p | 50A/B |
HD | 1080 | | p | 59.94A/B |
HD | 1080 | | p | 60A/B |
2K | 1080 | 2048 | p | 23.98 |
2K | 1080 | 2048 | p | 24 |
2K | 1080 | 2048 | p | 25 |
2K | 1080 | 2048 | p | 29.97 |
2K | 1080 | 2048 | p | 30 |
2K | 1080 | 2048 | p | 48A/B |
2K | 1080 | 2048 | p | 50A/B |
2K | 1080 | 2048 | p | 59.94A/B |
2K | 1080 | 2048 | p | 60A/B |
2K | 1080 | 2048 | PsF | 23.98 |
2K | 1080 | 2048 | PsF | 24 |
2K | 1080 | 2048 | PsF | 25 |
2K | 1080 | 2048 | PsF | 29.97 |
2K | 1080 | 2048 | PsF | 30 |
2K | 1080 | 2048 | PsF | 48A/B |
2K | 1080 | 2048 | PsF | 50A/B |
2K | 1080 | 2048 | PsF | 59.94A/B |
2K | 1080 | 2048 | PsF | 60A/B |
4K | 2160 | 3840 | p | 23.98 |
4K | 2160 | 3840 | p | 24 |
4K | 2160 | 3840 | p | 25 |
4K | 2160 | 3840 | p | 29.97 |
4K | 2160 | 3840 | p | 30 |
4K | 2160 | 3840 | p | 48A/B |
4K | 2160 | 3840 | p | 50A/B |
4K | 2160 | 3840 | p | 59.94A/B |
4K | 2160 | 3840 | p | 60A/B |
4K | 2160 | 4096 | p | 23.98 |
4K | 2160 | 4096 | p | 24 |
4K | 2160 | 4096 | p | 25 |
4K | 2160 | 4096 | p | 29.97 |
4K | 2160 | 4096 | p | 30 |
4K | 2160 | 4096 | p | 48A/B |
4K | 2160 | 4096 | p | 50A/B |
4K | 2160 | 4096 | p | 59.94A/B |
4K | 2160 | 4096 | p | 60A/B |