来自规范配置的 WebM Spritesheet/Transcode 无法完成并显示错误消息:请求字段 config.editList[0].startTimeOffset 为 0s,预期开始时间小于此原子的所有输入的最短持续时间 (0s)。
使用的配置来自https://cloud.google.com/transcoder/docs/how-to/generate-spritesheet#generate_image_periodically
项目编号:PROJECT-NUMBER
作业 ID:projects/PROJECT-NUMBER/locations/us-central1/jobs/JOB-ID
地点:us-central1
作业配置
{
"name": "projects/PROJECT-NUMBER/locations/us-central1/jobs/JOB-ID",
"config": {
"inputs": [
{
"key": "input0",
"uri": "gs://input_video.webm"
}
],
"editList": [
{
"key": "atom0",
"inputs": [
"input0"
],
"startTimeOffset": "0s"
}
],
"elementaryStreams": [
{
"videoStream": {
"codec": "h264",
"profile": "high",
"preset": "veryfast",
"heightPixels": 360,
"widthPixels": 640,
"pixelFormat": "yuv420p",
"bitrateBps": 550000,
"rateControlMode": "vbr",
"crfLevel": 21,
"vbvSizeBits": 550000,
"vbvFullnessBits": 495000,
"gopDuration": "3s",
"entropyCoder": "cabac",
"frameRate": 60
},
"key": "video-stream0"
},
{
"audioStream": {
"codec": "aac",
"bitrateBps": 64000,
"channelCount": 2,
"channelLayout": [
"fl",
"fr"
],
"sampleRateHertz": 48000
},
"key": "audio-stream0"
}
],
"muxStreams": [
{
"key": "sd",
"fileName": "sd.mp4",
"container": "mp4",
"elementaryStreams": [
"video-stream0",
"audio-stream0"
]
}
],
"output": {
"uri": "gs://output/"
},
"spriteSheets": [
{
"format": "jpeg",
"filePrefix": "small-sprite-sheet",
"spriteWidthPixels": 64,
"spriteHeightPixels": 32,
"startTimeOffset": "0s",
"interval": "7s",
"quality": 100
},
{
"format": "jpeg",
"filePrefix": "large-sprite-sheet",
"spriteWidthPixels": 128,
"spriteHeightPixels": 72,
"startTimeOffset": "0s",
"interval": "7s",
"quality": 100
}
]
},
"state": "FAILED",
"failureReason": "Job validation failed: Request field config.editList[0].startTimeOffset is 0s, expected start time less than the minimum duration of all inputs for this atom (0s).",
"ttlAfterCompletionDays": 30
}