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 ffmpeg_video_input_clip #1810

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

daniel-riehm
Copy link
Collaborator

This PR adds the ffmpeg_video_input_clip class, which is a wrapper around a regular ffmpeg_video_input that takes in a frame range in its config, and attempts to behave exactly as if the input video consisted only of that frame range. There is also an option to automatically seek back to the most recent keyframe, to avoid the first few frames being undecodable when copying the raw video stream. Accomplishing this required some significant work to be done on the seeking logic of ffmpeg_video_input.

@daniel-riehm daniel-riehm force-pushed the dev/ffmpeg-clip branch 2 times, most recently from de58bed to 2bd93f0 Compare December 5, 2023 15:40
arrows/ffmpeg/ffmpeg_video_input.h Outdated Show resolved Hide resolved
@daniel-riehm daniel-riehm merged commit 8263ccc into Kitware:master Dec 18, 2023
5 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.

3 participants