googleapis / nodejs-video-transcoder

This repository is deprecated. All of its content and history has been moved to googleapis/google-cloud-node.
Apache License 2.0
14 stars 2 forks source link

Client returning `Internal error encountered` #65

Closed deep-randhawa closed 3 years ago

deep-randhawa commented 3 years ago

Steps to reproduce

  1. Create a job with the following config object:
    {
    parent: "projects/xxx/locations/us-central1",
    job: {
        inputUri: gs://xxx.appspot.com/kejMkh7oYwbbQGTYnZUNZ6QA8Vou/original.mov,
        outputUri: gs://xxx.appspot.com/kejMkh7oYwbbQGTYnZUNZ6QA8Vou/,
        config: {
            elementaryStreams: [
                {
                    key: video-stream0,
                    videoStream: {
                        codec: h265,
                        heightPixels: 1080,
                        widthPixels: 1920,
                        bitrateBps: 7651584,
                        frameRate: 30
                    }
                },
                {
                    key: audio-stream0,
                    audioStream: {
                        codec: aac,
                        bitrateBps: 96000,
                        channelCount: 1,
                        sampleRateHertz: 44100
                    }
                }
            ],
            muxStreams: [
                {
                    key: sd,
                    container: mp4,
                    elementaryStreams: [
                        video-stream0,
                        audio-stream0
                    ]
                }
            ],
            spriteSheets: [
                {
                    filePrefix: small-sprite-sheet,
                    spriteHeightPixels: 32,
                    spriteWidthPixels: 64,
                    totalCount: 5
                },
                {
                    filePrefix: large-sprite-sheet,
                    spriteHeightPixels: 72,
                    spriteWidthPixels: 128,
                    totalCount: 5
                }
            ]
        }
    }
    }

Received the following error from client:

13 INTERNAL: Internal error encountered.

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

sofisl commented 3 years ago

I'm curious if the issue is something simple. Would you mind replacing the parent field with this:

      parent: transcoderServiceClient.locationPath(projectId, location)

And generally comparing against this sample.

If it doesn't work, I'll attempt to reproduce the issue more completely.

deep-randhawa commented 3 years ago

hi @sofisl , thanks for replying. Actually in code the parent line is exactly what you recommended. I just pasted to resolved JSON payload here.

Please let me know if there is any other information I can provide to make it easier for you to debug. For reference, this is the asset I was testing with.

https://user-images.githubusercontent.com/5448275/119421025-967e6b00-bcb2-11eb-8d03-74b4593feaa5.mov

sofisl commented 3 years ago

Hi @deep-randhawa, thanks so much for the video! It helped with the debugging.

I think this seems to be an issue at the bit level. The bitrateBps field seems to only take numbers divisible by 10, i.e., 7651590 or 7651580. Can you give that a try and see if it works for you?

deep-randhawa commented 3 years ago

@sofisl that totally worked. Thank YOU :)