cmcd-toolkit is a set of basic tools to collect and analyze data sent by video with CMCD v2 support.
This repository provides tools to collect and analize CMCD v2 locally and in different cloud providers.
Assuming you already have a Google Cloud account, the high-level steps to deploy are:
- Create a CMCD BigTable using schema found in the
gcloud-big-table
folder - Create a Pub/Sub topic and a suscription to the CMCD BigTable
- Create a Cloud Run Function with the code found in
index.js
fromcollector-gcloud-function
. This will give you a{public url}
for the collector. - Configure in the palyer found in the
palyer
folder the following urls:- For response mode:
{public url}/cmcd/response-mode
- For event mode:
{public url}/cmcd/event-mode
- For response mode:
- (Optional) Create a bucket in Cloud Storage with public access and deploy the palyer for testing the system.
- (Optional) Create a bucket in Cloud Storage and suscribe to the Pub/Sub CMCD topic for long term CMCD storage.
- (Optinal) Connect a Grafana instance using the BigQuery plugin. Find a Grafana config example in the
grafana
folder.
Notice: This is work in progres.
- Run
docker compose up
Player will be available at: http://localhost:8080 Colloctor will run at: http://localhost:3000
Copy docker-comose.develop.yml
to docker-compose.override.yml
and then run docker compose up
. You will be able to modify the code while running the project
This project is licensed under the Apache 2.0 License. See the LICENSE
file for more details.