When uploading a video, In the Cookbook, it says “NOTE: The File API samples the video at 1 frame per second (FPS). This sampling rate may be subject to change to provide the best inference quality.”
How to increase this rate, e.g., 5 frames per second?
The Video cookbook is brand new, and shows the newer, more convenient API. Up to last week, you had to split the video into individual frames, separate out the audio track, and then feed the model all the parts (in sequence) when using AI Studio. People tended to use ffmpeg to make frame collections out of a video clip. That allows you to specify how many frames you want per second.
So, if nobody comes up with a better idea, using the ‘old’ method to handle video will achieve what you want.
The ‘old’ Video cookbook is visible through the GitHub repository
Thank you! I’m okay using the “old” method. Can I also use the “old” model? Do you know if we can access the version before the major update this week? The “old” model gave me much better performance in my task.