movie compressor using FFMpeg

Google cloud function

cloud-function-image

After deployment to GoogleCloud Function

  1. make sure your credential key is set.
gcloud auth print-identity-token
  1. try API call with itr and offset queries.
curl -X GET https://compvideo-2kpkrvrjda-uc.a.run.app\?itr\=1\&offset\=0 \
-H "Authorization: Bearer $(gcloud auth print-identity-token)"
  1. sequential API call with seq and xargs shell script.
seq 0 10 100|xargs -n 1 -P 50 -I {} \
curl -X GET https://compvideo-2kpkrvrjda-uc.a.run.app\?itr\=10\&offset\=\{\} \
-H "Authorization: Bearer $(gcloud auth print-identity-token)"