Hi @prestonmcafee,
Welcome to Google Cloud Community!
It appears that you’re experiencing issues with the Google Cloud Video Intelligence API when processing videos of longer duration. The error message “google.api_core.exceptions.RetryError: Timeout of 600.0s exceeded, last exception: 504 Deadline Exceeded” indicates that the processing time for these videos is exceeding the allocated timeout limit, or that the server is unable to complete the operation within the expected timeframe.
Here are workarounds that might help you resolve the error:
- Split Video into Segments - Try to split your 25-minute video into smaller segments. Process each segment individually, then combine the results. This approach allows the API to handle each segment within its time limits.
- Simplify Content - If possible, remove unnecessary content like long pauses or irrelevant scenes. This can significantly reduce the processing load.
- Check API Call Limits and Timeout - It’s possible that Google Cloud Video Intelligence API has an internal processing time limit for certain types of analysis, even if you’ve increased the timeout.
For more information about Cloud Video Intelligence API (LABEL_DETECTION), you can read this documentation.
If the issue persists, I suggest contacting Google Cloud Support as they can provide more insights to see if the behavior you’ve encountered is a known issue or specific to your project.
I hope the above information is helpful.