You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add deprecation warnings for legacy framerate aliases (#563)
Closes#548
## Summary
* Emit `DeprecationWarning` for deprecated `framerate` aliases across
`FrameTimecode`, `open_video()`, video backends, and the CLI.
* Preserve existing compatibility behavior, including `frame_rate`
taking precedence when both forms are provided.
* Add/update tests for the deprecated aliases, including
`VideoCaptureAdapter`.
* Update `get_framerate()` to direct users to `frame_rate` without
emitting duplicate warnings.
## Testing
* Added warning assertions for deprecated aliases.
* Verified canonical `frame_rate` usage remains warning-free.
* Verified legacy aliases continue to work while emitting
`DeprecationWarning`.
It is mostly reliable and fast, although can occasionally run into issues processing videos with multiple audio tracks or small amounts of frame corruption. You can use a custom version of the ``cv2`` package, or install either the `opencv-python` or `opencv-python-headless` packages from `pip`.
21
21
22
-
The OpenCV backend also supports image sequences as inputs (e.g. ``frame%02d.jpg`` if you want to load frame001.jpg, frame002.jpg, frame003.jpg...). Make sure to specify the framerate manually (``-f``/``--framerate``) to ensure accurate timing calculations.
22
+
The OpenCV backend also supports image sequences as inputs (e.g. ``frame%02d.jpg`` if you want to load frame001.jpg, frame002.jpg, frame003.jpg...). Make sure to specify the framerate manually (``-f``/``--frame-rate``) to ensure accurate timing calculations.
23
23
24
24
Variable framerate (VFR) video is supported. Scene detection uses PTS-derived timestamps from ``CAP_PROP_POS_MSEC`` for accurate timecodes. Seeking compensates for OpenCV's average-fps-based internal seek approximation, so output timecodes remain accurate across the full video.
0 commit comments