Skip to content

args: add --video-* CLI arguments#24318

Draft
ngxson wants to merge 3 commits into
masterfrom
xsn/video_args
Draft

args: add --video-* CLI arguments#24318
ngxson wants to merge 3 commits into
masterfrom
xsn/video_args

Conversation

@ngxson

@ngxson ngxson commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Overview

As discussed in #24269 , add these new arguments to CLI:

  • --video-fps
  • --video-timestamp-interval
  • --video-ffmpeg-dir

Also ran llama-gen-docs to sync the docs

Requirements

@ngxson
ngxson requested review from a team as code owners June 8, 2026 20:12
Comment thread tools/mtmd/mtmd-helper.h
Comment on lines +129 to +131
// note: setter is NOT thread-safe, should only be called on application startup
MTMD_API struct mtmd_helper_video_init_params mtmd_helper_video_get_default_params(void);
MTMD_API void mtmd_helper_video_set_default_params(struct mtmd_helper_video_init_params params);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it would be cleaner if we pass the video init params to the mtmd_helper_bitmap_init_from_buf function explicitly instead of having a global set of parameters.

@ngxson ngxson Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that would require changing quite a lot of code on llama-server, but on second thought, I think it may worth the effort

temporary changing this to draft now

@ngxson
ngxson marked this pull request as draft June 9, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants