All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.9.1 - 2022-02-23
- macOS: Python 3.10 wheel was incorrectly named (universal2 instead of x86_64)
0.9.0 - 2021-12-12
- Python 3.10 support.
- Drop Python 3.6 support.
- Linux: Close opened devices if
device
is not given (#59)
0.8.0 - 2021-04-19
- Windows: Unity Capture virtual camera with RGBA support (#56).
gif_rgba.py
sample for showing transparent GIFs in RGBA format.
delay
argument ofCamera
has been removed (deprecated since 0.4.0).
0.7.0 - 2021-03-26
- API documentation.
pyvirtualcam.register_backend()
for registering custom backends.latency.py
sample for visually evaluating latency.--filter
flag inwebcam_filter.py
sample for choosing a filter (shake
ornone
).
0.6.0 - 2021-03-22
- Support for device selection on Linux:
Camera(..., device="/dev/video0")
. On Windows/macOS there is only a single valid device"OBS Virtual Camera"
when using the built-in backends. - Support for common pixel formats: RGB (default), BGR (useful for OpenCV), GRAY, I420, NV12, YUYV, UYVY.
- New properties
Camera.fmt
(input format) andCamera.native_fmt
(native format).
- RGBA support has been removed. Use RGB instead.
0.5.0 - 2021-03-13
- Linux: multiple camera support (#37).
- If
print_fps=True
andCamera.sleep_until_next_frame()
is used, the percentage of time spent in computation is printed in addition to fps.
- macOS/Windows: raise error if OBS virtual camera is not installed.
- macOS: camera was not correctly cleaned up after use (#39).
- macOS: an error is now raised if the camera is already in use outside of the current process (#39).
0.4.0 - 2021-03-07
- macOS support via OBS Virtual Camera (built-in) (#16).
- Linux support via v4l2loopback (#29).
- RGB frame support (in addition to RGBA).
Camera.device
property containing the name of the virtual camera device.- New sample: send video frames to virtual camera (#9).
- Windows support relies on OBS Virtual Camera (built-in) now. Support for OBS-VirtualCam has been removed (#25).
- RGBA frame format. Use RGB instead.
delay
argument ofCamera
is deprecated and has no effect.
- Sending a frame with incorrect width or height now raises an exception instead of crashing (#17).
0.3.2 - 2021-01-27
- PEP8.
- Prevent adaptive sleep from overshooting (#1).
- Return type annotation of
Camera.fps
was incorrect.
0.3.1 - 2021-01-27
- Fixed resource cleanup issue preventing
Camera
to be used more than once (#5).
0.3.0 - 2021-01-23
- Python 3.9 support.
0.2.0 - 2020-05-30
- FPS counter.
- Adaptive sleep using
Camera.sleep_until_next_frame()
. - Minimal example.
- API re-design.
- Drop Python 3.5 support.
- Add missing numpy dependency.
0.1.0 - 2020-05-29
- First release.
- Windows only, Python 3.5 - 3.8.
- Support for OBS-VirtualCam.