-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement key frames logic for DG image assets
We now identify key frames via Gemini for all generated variants and extract those frames as additional Demand Gen image assets. The existing logic of extracting video thumbnails via ffmpeg (see https://ffmpeg.org/ffmpeg-filters.html#thumbnail) remains the same. This means that users may observe duplicate DG assets (as both thumbnails and Gemini may select the same frame), but that should not be a problem as users can freely select the image assets they want to use. This change also fixes an issue with `utils.py` where VideoMetadata could not be initialised properly for folders with more than 2 subdirectories. This has now been fixed, as the correct folder we need (root GCS folder) is always the penultimate element in the `.parents` list of the file path. Change-Id: I0383a34103c40578776fedaa591bb6e9593c4000
- Loading branch information
1 parent
29cf6ac
commit 4636639
Showing
4 changed files
with
170 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters