Creating cURL Jobs
Creating Jobs
To create a job, use your API key along with a JSON payload matching the schema described in the tables above, and make an HTTP GET request like the following:
curl https://streamengine.igolgi.com/api/v0/job \ -k \ --request POST \ -u 8e6f7a5bf90821a175338ce08be4b7ca:a \ --header 'Content-Type: application/json' \ -d '{ "videoProfiles": [ { "output": "", "width": 1024, "height": 768, "video_bitrate": 3500, "video_bitrate_mode": "cbr", "video_framerate": "1x" } ], "audioProfiles": [ { "audio_bitrate": 256, "audio_channels": 2, "audio_codec": "aac" } ], "output_container": "mp4", "video_codec": "h.264", "input": "oci://yzwhip2gci7s/jey_test_bucket2/test_dir/moana_30_seconds.ts", "cloud_credentials": { "input": { "cloud_provider": "oracle", "access_key": "...", "secret_key": "...", "region": "ca-toronto-1" } } }'
Retrieving a Sent Job
To retrieve a job, use your API key to make a GET request to the /api/v0/job/id endpoint, replacing id with the id of the job you wish to retrieve:
curl https://streamengine.igolgi.com/api/v0/job/1 \ -u 8e6f7a5bf90821a175338ce08be4b7ca:
The response will look something like this:
{ "status": { "tcode_progress": "0", "state": "ready", ... # additional fields }, "config": { ... # your job configuration }, }
This allows you to retrieve the original configuration for your job, as well as check on its progress using the tcode_progress field.
No Comments