Skip to content

Add --frames-between CLI parameter to configure frame extraction frequency#56

Merged
egorsmkv merged 2 commits into
masterfrom
copilot/add-change-frames-const-cli
Dec 26, 2025
Merged

Add --frames-between CLI parameter to configure frame extraction frequency#56
egorsmkv merged 2 commits into
masterfrom
copilot/add-change-frames-const-cli

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 26, 2025

The frame extraction frequency was hardcoded as const FRAMES_BETWEEN_EXTRACTED: usize = 30. This adds a CLI parameter to make it configurable.

Changes

  • Added --frames-between CLI argument (default: 30) to Args struct
  • Updated decode_frames_dropping() signature to accept frames_between_extracted: usize parameter
  • Removed unused constant FRAMES_BETWEEN_EXTRACTED

Usage

# Extract 1 frame per second (30fps video, default behavior)
cargo run -- --file video.mp4

# Extract 2 frames per second
cargo run -- --file video.mp4 --frames-between 15

# Extract 1 frame every 2 seconds
cargo run -- --file video.mp4 --frames-between 60

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https target/debug/dep--64 )) target/debug/dep/tmp/ffconf.Vz7EkgnV/test.o targ�� target/debug/deps/clap_derive-96_XOPEN_SOURCE=600 target/debug/deps/clap_derive-96-D known-linux-gnu/bin/rustc target/debug/depas target/debug/dep-W target/debug/dep--64 known-linux-gnu/-o targ�� target/debug/dep/tmp/ccVAYD0K.s target/debug/deps/clap_derive-9613d7cca2c4cfe7.clap_derive.2622d56524668ef7-cgu.14.rcgu.o -1949cf8c6b5b557f/icu_normalizer_data-2.0.0/src/lib.rs /extract-frames/cat -incompat /extract-frames/target/debug/deps/tracing_attrib--64 /extract-frames/target/debug/deps/tracing_attrib-o (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Add ability to change const FRAMES_BETWEEN_EXTRACTED: usize = 30; in CLI</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…uency

Co-authored-by: egorsmkv <7875085+egorsmkv@users.noreply.github.com>
Copilot AI changed the title [WIP] Add ability to change frames between extracted in CLI Add --frames-between CLI parameter to configure frame extraction frequency Dec 26, 2025
Copilot AI requested a review from egorsmkv December 26, 2025 18:05
@egorsmkv egorsmkv marked this pull request as ready for review December 26, 2025 18:10
@egorsmkv egorsmkv merged commit d70e306 into master Dec 26, 2025
@egorsmkv egorsmkv deleted the copilot/add-change-frames-const-cli branch December 26, 2025 18:10
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.

Add ability to change const FRAMES_BETWEEN_EXTRACTED: usize = 30; in CLI

2 participants