-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --seconds parameter to specify video duration
Fixes #8 Add the option to specify the `--seconds` parameter for `img2video`. * **pkg/cli/cli.go** - Add a `--seconds` parameter to the `generate` command. - Add a `--seconds` parameter to the `extend` command. * **pkg/cmd/generate/generate.go** - Add a `Seconds` field to the `Config` struct. - Parse the `--seconds` parameter and set the `Seconds` field in the `Run` function. * **pkg/cmd/extend/extend.go** - Add a `Seconds` field to the `Config` struct. - Parse the `--seconds` parameter and set the `Seconds` field in the `Run` function. * **pkg/runway/runway.go** - Use the `Seconds` field from the `GenerateRequest` struct in the `createGen2TaskRequest` and `createGen3TaskRequest` structures. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/igolaizola/vidai/issues/8?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
6aa19ea
commit 103ae28
Showing
4 changed files
with
10 additions
and
2 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