I created a GCP project to play around with the video-intelligence API. I enabled the API on my project and launched a Cloud Shell.
I then copied the code from githu
Create a service account and have your application use it for API access, run:
$ gcloud iam service-accounts create my-account
$ gcloud iam service-accounts keys create key.json
--iam-account=my-account@my-project.iam.gserviceaccount.com
$ export GOOGLE_APPLICATION_CREDENTIALS=key.json
In the second command replace my-project
with your Project ID.