Skip to content
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

Add --seconds parameter to specify video duration #9

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

igolaizola
Copy link
Owner

@igolaizola igolaizola commented Oct 16, 2024

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.

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).
@igolaizola igolaizola merged commit 103ae28 into main Oct 16, 2024
1 check passed
@igolaizola igolaizola deleted the add-seconds-parameter branch October 16, 2024 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

set time in seconds.
1 participant