2

I'm trying to add a watermark to all my videos being processed through Amazon elastic transcoder but I can't get it to working.

I created the preset with one watermark set(BottomRight) as in docs.

Here's my PHP source

$output = array(
  'Key' => $folderNameOut,
  'PresetId' => '139450346',
  'ThumbnailPattern' => 'thumbs/filename-{count}',
  'Watermarks' => array(
  'InputKey' => 'watermark/watermark.png',
  'PresetWatermarkId' => 'BottomRight'
 ));

I tried putting the watermark image in both thumbs and video buckets, even HTTP URL but doesn't work.

Can someone help me with this?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Naveen Gamage
  • 1,844
  • 12
  • 32
  • 51
  • added the settings in BOTH presets and in jobs –  Mar 11 '14 at 02:44
  • I did, I created a preset with a watermark set and in jobs as above sample code shows. :/ where am I doing wrong? – Naveen Gamage Mar 11 '14 at 02:47
  • I have same problem... can you give me the exact syntax – Upendra Dec 31 '14 at 06:08
  • Although I am using django, python but It would help for anyone going through this kind of issue. I recently published a post http://aameer.github.io/articles/aws-elastic-encoder/ which enables adding watermarks, I convert the text to image and then use that as watermark – Aameer Sep 18 '15 at 10:53

1 Answers1

0

There is a missing array inside the watermarks array

$output = array(
 'Key' => $folderNameOut,
 'PresetId' => '139450346',
 'ThumbnailPattern' => 'thumbs/filename-{count}',
 'Watermarks' => array(
  array(
   'InputKey' => 'watermark/watermark.png',
   'PresetWatermarkId' => 'BottomRight'
   )
));
Khaled Hasania
  • 335
  • 6
  • 14