movie compressor using FFMpeg
After deployment to GoogleCloud Function
- make sure your credential key is set.
gcloud auth print-identity-token
- 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)"
- 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)"