【问题标题】:Transcoder fails to write output due to permission issue由于权限问题,转码器无法写入输出
【发布时间】:2021-10-24 03:00:12
【问题描述】:

转码作业能够读取文件,但未创建输出目录。

我检查了日志,错误是由于存储的权限问题。我想就这个问题获得您的帮助。

日志:

视频转码的响应如下。

 {
  "name": "projects/PROJECT-NUMBER/locations/us-central1/jobs/JOB-ID",
  "config": {
    "inputs": [
      {
        "key": "input0",
        "uri": "gs://input.mp4"
      }
    ],
    "editList": [
      {
        "key": "atom0",
        "inputs": [
          "input0"
        ],
        "startTimeOffset": "0s"
      }
    ],
    "elementaryStreams": [
      {
        "videoStream": {
          "codec": "h264",
          "profile": "high",
          "preset": "veryfast",
          "heightPixels": 720,
          "widthPixels": 1280,
          "pixelFormat": "yuv420p",
          "bitrateBps": 1500000,
          "rateControlMode": "vbr",
          "crfLevel": 21,
          "vbvSizeBits": 1500000,
          "vbvFullnessBits": 1350000,
          "gopDuration": "3s",
          "entropyCoder": "cabac",
          "frameRate": 60
        },
        "key": "video-streamR480P"
      },
      {
        "videoStream": {
          "codec": "h264",
          "profile": "high",
          "preset": "veryfast",
          "heightPixels": 1080,
          "widthPixels": 1920,
          "pixelFormat": "yuv420p",
          "bitrateBps": 3000000,
          "rateControlMode": "vbr",
          "crfLevel": 21,
          "vbvSizeBits": 3000000,
          "vbvFullnessBits": 2700000,
          "gopDuration": "3s",
          "entropyCoder": "cabac",
          "frameRate": 60
        },
        "key": "video-streamR720P"
      },
      {
        "videoStream": {
          "codec": "h264",
          "profile": "high",
          "preset": "veryfast",
          "heightPixels": 1440,
          "widthPixels": 2560,
          "pixelFormat": "yuv420p",
          "bitrateBps": 6000000,
          "rateControlMode": "vbr",
          "crfLevel": 21,
          "vbvSizeBits": 6000000,
          "vbvFullnessBits": 5400000,
          "gopDuration": "3s",
          "entropyCoder": "cabac",
          "frameRate": 60
        },
        "key": "video-streamR1080P"
      },
      {
        "videoStream": {
          "codec": "h264",
          "profile": "high",
          "preset": "veryfast",
          "heightPixels": 2160,
          "widthPixels": 3840,
          "pixelFormat": "yuv420p",
          "bitrateBps": 10000000,
          "rateControlMode": "vbr",
          "crfLevel": 21,
          "vbvSizeBits": 10000000,
          "vbvFullnessBits": 9000000,
          "gopDuration": "3s",
          "entropyCoder": "cabac",
          "frameRate": 60
        },
        "key": "video-streamR1440P"
      },
      {
        "audioStream": {
          "codec": "aac",
          "bitrateBps": 512000,
          "channelCount": 2,
          "channelLayout": [
            "fl",
            "fr"
          ],
          "sampleRateHertz": 48000
        },
        "key": "audio-stream"
      }
    ],
    "muxStreams": [
      {
        "key": "mux-streamR480P",
        "fileName": "mux-streamR480P.m4s",
        "container": "fmp4",
        "elementaryStreams": [
          "video-streamR480P"
        ]
      },
      {
        "key": "mux-streamR720P",
        "fileName": "mux-streamR720P.m4s",
        "container": "fmp4",
        "elementaryStreams": [
          "video-streamR720P"
        ]
      },
      {
        "key": "mux-streamR1080P",
        "fileName": "mux-streamR1080P.m4s",
        "container": "fmp4",
        "elementaryStreams": [
          "video-streamR1080P"
        ]
      },
      {
        "key": "mux-streamR1440P",
        "fileName": "mux-streamR1440P.m4s",
        "container": "fmp4",
        "elementaryStreams": [
          "video-streamR1440P"
        ]
      },
      {
        "key": "mux-streamaudio-stream",
        "fileName": "mux-streamaudio-stream.m4s",
        "container": "fmp4",
        "elementaryStreams": [
          "audio-stream"
        ]
      }
    ],
    "manifests": [
      {
        "fileName": "manifest.mpd",
        "type": "DASH",
        "muxStreams": [
          "mux-streamR480P",
          "mux-streamR720P",
          "mux-streamR1080P",
          "mux-streamR1440P",
          "mux-streamaudio-stream"
        ]
      },
      {
        "fileName": "master.m3u8",
        "type": "HLS",
        "muxStreams": [
          "mux-streamR480P",
          "mux-streamR720P",
          "mux-streamR1080P",
          "mux-streamR1440P",
          "mux-streamaudio-stream"
        ]
      }
    ],
    "output": {
      "uri": "gs://output-bucket/"
    }
  },  "ttlAfterCompletionDays": 30
}

Job_ID 是 XXXXXXXXXXXXXXXXXXXXXXXX。 请帮忙。

【问题讨论】:

    标签: google-cloud-transcoder


    【解决方案1】:

    我检查了作业,发现失败信息:

    作业验证失败:atom atom0 没有任何带有音轨的输入 (input0)

    与存储权限无关。您能否使用包含音轨的输入修复编辑列表并重试?

    我认为您观察到的权限错误发生在客户端,与 Transcoder API 无关

    【讨论】:

      猜你喜欢
      • 2014-05-30
      • 2012-09-11
      • 2014-11-26
      • 2012-05-11
      • 2020-10-17
      • 1970-01-01
      • 1970-01-01
      • 2012-11-11
      • 2019-12-14
      相关资源
      最近更新 更多