Change Job Settings


You can process automatically ("default”) with particular process_type and file_management_copy_preference for all files or you can decide at the time of batch job submission("ask_me_every_time”).



process_type
string

Items Enum:

"size" "quality" "1080p" "4k" "default"


List of allowed process type:

Video_optimizer supports [size, quality]. Video_upscaler supports[1080p, 4k, default]


file_management_copy_preference
string

Items Enum:

"replace_original_file" "manual_copy" "create_copy"


List of allowed file management:

copy preference


Note:

We can set Ask me everytime flag true by calling /v1/customer/update. Please refer customer update API

By default ask_me_every_time is set to FALSE,

  • If optimizer_process_settings=>ask_me_every_time is TRUE Then process_type is is mandatory for Optimiser job

  • If upscaler_process_settings=>ask_me_every_time is TRUE Then process_type is mandatory for Upscaler job

  • If If optimizer_file_management_properties=> ask_me_every_time is TRUE Then file_copy_preference value is mandatory for Optimiser job

  • If upscaler_file_management_properties=> ask_me_every_time is TRUE then file_copy_preference value is mandatory for Upscaler job


In below example, ask_every_type for upscaler.




  curl 'https://optimus-api.crunchmediaworks.com/v1/customer/update'   -X 'PUT'   -H 'authorization: XXX'   --data-raw '{
  "vod": {
    "upscaler_process_settings": {
      "type": "4k",
      "ask_me_every_time": false
    },
    "optimizer_process_settings": {
      "type": "size",
      "ask_me_every_time": true
    },
    "upscaler_file_management_properties": {
      "file_copy_preference": "manual_copy",
      "ask_me_every_time": true
    },
    "optimizer_file_management_properties": {
      "file_copy_preference": "manual_copy",
      "ask_me_every_time": false
    }
  },
  "email_notification_settings": {
    "notify_when_file_processed": true,
    "notify_when_limit_reached": true
  }
}'





  {
    "data":{
       "id":"a33d91ad-8823-46a6-8046-302f8cb9a7bc",
       "user_type":"",
       "name":"x",
       "family_name":"",
       "email”:”xx@yyy.com",
       "company_name":"abc",
       "updated_at":1688126656,
       "vod":{
          "media_preset_id":"8f2c93f6-6603-4ad8-a774-5fbe63428a6f",
          "media_preset_name":"default",
          "transcoder_preset_id":"a9ceebde-1ac0-4505-9f9c-ebfdeaa3910a",
          "transcoder_preset_name":"default",
          "input_bucket":"cmw-optimus-media",
          "output_bucket":"cmw-optimus-media",
          "region":"us-east1",
          "managed_by":"crunch",
          "is_configured":"true",
          "optimizer_max_duration":360000000,
          "optimizer_utilized_duration":42321,
          "upscaler_max_duration":3600,
          "upscaler_utilized_duration":1817,
          "primary_use":"Business",
          "primary_storages":[
             {
                "provider":"drive",
                "is_connected":true
             },
             {
                "provider":"dropbox",
                "is_connected":true
             },
             {
                "provider":"s3",
                "is_connected":true
             },
             {
                "provider":"oci",
                "is_connected":true
             }
          ],
          "upscaler_file_management_properties":{
             "ask_me_every_time":false,
             "file_copy_preference":"manual_copy"
          },
          "optimizer_file_management_properties":{
             "ask_me_every_time":false,
             "file_copy_preference":"manual_copy"
          },
          "upscaler_process_settings":{
             "type":"default",
             "ask_me_every_time":true
          },
          "optimizer_process_settings":{
             "type":"size",
             "ask_me_every_time":false
          }
       },
       "email_notification_settings":{
          "notify_when_file_processed":true,
          "notify_when_limit_reached":true,
          "account_related_notification":true
       }
    },
    "message":"User updated successfully"
 }
  


API doc link: