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

Video plugin conveniences #109

Open
talmo opened this issue Aug 14, 2024 · 0 comments
Open

Video plugin conveniences #109

talmo opened this issue Aug 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@talmo
Copy link
Contributor

talmo commented Aug 14, 2024

There are a lot of differences between OpenCV, FFMPEG and av backends on different platforms and environments. It'd be great to have more convenient control over these and how they're handled in Video and VideoBackends.

API:

  • sio.set_default_video_plugin(): Global preference to specify default video plugin for all subsequently loaded videos.
  • Labels.set_video_plugin(): Reopen all media videos with the specified plugin.
  • Video.set_video_plugin(): Set the specified plugin and reopen the video.
  • Video.open(..., plugin=...): Add plugin kwarg to existing open function.

It would also be nice to add the media video plugin names to Video and sio.load_video docstrings. It would be nicer if they were a bit more flexible to accept aliases (e.g., "cv", "cv2", "opencv", "ocv", case-insensitivity, etc.).

@talmo talmo added the enhancement New feature or request label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant