Skip to content

feat(streamio-ffmpeg): Add types for v3.0 - #1083

Merged
github-actions[bot] merged 1 commit into
ruby:mainfrom
ksss:streamio-ffmpeg
Oct 10, 2026
Merged

github-actions[bot] merged 1 commit into
ruby:mainfrom
ksss:streamio-ffmpeg

Conversation

@ksss

@ksss ksss commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Add RBS for the basic API of streamio-ffmpeg 3.0.

  • FFMPEG module functions (logger, ffmpeg_binary, ffprobe_binary, max_http_redirect_attempts, which)
  • FFMPEG::Error / FFMPEG::HTTPTooManyRequests
  • FFMPEG::Movie (metadata readers, transcode, screenshot)
  • FFMPEG::Transcoder
  • FFMPEG::EncodingOptions (minimal, since it appears in argument types)

Types follow the implementation rather than the README where they differ, e.g. Movie#duration is Float | Integer (it is 0 when ffprobe reports an error) and Transcoder.timeout defaults to nil.

Tests are based on the examples in the README.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

@ksss Thanks for your contribution!

Please follow the instructions below for each change.
See also: https://github.com/ruby/gem_rbs_collection/blob/main/docs/CONTRIBUTING.md

Available commands

You can use the following commands by commenting on this PR.

  • /merge: Merge this PR if CI passes

streamio-ffmpeg

This RBS files are newly added.

You can merge this PR immediately if the CI passes.
Just comment /merge to merge this PR.

@ksss

ksss commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator Author

/merge

@github-actions
github-actions Bot merged commit c69c75b into ruby:main Oct 10, 2026
6 checks passed
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.

1 participant