AUTHOR: http://aws.typepad.com/aws/2013/07/amazon-elastic-transcoder-watermarking-bit-frame-rate-control.html LINK!

Recent AWS Customer Success Stories & Videos

More AWS Customer Success Stories...

« Resource-Level Permissions for EC2 and RDS Resources | Main | EC2 Dedicated Instance Price Reduction »

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Mrjefftoyou

Hi, thanks so much for the announcement. I am looking to leverage these watermark features via Powershell. I see that AWS Powershell now has the -Output_Watermarks option for the New-ETSJob command. However, I was told by AWS support that you cannot register a watermark via the New-ETSJob command. Assuming I have the watermark image in an S3 bucket named 'files', is it possible to create a new ETS job via powershell that allows me to overlay the watermark? Using the AWS console (per your screenshots above), I am able to create a new job that specifies the watermark filename, opacity, location, etc. However, I'd like to also do this via Powershell. Thanks in advance!

Chris H

@Mrjefftoyou

Using the latest AWS Powershell release, I was able to generate a successful Elastic Transcoder job featuring watermarks. Here's the code I used. Note that you will have to substitute your own values for WATERMARK_IMAGE_FILENAME, PIPELINE_ID, and INPUT_VIDEO_FILENAME:


$watermarks = @()
$watermark = new-object Amazon.ElasticTranscoder.Model.JobWatermark
$watermark.InputKey = 'WATERMARK_IMAGE_FILENAME'
$watermark.PresetWatermarkId = 'TopLeft'
$watermarks += $watermark

$outputs = @()
$output = new-object Amazon.ElasticTranscoder.Model.CreateJobOutput
$output.PresetId = '1351620000001-000001'
$output.Rotate = '0'
$output.Key = 'test.mp4'
$output.ThumbnailPattern = ''
$output.Watermarks = $watermarks
$outputs += $output

New-ETSJob -Region us-east-1 -PipelineId PIPELINE_ID -Input_Container auto -Input_Key INPUT_VIDEO_FILENAME -Input_FrameRate auto -Input_Resolution auto -Input_Interlaced auto -Input_AspectRatio auto -Outputs $outputs

Also, for further reference, here's how you can accomplish the same thing using the AWS CLI:

aws elastictranscoder create-job \
--pipeline-id PIPELINE_ID \
--input '{"container": "auto", "key": "INPUT_VIDEO_FILENAME", "frame_rate": "auto", "aspect_ratio": "auto", "resolution": "auto", "interlaced": "auto"}' \
--job-output '{"1351620000001-000001", "rotate": "0", "thumbnail_pattern": "", "key": "test.mp4", "watermarks": [{"InputKey": "WATERMARK_IMAGE_FILENAME", "PresetWatermarkId": "TopLeft"}]}'

Chris H

Note that if you're using the Windows Command Prompt for the CLI version of the command I posted above, you'll need to escape the double-quotes inside the JSON strings and also to use double-quotes to enclose the strings. For example:

--input "{\"container\": \"auto\", ...

The comments to this entry are closed.

Featured Events

The AWS Report


Brought to You By

Jeff Barr (@jeffbarr):



Jinesh Varia (@jinman):


Email Subscription

Enter your email address:

Delivered by FeedBurner

April 2014

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30