Assigned
Status Update
Comments
pu...@google.com <pu...@google.com>
ja...@google.com <ja...@google.com> #2
Hello,
Thank you for reaching out to us with your request.
We have duly noted your feedback and will thoroughly validate it. While we cannot provide an estimated time of implementation or guarantee the fulfillment of the issue, please be assured that your input is highly valued. Your feedback enables us to enhance our products and services.
We appreciate your continued trust and support in improving our Google Cloud Platform products. In case you want to report a new issue, please do not hesitate to create a new issue on the
Once again, we sincerely appreciate your valuable feedback; Thank you for your understanding and collaboration.
Description
The job is triggered in gc functions onObjectFinalized when/after uploading a mp4/mov video file:
exports.transcodeVideoFile = onObjectFinalized({cpu: 2, region: 'europe-west1'}, async (event) => {...}
const {TranscoderServiceClient} = require('@google-cloud/video-transcoder').v1;
const transcoderServiceClient = new TranscoderServiceClient();
const jobconfig = createJobConfig( subfoldername, inputUri, outputUri, projectId, topic);
const jobname = await createJobFromConfig(projectId, location, inputUri, outputUri, jobconfig, preset);
async function createJobFromConfig(projectId, location, inputUri, outputUri, jobconfig, preset) {
const request = {
parent: transcoderServiceClient.locationPath(projectId, location),
job: {
inputUri: inputUri,
outputUri: outputUri,
config: jobconfig
}
};
// Run request
const [response] = await transcoderServiceClient.createJob(request);
return
}