AmazonEtjobcreate()
Amazon Elastic Transcoder: Creates a job. Returns the Job ID. See AWS http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/create-job.html
Usage
STRING = AmazonEtjobcreate(
datasource,
pipelineid,
outputkeyprefix,
input,
outputs
)
Argument | Summary |
---|---|
datasource | Amazon datasource |
pipelineid | ID of the pipeline |
outputkeyprefix | The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. |
input | Structure for the input: {'aspectratio':'aspect ratio of the input file', 'container':'container type for the input file','framerate':'frame rate of the input file','interlaced':'Whether the input file is interlaced','key':'name of the file to encode','resolution':'This value must be auto, which causes Elastic Transcoder to automatically detect the resolution of the input file','encryption':{'key':'The data encryption key that you want Elastic Transcoder to use to encrypt your output file, or that was used to encrypt your input file.','keymd5':'MD5 digest of the key that you used to encrypt your input file, or that you want Elastic Transcoder to use to encrypt your output file.','mode':'specific server-side encryption mode that you want Elastic Transcoder to use when decrypting your input files or encrypting your output files.','initializationvector':'series of random bits created by a random bit generator, unique for every encryption operation, that you used to encrypt your input files or that you want Elastic Transcoder to use to encrypt your output files.'}} |
outputs | Array of structures for the output: [{'presetid':'The Id of the preset to use for this job','key':'The name to assign to the transcoded file','rotate':'The number of degrees clockwise by which you want Elastic Transcoder to rotate the output relative to the input','segmentduration':'(Outputs in Fragmented MP4 or MPEG-TS format only.If you specify a preset in PresetId for which the value of Container is fmp4 (Fragmented MP4) or ts (MPEG-TS), SegmentDuration is the target maximum duration of each segment in seconds.','encryption':{'key':'The data encryption key that you want Elastic Transcoder to use to encrypt your output file, or that was used to encrypt your input file.','keymd5':'MD5 digest of the key that you used to encrypt your input file, or that you want Elastic Transcoder to use to encrypt your output file.','mode':'specific server-side encryption mode that you want Elastic Transcoder to use when decrypting your input files or encrypting your output files.','initializationvector':'series of random bits created by a random bit generator, unique for every encryption operation, that you used to encrypt your input files or that you want Elastic Transcoder to use to encrypt your output files.'},'thumbnailencryption':{'key':'The data encryption key that you want Elastic Transcoder to use to encrypt your output file, or that was used to encrypt your input file.','keymd5':'MD5 digest of the key that you used to encrypt your input file, or that you want Elastic Transcoder to use to encrypt your output file.','mode':'specific server-side encryption mode that you want Elastic Transcoder to use when decrypting your input files or encrypting your output files.','initializationvector':'series of random bits created by a random bit generator, unique for every encryption operation, that you used to encrypt your input files or that you want Elastic Transcoder to use to encrypt your output files.'},'thumbnailpattern':'Whether you want Elastic Transcoder to create thumbnails for your videos and, if so, how you want Elastic Transcoder to name the files','watermarks':'[{encyption:{see above},'inputkey':'The name of the .png or .jpg file that you want to use for the watermark.','presetwatermarkid':'The ID of the watermark settings that Elastic Transcoder uses to add watermarks to the video during transcoding.']','composition':[{'starttime:'starting place of the clip, in HH:mm:ss.SSS or sssss.SSS',duration:'duration of the clip, in HH:mm:ss.SSS or sssss.SSS'}],'captions':{'mergepolicy':'policy that determines how Elastic Transcoder handles the existence of multiple captions',[{'encryption':'see above','format':'The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for this output.','pattern':'The prefix for caption filenames, in the form description-{language}, where: description is a description of the video. {language} is a literal value that Elastic Transcoder replaces with the two- or three-letter code for the language of the caption in the output file name'}]},'albumart':{'mergepolicy':'A policy that determines how Elastic Transcoder will handle the existence of multiple album artwork files','artwork':[{'encryption':'see above','albumartformat':'jpg|png','inputkey':'The name of the file to be used as album art.','maxheight:'maximum height of the output album art in pixels','maxwidth':'maximum width of the output album art in pixels','paddingpolicy':'Pad|NoPad','sizingpolicy':'Fit|Fill|Stretch|Keep|ShrinkToFit|ShrinkToFill' }]}}] [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
AmazonEtjobcreate( datasource=?, pipelineid=?, outputkeyprefix=?, input=?, outputs=? );
Supports passing parameters as a structure using ArgumentCollection:
AmazonEtjobcreate( ArgumentCollection={ datasource : ?, pipelineid : ?, outputkeyprefix : ?, input : ?, outputs : ? } );
See Also
AmazonEtjobcancel
AmazonEtjobcreate
AmazonEtjoblist
AmazonEtjobread
AmazonEtpipelinecreate
AmazonEtpipelinedelete
AmazonEtpipelinelist
AmazonEtpipelineread
AmazonEtpipelineupdatestatus
AmazonEtpresetslist
AmazonLambdaexecute
AmazonLambdaexecuteasync
AmazonRegisterdatasource
AmazonRemovedatasource
AmazonS3bucketexists
AmazonS3bucketrequesterpays
AmazonS3bucketsetacl
AmazonS3changestorageclass
AmazonS3copy
AmazonS3createbucket
AmazonS3delete
AmazonS3deletebucket
AmazonS3getinfo
AmazonS3geturl
AmazonS3list
AmazonS3listbuckets
AmazonS3read
AmazonS3rename
AmazonS3setacl
AmazonS3write
AmazonSimpledbcreatedomain
AmazonSimpledbdeleteattribute
AmazonSimpledbdeletedomain
AmazonSimpledbgetattributes
AmazonSimpledblistdomains
AmazonSimpledbsetattribute
AmazonSimpledbsetstruct
AmazonSqsaddpermission
AmazonSqschangemessagevisibility
AmazonSqscreatequeue
AmazonSqsdeletemessage
AmazonSqsdeletequeue
AmazonSqsgetattributes
AmazonSqslistqueues
AmazonSqsreceivemessage
AmazonSqsremovepermission
AmazonSqssendmessage