【问题标题】:AWS Elastic Transcoder Endpoint cannot be resolvedAWS Elastic Transcoder Endpoint 无法解析
【发布时间】:2014-10-17 17:27:39
【问题描述】:

我正在处理一个需要通过使用 AWS Elastic Transcoder 对视频进行转码和提取缩略图的项目。我已尽我所能遵循 api,并且拥有在我看来正确的代码。但是,我仍然收到 NameResolutionFailure 抛出的错误和内部异常说 The remote name could not be resolved: 'elastictranscoder.us-west-2.amazonaws.com'My 代码是:

        var transcoder = 
                      new AmazonElasticTranscoderClient(Constants.AmazonS3AccessKey, 
                                Constants.AmazonS3SecretKey, RegionEndpoint.USWest2);
        var ji = new JobInput
        {
            AspectRatio = "auto",
            Container = "mov",
            FrameRate = "auto",
            Interlaced = "auto",
            Resolution = "auto",
            Key = filename
        };

        var output = new CreateJobOutput
        {
            ThumbnailPattern = filename + "_{count}",
            Rotate = "auto",
            PresetId = "1351620000001-000010",
            Key = filename + "_enc.mp4"
        };

        var createJob = new CreateJobRequest
        {
            Input = ji,
            Output = output,
            PipelineId = "1413517673900-39qstm"
        };

        transcoder.CreateJob(createJob);

我在俄勒冈州配置了我的 s3 存储桶,并添加了公开文件的策略。

【问题讨论】:

  • 代码看起来正确,与我的工作版本几乎相同。虽然这是一个很长的镜头,但我会尝试不同的地区。我正在使用 USEast1。如果这不起作用,请确保您可以 ping 远程名称。
  • 我在 USEast1 区域创建了新的存储桶和管道,显然上传到 s3 存储桶也不起作用,同样的例外。我尝试 ping 远程名称 lectioinput.s3.amazonaws.com 并且请求超时。

标签: c# amazon-web-services amazon-s3 amazon-elastic-transcoder


【解决方案1】:

显然我的虚拟机没有连接到互联网,这就是nameresolutionfailure 被抛出的原因。现在一切都很好。

【讨论】:

    猜你喜欢
    • 2014-04-14
    • 2016-03-06
    • 2014-06-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多