Skip to main content

API Documentation


Contents

    Parameters
    Cloud Credentials
    Cloud Credentials Input/Output
    Audio Profiles
    Video Profiles
    Supported Containers and Codecs
    Creating Jobs
    Using the API from within Python
    Retrieving a Sent Job



Parameters

input

or not to use this input. This will be an object key if using a cloud provider, or a regular URL otherwise.

Type Required Default
string Yes  

videoProfiles


An array containing at least one video profile.

Type Required Default
array Yes  

audioProfiles


An array containing zero or more audio profiles.

Type Required Default
array Yes  

output_container


Output container to be used. Supported values are tsmp4hls, and silverlight .

Type Required Default
string No mp4

ts_mode_input_audio_source_stream_count


Audio stream count (in TS mode only).

Type Required Default
number No  

audio_output_path


The cloud location where audio should be stored.

Type Required Default
string No  

bucket_output_path


The location, within a cloud bucket, where the output should be stored in segmented mode.

Type Required Default
string No  

master_variant_mode


Whether or not to use separate audio.

Type Required Default
boolean No false

segmented_output_hls


Whether to use HLS in segmented output.

Type Required Default
boolean No false

segmented_output_dash


Whether to use DASH in segmented output.

Type Required Default
boolean No false

segment_length


The segment length in segmented output.

Type Required Default
number No  

video_codec


Output video encoder. Supported values are h.264mpeg2, and hevc.

Type Required Default
string No h.264

ip_distance


Target I/P frame distance.

Type Required Default
number No  

gop_length


Target GOP length in seconds.

Type Required Default
number No 1

scte35_passthough


Use SCTE35 passthrough?

Type Required Default
boolean No false

scte35_pid_remap


PID Remap.

Type Required Default
number No  

create_tar_file


In segmented output, whether to tar the resulting directory and store it in the same bucket specified by the bucket_output_path parameter. Note that this will take up more space in your bucket.

Type Required Default
boolean No  

audio_volume

Target audio volume (0-200).

Type Required Default
number No 100

h264_quality


Output quality. Accepted values are 'good', 'better', and 'best'. Supported values are goodbetter , and best.

Type Required Default
string No good

video_aspect_ratio


Output video aspect ratio. Supported values are passthroughforce_4:3force_16:9invert_aspect_ratiorotate_counterclockwise , rotate_clockwise, and rotate_counterclockwise + invert_aspect_ratio.

Type Required Default
string No passthrough

rotation_blackness


... .

Type Required Default
number No  

closed_captions


Write CC to output?

Type Required Default
boolean No  

force_progressive


Force progressive?

Type Required Default
boolean No false

keep_fps


Preserve the framerate?

Type Required Default
boolean No true

logo_url


URL to an image file to use as a watermark.

Type Required Default
string No  

cloud_credentials


See Below

Type Required Default
object Yes

Cloud Credentials

input


Type Required Default
object
Yes

output


Type Required Default
object
Yes

Cloud Credentials Input/Output

cloud_provider

The cloud provider to use

Supported values are awsoracle, gcloud, http, nfs, file-upload, igolgi-store .

Type Required Default
string Yes oracle

access_key

Account access key.

Type Required Default
string No

secret_key

Account secret key.

Type Required Default
string No

region

The region within which your target bucket is located.

Type Required Default
string No

------

tenancy_ocid


Tenancy OCID (for oracle only)

Type Required Default
string No

user_ocid


User OCID (for oracle only)

Type Required Default
string No  

oci_fingerprint


User Fingerprint (for oracle only)

Type Required Default
string No

project_id


Project ID (for google only)

Type Required Default
string No

client_email


Client email (for google only)

Type Required Default
string No

client_id


Client ID (for google only)

Type Required Default
string No

private_key_id


Private Key ID (for google only)

Type Required Default
string No


Audio Profiles

audio_codec


Audio codec to be used during transcode. Supported values are aac ac3 or mp2.

Type Required Default
string No aac

audio_channels


Number of audio channels on the output. Use 2 for stereo and 6 for 5.1. Supported values are 2 or 6.

Type Required Default
string No 2

audio_bitrate


Output audio bitrate. Supported values are 32, 40, 64, 96, 128, 192, 256, 384, 448 or 768.

Type Required Default
string No 256

primary_audio_downmix_to_stereo


Downmix primary audio from 5.1 to stereo.

Type Required Default
boolean No

source_stream


The index of the source stream. Supported values are 1 , 234567 or 8.

Type Required Default
string No

dolby_digital_dialnorm


The dialnorm. Values range from 0 to 31 inclusive. Use 0 for passthrough.

Type Required Default
number No


Video Profiles

output


The location, including the file name, where the output is to be sent.

Type Required Default
string No

width


The output width in pixels.

Type Required Default
number Yes

height


The output height in pixels

Type Required Default
number Yes

video_bitrate_mode


Output video bitrate mode. Supported values are cbr or vbr.

Type Required Default
string No

video_bitrate


The video bitrate in kbps.

Type Required Default
number Yes

video_framerate


The video framerate. Supported values are 1x, 1/2x or 2x.

Type Required Default
string No 1x

audio_profiles


Type Required Default
string No


Supported Containers and Codecs

  • Input Containers: MXF, MPEG2-TS and MP4
  • Output Containers: MPEG2-TS, MP4
  • Input Codecs: MPEG2, ProRes, XDCAM, H.264, HEVC for video; AC3, MPEG2, AAC for audio
  • Output Codecs: MPEG2, H.264 and HEVC for video; Passthrough, AAC-LC and AAC 5.1 for audio, AC3 stereo and 5.1 for audio


Creating Jobs


Using the API from within Python


Retrieving a Sent Job

Job Status: {'job_id': '4765', 'tcode_progress': '100', 'state': 'ready', 'tcode_time': '57.89', 'tcode_speed': '0.0', 'job_completed': True, 'xfer_speed': '337.88', 'xfer_time': '0.67', 'xfer_progress': '100'}

Job Config: {'input': 'https://streamengine.igolgi.com/uploads/659d9ac25dc7bf7b1a7c487a971a98e8', 'videoProfiles': [{'output': 'oci://yzwhip2gci7s/igolgi-public/80d8cc2a_bdab_442b_bc19_21fe00267a34.mp4', 'width': 0, 'height': 0, 'video_bitrate': 6000, 'video_framerate': '1x'}], 'audioProfiles': [{'audio_codec': 'aac', 'audio_channels': 2, 'audio_bitrate': 128, 'primary_audio_downmix_to_stereo': False, 'source_stream': 1}], 'output_container': 'mp4', 'audio_output_path': 'oci://yzwhip2gci7s/igolgi-public/96dbafd7_bf4f_45a8_bd06_627a4684e45b.mp4', 'separate_audio': True, 'segmented_output_hls': False, 'segmented_output_dash': False, 'video_codec': 'hevc', 'ip_distance': 3, 'gop_length': 2, 'scte35_passthough': False, 'scte35_pid_remap': -1, 'create_tar_file': False, 'audio_volume': 100, 'h264_quality': 'good', 'video_aspect_ratio': 'rotate_counterclockwise + invert_aspect_ratio', 'rotation_blackness': 0, 'closed_captions': False, 'picture_transform': 'none', 'logo_url': None}