Click here to Skip to main content
15,922,007 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to use Amazon Elastic Transcoder for an mvc project. I wanted to use it via http request as described by documentation. While creating header of request I need to create Authorization parameter as described which I think I did. But the response returns this error;
The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

Host parameter of request is = elastictranscoder.us-east-1.amazonaws.com:443

URl for post is = https://elastictranscoder.us-east-1.amazonaws.com:443/2012-09-25/jobs

Authorization parameter is something like = AWS4-HMAC-SHA256 Credential=accesskey/formatteddate/us-east-1/elastictranscoder/aws4_request,SignedHeaders=host;x-amz-date;x-amz-target,Signature=xxxxx

Anyone have an idea of the reason for this error?
Posted
Comments
[no name] 27-Jul-15 8:57am    
https://developer.amazon.com/appsandservices
Kornfeld Eliyahu Peter 27-Jul-15 9:07am    
Come-on! That's a lot to read...Plz do me the reading... :-)
kubibay 27-Jul-15 9:17am    
I want to transcode any video format to mp4 format via Amazon Elastic Transcoder for an MVC project, how your link will help me to do that? @g.pickardou
[no name] 27-Jul-15 10:13am    
It won't. If you had bothered to visit the link, you would have found a place to ask the Amazon API developers your question. They know about their code and they are the ones to ask.
kubibay 28-Jul-15 2:10am    
No, it didn't bother me. I just wanted to learn where the solution is.
Since it is also an mvc project I thought maybe someone also encountered same problem. Thanks for guiding me , I believe it will be more helpful to me.

1 solution

I have updated AWSSDK from nuget for mvc project and there was an api for elastic transcoder; here is the simple way to do:

C#
var response = etsClient.CreateJob(new CreateJobRequest()
           {
               PipelineId = "pipelineid", //pipeline.Id,
               Input = new JobInput()
               {
                   AspectRatio = "auto",
                   Container = "auto",
                   FrameRate = "auto",
                   Interlaced = "auto",
                   Resolution = "auto",
                   Key = "folder1/video.flv"
               },
               Output = new CreateJobOutput()
               {
                   ThumbnailPattern = "",
                   Rotate = "0",
                   PresetId = "1351620000001-000040",
                   Key = "output.mp4"
               }
           });
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900