New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Video (MP4) with Gemini Pro 1.5 #332
Comments
@schnee, Thank you reporting this issue. "500 An internal error has occurred" error looks like an intermittent error and should work now. |
@singhniraj08 Thank you. For being intermittent, it happens to me every time, including 2 minutes ago. Can you share the MP4 you used to validate that it works for you? I have ported over to the VertexAI Python SDK and am able to use it to process the same test case video. |
We only announced video support in the API+SDK today, it's probably wasn't active when you tried it. Try again? |
Thank you @MarkDaoust I updated to But you answered my base question: did the SDK support video, and the answer was no. This issue can be closed. And I'll research the below stack trace and possibly open another ticket.
|
Video works. Try the cookbook video tutorial: https://colab.research.google.com/github/google-gemini/cookbook/blob/main/quickstarts/Video.ipynb
That error is about the |
@MarkDaoust - I literally updated the packages and reran the code from the top. I'm good with someone (me?) closing this ticket, and I appreciate the pointers to make the code run. |
You can close it yourself if you resolved the issue. |
I encountered the error: Has anyone encountered the same?
|
Try printing the response object that you got back. |
I found out the reason. In my video which contains footage of creating a doll character, it started with creating body parts and clothes. So Google has determined that the video violates sexually. |
Description of the bug:
When processing video/mp4 mime-type assets, exception is thrown. Exception is not thrown when processing image/png (e.g.) assets.
Actual vs expected behavior:
actual behavior:
following exception is thrown:
expected behavior: gemini-pro-1.5-latest consumes the prompt and video file.
Any other information you'd like to share?
Note, over in
vertexai
land, the model is gemini-pro-1.5-preview-0409 and this does appear to process videos. I'm not sure if my issues is a model capability or not; that model does not appear to be available to this SDK.The video I'm using is quite short and small: < 10 seconds and ~384KB. It is also h.264 encoded, which appears to be acceptable by Gemini.
The text was updated successfully, but these errors were encountered: