-
Notifications
You must be signed in to change notification settings - Fork 65
Implement Video Reader #356
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a new VideoReader feature to enable video playback functionality after recording from a webcam. It also updates the example code, documentation, and the underlying stream module to support video reading and playback controls.
- Implements VideoReader with methods to start, grab, seek, set playback speed, and restart the video.
- Updates the example application and README to demonstrate recording and reading video.
- Adds pipeline accessors in the stream capture module to support new functionality.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
examples/video_read/src/main.rs | Adds video recording and subsequent playback using VideoReader. |
examples/video_read/README.md | Updates usage instructions (with a noted typo) for video reading. |
examples/video_read/Cargo.toml | Introduces necessary workspace dependencies for video reading. |
crates/kornia-io/src/stream/video.rs | Implements VideoReader along with several playback control methods. |
crates/kornia-io/src/stream/capture.rs | Adds getters for the pipeline used in the video stream capture. |
/// | ||
/// # Arguments | ||
/// | ||
/// * `path` - The path to save the video file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation for VideoReader::new incorrectly states that the path is used to save the video file; it should indicate that it is the path to the video file to be read.
/// * `path` - The path to save the video file. | |
/// * `path` - The path to the video file to be read. |
Copilot uses AI. Check for mistakes.
@AS1100K @edgarriba With all my respect and love, I think it is disrespectful for @AS1100K to work on the issue that I already made a pull request for, especially after he asked me if I am working on it, and I answered "yes, I am working on it." and I did finish it a week ago. Correct me if I am wrong, but I think it is against the rules set by the community here, or at least disrespectful. |
|
Fixes #257
Fixes #113
Example
I have created a simple video player example with egui
TODOs