Release Notes¶
v0.3.4 (2025-11-11)¶
New Features
- Type Hints:
- ⚡️ Added comprehensive type hints to function signatures and return types across all API modules for improved code readability and IDE support.
- Docker Guide:
- 📦 Added a comprehensive new guide,
docs/bonus/docker_example.md, detailing the challenges of containerizing VidGear, particularly around building OpenCV with correct GStreamer and FFmpeg support. - Provides three distinct approaches for Dockerization, complete with Dockerfile examples, dependency breakdowns, application configuration patterns, and troubleshooting sections.
- 📦 Added a comprehensive new guide,
- Sponsor Recognition:
- 🤝 Added prominent sponsor section in the
README.mdand a new dedicated "Our Sponsors" page (docs/sponsors.md) to highlight and thank supporters.
- 🤝 Added prominent sponsor section in the
Updates/Improvements
- Core:
- Migrated from deprecated
pkg_resourcestopackaginglibrary for version parsing to ensure compatibility with future Python versions. - Updated dependencies in
setup.pyfor better stability and performance. - Replaced
yt_dlpdependency withyt-dlp[default]to ensure all necessary features are installed. - Updated
install_opencv.shscript with more comprehensive build dependencies (codecs, GStreamer, GUI libs) and now buildsv4l2loopbackfrom source. - Removed
v4l2loopback-dkmsandv4l2loopback-utilsfrom theapt_dependenciesinci_linux.yml.
- Migrated from deprecated
- CI:
- Updated test configuration for
pytest-asyncioto align with latest testing practices by adding@pytest.mark.asyncio(scope="module")to async tests. - Upgraded all CI workflows (
ci_linux.yml,appveyor.yml,azure-pipelines.yml,deploy_docs.yml) to test against Python versions 3.10, 3.11, 3.12, and 3.13. - Upgraded GitHub Actions versions (e.g.,
actions/checkout@v3tov5,actions/setup-python@v4tov6,codecov/codecov-action@v3tov5). - Updated the Linux CI runner from
ubuntu-20.04toubuntu-22.04. - Migrated Codecov uploader from deprecated uploader to new
codecovCLI tool inazure-pipelines.yml.
- Updated test configuration for
- Docs:
- Restructured documentation and updated links for improved navigation and accuracy.
- Updated MkDocs configuration with
navigation.indexesandnavigation.prunefor cleaner URLs. - Renamed all
overview.mdfiles for each Gear toindex.mdto create cleaner URLs and navigation. - Added new
docs/gears/writegear/params.mdfile to centralize parameter definitions for WriteGear. - Renamed "Examples" pages in
docs/help/to "Bonus Examples". - Updated README.md tagline to use a dynamic
<picture>element supporting light/dark modes. - Added sponsors section with Ko-fi images and buttons.
- Updated BibTeX citation and Zenodo DOI.
- Removed custom Python hook (
docs/overrides/hooks/js_hook.py) and loaded required Clappr player JavaScript files directly inmkdocs.yml. - Added image titles and converted admonitions for better accessibility.
Breaking Updates/Changes
- Setup.py:
- Raised minimum Python version requirement from 3.8+ to 3.10+ to leverage modern Python features and ensure long-term support.
- VidGear no longer installs
opencv-pythonautomatically as a dependency when installed from source. Users must now manually install their preferred OpenCV binaries (e.g.,opencv-python,opencv-contrib-python) as a prerequisite.
- StreamGear:
- The
terminate()method is now formally deprecated and will be removed in a future release. Theclose()method should be used instead for safer process termination.
- The
Bug-fixes
- Various minor bug fixes and improvements across the codebase as part of the type hint additions and dependency updates.
- Fixed YAML syntax error in GitHub issue templates (
proposal.yamlandquestion.yaml) by changinglabelsfrom string to array format. - Updated
.gitignoreto replace the short project-specific list with the comprehensive standard Python.gitignoretemplate, covering build artifacts, virtualenvs, test outputs, tool caches, IDEs, and packaging metadata.
New Contributors
v0.3.3 (2024-06-22)¶
New Features
- PiGear:
- ⚡️ Official Support for Picamera2 API backend. (Fixes #342)
- This massive update brings official support for the new Picamera2 API, unlocking powerful features for Raspberry Pi Camera Modules and limited USB camera support.
- Seamless Python wrapper: A robust wrapper around Picamera2 API library simplifies integration with minimal code changes for existing PiGear users.
- Enhanced camera control: Leverages libcamera API under the hood for Raspberry Pi Camera Modules.
- Existing compatibility: Maintains compatibility with PiGear's existing super-charged multi-threaded and colorspace manipulation framework.
- Proper Resource management: Ensures proper resource release during PiGear termination.
- USB camera support (limited): Provides basic functionality for USB webcams. PiGear could accurately differentiates between USB and Raspberry Pi cameras using metadata.
- Backward compatibility: Seamlessly switches to the legacy Picamera library backend if Picamera2 is unavailable.
- Standalone functionalities: Standalone functionalities for both legacy
picameraand newerpicamera2backends for clarity. - Advanced optional parameters handling: Handles camera configurational parameters and user-defined settings for various camera types.
- New optional configurational parameters: Currently Supports
sensor,format,controls,transform,stride,buffer_count, andqueuewith sanity checks. - New user-defined optional parameters: Such as
auto_align_output_config,enable_verbose_logs, and more.
- New optional configurational parameters: Currently Supports
- ⚡️ Official Support for Picamera2 API backend. (Fixes #342)
- StreamGear:
- Introduced new
-enable_force_terminationattribute for immediate FFmpeg process termination.
- Introduced new
- Helper:
- Added support for SRTP/RTSPS in
is_valid_urlfunction (Fixes #410)- Enhanced
is_valid_urlinhelper.pyto recognize and support bothrtspandrtspsprotocols. (Suggested by @jonra1993) - SRTP/RTSPS extends RTSP/RTP to encrypt video and audio data using the same ciphers as HTTPS, typically AES with a 128-bit key length.
- Enhanced
- Added a custom deprecated decorator to mark deprecated functions and parameters to display a warning message when a deprecated one is used.
- Added support for SRTP/RTSPS in
- Docs:
- Overhauled mkdocs material theme:
- Added
unrecognized_links: ignoretomkdocs.ymlfor validations. - Added custom admonition icons.
- Added new
git-authorsplugin. - Added new tables markdown extension.
- Added custom fences to
pymdownx.superfencesmarkdown extension. - Added
line_spans: __spanandpygments_lang_class: trueparameters topymdownx.highlightmarkdown extension. - Added
normalize_issue_symbols: truetopymdownx.magiclinkmarkdown extension. - Added new mkdocs feature dependency
mkdocs-git-authors-plugin.
- Added
- Added the use of new
-enable_force_terminationparameter. - Added a new FAQ entry about the deprecated
rgb_modeparameter. - Added new
screengear_error11.pngasset.
- Overhauled mkdocs material theme:
- CI:
- Added test cases for
import_dependency_safefunction to validate different scenarios and error handling inimport_dependency_safe.
- Added test cases for
Updates/Improvements
- Core:
- Improved exception handling for module imports:
- Updated
import_dependency_safeinhelper.py:- Added specific handling for
ModuleNotFoundError. - Included original exception in
ImportErrorfor better error tracing. - Enhanced logging to include exception traceback when error is set to "log".
- Added specific handling for
- Enhanced
import_core_dependencyin__init__.py:- Added specific handling for
ModuleNotFoundError. - Included original exception in
ImportErrorfor better error tracing.
- Added specific handling for
- Updated
- Improved colorspace handling in videocapture gears:
- Logged a warning and discarded invalid colorspace values instead of raising an exception.
- Consolidated colorspace logging into a single line using a ternary operation.
- Improved exception handling for module imports:
- Asyncio:
- Replaced deprecated Starlette's
on_shutdownparameter with an async context managerlifespanin WebGear and WebGear_RTC APIs. (Fixes #397)- Moved shutdown logic for VideoGear and peer RTC connections to this new
lifespancontext manager. - Added new
contextlibimport for usingasynccontextmanager.
- Moved shutdown logic for VideoGear and peer RTC connections to this new
- Replaced deprecated Starlette's
- NetGear_Async API:
- Modified
__init__method to handle event loop more robustly:- Try to get the running event loop using
asyncio.get_running_loop() - If no running event loop found, create a new one with
asyncio.new_event_loop() - Log if creating a new event loop
- Try to get the running event loop using
- Changed launch method to use
self.loop.create_task()instead ofasyncio.ensure_future()- Ensures the task is created using the correct event loop instance.
- Moved the event loop initialization code to an earlier point before setting event loop policy to ensure it is set up correctly before selecting
WindowsSelectorEventLooppolicy.- On Windows, vidgear requires the
WindowsSelectorEventLoop, but Python 3.8 and above defaults to theProactorEventLoopwhich is not compatible.
- On Windows, vidgear requires the
- Removed redundant python version check to set
WindowsSelectorEventLooppolicy, as minimum supported version is already3.8. - Move event loop setup and policy assignment to the beginning of
__init__before zmq Context creation. - Refactored return data handling.
- Modified
- StreamGear:
- Updated
close()methods for handling gracefully signal interruptions based on different operating systems with device audio streams. - Deprecated
terminate()method, introducingclose()for safer process termination. - Enhanced stream copy support in Single Source mode (Fixes #396).
- Moved settings for "-vf" and "-aspect" inside conditional blocks.
- Added warnings and discarded these parameters in stream copy mode.
- Ignored stream copy parameter in Real-time Frames Mode or Custom Streams with appropriate warnings.
- Updated
-acodechandling:- Default to
aacfor Custom Streams. - Use stream copy (
-acodec copy) for input video’s audio when Custom Streams are disabled.
- Default to
- Refined
-livestreamparameter usage to Real-time Frames Mode only. - Adjusted video and audio bitrate assignment to skip when stream copy is enabled.
- Improved log message for
-clear_prev_assetsparameter.
- Restricted
-livestreamparameter to Real-time Frames Mode only.- Disabled live streaming for video files and updated relevant logging.
- Enhanced warning messages and clarified description.
- Updated
- PiGear:
- Logging optimization with warning for common
libcameramessages. - Lowered
framerateminimum value to0.0. - Moved
sensoroptional parameter to commonly supported picamera2 configurational parameters. - Removed unsupported
bit_depthoptional parameters. - Updated PiGear API tagline and introduction.
- Logging optimization with warning for common
- NetGear:
- Enhanced logging and error handling for secure mode.
- Logged Authenticator start/stop events.
- Handled socket session expiration more gracefully in
recv_handler. - Ensured proper termination of the ZMQ context and socket when closing the NetGear instance.
- WebGear:
- Enhanced error messages for WebGear auto-generation workflow (Fixes #403)
- Updated
homepage,not_found, andserver_errormethods to include more detailed JSON error messages. - Added specific error and message prefixes to improve clarity.
- Updated
- Enhanced error messages for WebGear auto-generation workflow (Fixes #403)
- WebGear_RTC:
- Optimized peer connection closure to avoid redundant closures.
- Reduced unnecessary logging by only logging ICE connection state changes when they are not in a "failed" state.
- WriteGear:
- Simplified the logic for formatting output parameters.
- Improved error handling in
execute_ffmpeg_cmdmethod:- Raised
ValueErrorwith descriptive messages forBrokenPipeErrororIOError. - Updated error handling per PEP 409 to preserve original exception context or suppress it based on logging settings.
- Raised
- CamGear:
- Removed GStreamer support check.
- Improved readability of livestream warning logs.
- Setup.py:
- Dropped legacy picamera dependency in
setup.py. - Updated setup.py to use the latest
pyzmqversion to address installation issues (Fixes #399).
- Dropped legacy picamera dependency in
- Helper:
- Added patch for substring index bug in
get_supported_demuxershelper method. - Updated
extract_timehelper function regex to handle milliseconds.
- Added patch for substring index bug in
- Docs:
- Update StreamGear documentation:
- Updated documentation to deprecated
terminate()method, and introducingclose()for safer process termination. - Improved the overview section's description and wording.
- Updated usage examples for both Single-Source Mode and Real-time Frames Mode.
- Updated StreamGear usage examples for device audio input.
- Refactored sections for Live Streaming usage.
- Added warning for unsupported
-livestreamparameter in Single-Source Mode.
- Added warning for unsupported
- Added a tip box on benefits of using stream copy (
-vcodec copy) for faster HLS/DASH transcoding.- Highlighted limitations of stream copy, including incompatibility with Real-time Frames Mode and Custom Streams.
- Clarified automatic audio stream copy (
-acodec copy) usage with input video’s audio stream.
- Updated usage example for device video source.
- Addressed deprecation of the
terminate()method in favor of the newclose()method. - Updated respective notices for the deprecated
terminate()method andrgb_modeparameter. - Added a deprecation warning admonition for the
rgb_modeparameter in thestream()method. - Removed the obsolete usage example for deprecation RGB mode with StreamGear.
- Added documentation and usage of the new
-enable_force_terminationparameter. - Modified the warning message to mention that forced termination can cause corrupted output in certain scenarios.
- Updated the docstring for the
stream()method andtranscode_source()method. - Refactored the StreamGear API Parameters documentation to enhance clarity and readability.
- Refined the description of the
-streamsattribute of the StreamGear API.
- Updated documentation to deprecated
- Update PiGear documentation:
- Added a warning advising users to disable common
libcameramessages when logging is disabled. - Updated Picamera2 installation instructions (including
apt,pip, pre-installation on Raspberry Pi images, and compatibility warnings) - Moved legacy Picamera library installation instructions to an admonition.
- Removed Importing section from overview to avoid confusion.
- Added a warning advising users to disable common
- Update NetGear documentation:
- Added Admonition for warning users about the Client's end must run before the Server's end to establish a secure connection in Secure Mode.
- Added warning log for potential issues with
flag=1(NOBLOCK). (Fixes #390)- Changed default value of
copytoTruein NetGear API documentation.
- Changed default value of
- Noted that
trackoption is ignored whencopy=True.
- Update WriteGear documentation:
- Updated the documentation for the
-disable_force_terminationparameter.
- Updated the documentation for the
- Update
README.md:- Replaced deprecated options (
frame_jpeg_quality,frame_jpeg_optimize,frame_jpeg_progressive) with their newer equivalents (jpeg_compression_quality,jpeg_compression_fastdct,jpeg_compression_fastupsample) in WebGear usage example.
- Replaced deprecated options (
- Update
mkdocs.yml:- Set
edit_urifor GitHub edit links. - Add new theme features like content actions, tooltips, etc.
- Update palette settings for light/dark mode.
- Enable new markdown extensions.
- Add custom javascript hook support.
- Migrated to new Google Analytics 4.
- Replaced depreciated
materialxwith supported emoji extension. - Replaced permalink icon with default one.
- Change system mode toggle icon and name in
mkdocs.yml.
- Set
- Improved overall documentation quality by added detailed explanations, practical examples, following best practices, and clearer usage patterns.
- Updated sections, code examples, admonitions, and comments for better readability, consistency, and precision.
- Added missing version contributors to
changelog.md. - Added new icons to make headings more readable.
- Replaced unsupported admonitions with supported ones.
- Removed all custom admonition icons and color CSS from
custom.css. - Removed Twitter section from help and docs site metadata.
- Updated Zenodo badge and BibTeX entry.
- Added workaround for 'AttributeError: 'DXCamera' object has no attribute 'is_capturing'' error on Windows.
- Remove script tags from
main.htmland use a custom hook for adding javascripts on certain pages. - Refactored all APIs and bonus examples to use
linenumsandhl_lineswhich makes it easier to highlight specific lines in code blocks. - Removed Gitter community chat sidecard javascript file.
- Redefined spacing between sections.
- Add failure warning in various docs about
picameraincompatibility on 64-bit OS. - Update announcement icon in
main.html. - Remove
site.webmanifestfile.
- Update StreamGear documentation:
- Maintenance:
- Improved logging, parameter validation, and added descriptive dialogs across various APIs.
- Moved logging enablement before version logging for consistency in vidgear APIs.
- Removed redundant boolean assignment for various APIs internal logging.
- Simplified conditional statements and assignments using short-circuiting, Boolean operations, and ternary operators across various APIs and tests.
- Refactored vidgear code to improve readability, maintainability, and performance.
- Added
.cachedirectory to.gitignore, - Updated vidgear library version to
v0.3.3. - Improved code efficiency with short-circuiting and formatting.
- Updated logging practices to be more developer-friendly.
- Removed unnecessary parentheses and type checks.
- Removed unused imports.
- Updated code comments.
- CI:
- Temporarily removed PiGear API from code coverage due to hardware limitations.
- Deprecated custom
event_loopfixture overrides in WebGear_RTC and NetGear_Async tests- Removed redundant
pytest.mark.asynciodecorators from several test functions.
- Removed redundant
- Add a new
event_loop_policyfixture for pytest to override the event loop policy:- Added new recommended approach of using
pytest.mark.asyncio(scope="module")to mark all WebGear_RTC and NetGear_Async tests as asynchronous and utilize the same event loop throughout the module. - Log the event loop being used for debugging.
- Added new recommended approach of using
- Updated NetGear unit tests to reflect the new default for
copy. - Ensured coverage for
raise,log,silent, and unknown error types. - Improved parameterized test cases to support floating point values.
- Updated StreamGear tests to use the new
close()method instead of the deprecated terminate() method. - Updated tests of various APIs for better coverage and reliability.
- Enabled
kill=Trueinclose()in NetGear Tests. - Removed pinned
cryptography==38.0.4dependency. - Remove unused imports and code cleanup.
- Rearranged the dependencies.
Breaking Updates/Changes
- StreamGear:
- Deprecated
terminate()method and introduceclose()method.- The
terminate()method in StreamGear is now deprecated and will be removed in a future release. Developers should use the newclose()method instead, which provides a more descriptive name like in WriteGear API for terminating StreamGear processes safely.
- The
- Deprecated
rgb_modeparameter instream()method.- This parameter will be removed in a future version, and only BGR format frames will be supported.
- Restricted
-livestreamparameter to Real-time Frames Mode only.- Live streaming is intended for low-latency streaming of real-time frames, where chunks contain only the most recent frames. It doesn't make sense when streaming from a video file, as the entire file can be streamed normally without the need for live streaming.
- Deprecated
Bug-fixes
- PiGear:
- Modify PiGear class behavior when
enforce_legacy_picamera=Trueon unsupported system- Instead of silently disabling
picamera2API directly, PiGear now raises an error ifpicamerais unavailable or unsupported - Prevented incorrect initialization of
PiGearclass on unsupported 64-bit OS systems.
- Instead of silently disabling
- Fixed
UnboundLocalErrorbug for 'picamera2' variable assigment. - Fixed
UnboundLocalErrorbug for 'queue' variable assignment. - Fixed colorspace typo bug.
- Modify PiGear class behavior when
- StreamGear:
- Fixed incompatibility of stream copy with Real-time Frames Mode.
- Added warnings and discarded
-vcodec copywhen using this mode.
- Added warnings and discarded
- Removed non-essential aspect ratio parameter to prevent unwanted distortions (Fixes #385).
- Moved handle streaming format to beginning to fix 'StreamGear' object has no attribute '_StreamGear__format' bug.
- Fixed incompatibility of stream copy with Real-time Frames Mode.
- NetGear:
- Fixed Secure Mode failing to work on conflicting ZMQ Contexts:
- Handled "Address in use" error more gracefully and disabled secure mode if errors occur.
- Improved handling of ZMQ Authenticator and Certificates.
- Fixed
msg_jsonundefined when terminating context in therecv_handlermethod.
- Fixed Secure Mode failing to work on conflicting ZMQ Contexts:
- CamGear:
- Fixed logging condition for yt-dlp (Fixes #394)
- Updated
no_warningsparameter inCamGearto beFalsewhen logging is enabled andTrueotherwise.
- Updated
- Fixed logging condition for yt-dlp (Fixes #394)
- Docs:
- Replaced buggy kofi widget with a button image in
index.md. - Fixed Ko-fi sponsorship heart hover effect in footer
- Replaced
twemojiheart emoji withheart-pulsefontawesome SVG
- Replaced
- Fixed titles and indentations in various admonitions.
- Fixed various issues in code comments, and hyperlinks URLs.
- Fixed typos, formatting, code highlighting, and grammar inconsistencies.
- Fixed minor typo in
js_hook.py.
- Replaced buggy kofi widget with a button image in
- CI:
- Fixed simplejpeg and opencv not compatible with
numpy==2.x.xversions.- Pinned
numpy<2.0.0in all CI envs.
- Pinned
- Fixed expected duration value in parameterized test case from
8to8.44sincetest_extract_timefunction now supports floating point values. - Fixed
test_secure_modeNetGear test:- Added
"127.0.0.1"address to allow common endpoint for connection. - Added
"jpeg_compression":Falseto disable frame compression, allowing frame to be the same while assertion.
- Added
- Fixed
pip installhash bug in Azure Pipelines CI. - Fixed various typos and code issues in tests.
- Fixed invalid escape sequence in test case string.
- Fixed python environment bugs in
appveyor.yml.
- Fixed simplejpeg and opencv not compatible with
New Contributors
v0.3.2 (2023-09-10)¶
New Features
- NetGear:
- Added new
killparameter toclose()method to forcefully kill ZMQ context instead of graceful exit only in thereceivemode. - Added new
subscriber_timeoutinteger optional parameter to support timeout withpattern=2(or Publisher-Subscriber) pattern.- Receiver will exit safely if timeout defined(any value(in milliseconds) > 0), and timeout occurs in Receiver Mode with
pattern=2. - 💬 Note: Default behavior still is to block the thread till infinite time.
- Receiver will exit safely if timeout defined(any value(in milliseconds) > 0), and timeout occurs in Receiver Mode with
- Added new
- WriteGear:
- Added new
-disable_ffmpeg_windowoptional Boolean flag to enable patch that prevents FFmpeg creation window from opening when building.exefiles on Windows OS. (PR by @ibtsam3301)- 💬 Note:
-disable_ffmpeg_windowoptional Boolean flag is only available on Windows OS with logging disabled(logging=False) in compression mode. - Use Case: This flag can be useful while creating an
.exefile for a python script that uses WriteGear API. On windows even after creating the.exefile in windowed mode or no-console mode, theffmpeg.execommand line window would pop up while its being used by WriteGear API.
- 💬 Note:
- Added new
- Setup.py
- Added official support for python
3.11.xlegacies. - Bumped version to
0.3.1.
- Added official support for python
- Docs
- Added doc for
subscriber_timeoutoptional Integer parameter in NetGear. - Added doc for
disable_ffmpeg_windowoptional Boolean parameter in WriteGear. - Added new asset
screengear_region.png.
- Added doc for
- CI
- Added python 3.11 legacy support for MacOS, Windows and Linux environments.
- Added kill argument to close() method in various NetGear tests.
Updates/Improvements
- Asyncio:
- Formatted TemplateResponse class parameters w.r.t new changes in backend Starlette API.
- Setup.py:
- Readded latest patch to
uvicorn,starlette,pyzmqdependencies. - Removed
3.7legacy from Programming Language metadata.
- Readded latest patch to
- Maintenance:
- Added GitHub sponsors and dropped liberapay from
Funding.yml. - Removed redundant code.
- Added GitHub sponsors and dropped liberapay from
- Docs:
- Updated information related to Supported Dimensional Attributes in ScreenGear docs.
- Updated minimum python to version
3.8while installing vidgear in docs. - Updated API-specific dependencies in docs.
- Updated changelog.md
- CI:
- Updated Azure Pipeline workflow.
- Updated Appveyor Pipeline workflow.
- Updated GitHub Actions Pipeline workflow.
- Migrated python version to
3.9indeploy_docs.ymlworkflow. - Removed deprecated python
3.7legacy support. - Increased code coverage by updating tests.
- Updated tests for
subscriber_timeoutoptional Integer parameter in NetGear. - Updated tests for
disable_ffmpeg_windowoptional Boolean parameter in WriteGear.
Breaking Updates/Changes
- Setup.py:
- Removed support for python-3.7 legacies
- Raised
python_requiresto>=3.8. Thereby python3.7and any before legacy are no longer supported.
- Raised
- Removed support for python-3.7 legacies
Bug-fixes
- ScreenGear:
- Fixed swapped region dimensions bug with dxcam backend.
- Fixed "mss" backend disabled when
monitorparameter is not defined.
- Docs:
- Fixed missing
compression_modeflags in WriteGear API docs. - Fixed missing hyperlinks.
- Fixed typos and context.
- Fixed missing
- CI:
- Temporary fix for AST constructor depth mismatch in pytest on python
3.11.x, More information: pytest-dev/pytest#10874- Made temporary fix platform independent.
- Extended fix to all Webgear_RTC tests.
- Fixed NetGear tests bugs.
- Fixed condition logic bug.
- Temporary fix for AST constructor depth mismatch in pytest on python
New Contributors
v0.3.1 (2023-07-22)¶
New Features
- WebGear:
- Added an option to add a custom video endpoint path.
- Users can now change the video endpoint path from
"/video"to any alphanumeric string. - Added the
custom_video_endpointoptional string attribute for this purpose. - Only alphanumeric strings with no spaces in between are allowed as its value.
- Users can now change the video endpoint path from
- Added an option to add a custom video endpoint path.
- ScreenGear:
- Added
dxcamsupport for Windows machines.- Implemented a complete end-to-end workflow for the
dxcambackend. dxcamis now the default backend for Windows machines when no backend is defined.- Added support for variable screen dimensions to capture an area from the screen.
- Added the optional flag
dxcam_target_fpsto control the target fps indxcam. Defaults to0(disabled). - RGB frames from
dxcamare automatically converted into BGR. - For better performance,
video_modeis enabled by default indxcambackend. - Added necessary imports.
- Implemented a complete end-to-end workflow for the
- Added support for tuple values in the monitor parameter to specify device and output indexes as
(int[device_idx], int[output_idx])in thedxcambackend only.- Default
intindex is also allowed as a value for selecting device index.
- Default
- Added
- Helper
- Added multiple servers support for downloading assets.
- Added GitHub server to the
generate_webdatamethod to make it more robust for rate limits and other shortcomings. - Now, the
generate_webdatamethod will retry a different server when one fails.
- Added GitHub server to the
- Added multiple servers support for downloading assets.
- Setup.py
- Added
dxcamdependency incoreandasyncioextra requires. - Bumped version to
0.3.1.
- Added
- Docs
- Added
dxcamAPI specific prerequisites for ScreenGear API when installing on Windows via pip. - Added documentation for the
custom_video_endpointoptional string attribute. - Added documentation for controlling Chunk size in HLS stream.
- Added new hyperlinks for
dxcamdependency.
- Added
- CI
- Added a test case for
ndim==3grayscale frames.- Added the
Custom_Grayscale_classto generatendim==3grayscale frames.
- Added the
- Added test cases for the
custom_video_endpointoptional string attribute.
- Added a test case for
Updates/Improvements
- WebGear:
- Improved the conditions logic to check if non-empty values are assigned to optional parameters.
- WebGear_RTC:
- Improved the handling of the
formatparameter when constructing aVideoFramefrom ndarray frames.
- Improved the handling of the
- ScreenGear:
- Enforced
dxcambackend (if installed) whenmonitoris defined on Windows machines. - Refactored code blocks to ensure backward compatibility.
- Enforced
- Maintenance:
- Cleaned up unused imports and code blocks.
- Cleaned redundant code.
- Improved logging.
- Implemented short-circuiting.
- Fixed comment typos.
- Updated comments.
- Docs:
- Updated ScreenGear API usage example docs, added new relevant information, updated requirements for
dxcamsupport in Windows machines. - Refactored
monitorandbackendparameters docs of ScreenGear. - Updated class and class parameters descriptions in ScreenGear docs.
- Updated a new description for ScreenGear API.
- Updated Zenodo badge and the BibTeX entry.
- Relocated some docs for a better context.
- Removed ScreenGear name from Threaded Queue Mode doc.
- Updated ScreenGear FAQs.
- Updated changelog.md
- Updated ScreenGear API usage example docs, added new relevant information, updated requirements for
- CI:
- Updated the
test_webgear_rtc_custom_stream_classmethod. - Updated the
test_webgear_optionsmethod. - Updated the
test_webgear_routestest to validate the new custom endpoint. - Increased code coverage by updating tests.
- Updated the
Breaking Updates/Changes
- ScreenGear:
- Previously enforced threaded queue mode is now completely removed, resulting in a potential performance boost.
- 💬 Reason: The IO is automatically blocked by the screen refresh rate, so adding the overhead of maintaining a separate queue is pointless.
- Removed the
THREAD_TIMEOUToptional flag.
- Previously enforced threaded queue mode is now completely removed, resulting in a potential performance boost.
Bug-fixes
- WebGear_RTC:
- Fixed a bug caused by PyAV's error when
ndim==3grayscale frames are encountered.- The API will now drop the third dimension if
ndim==3grayscale frames are detected.
- The API will now drop the third dimension if
- Fixed a bug caused by PyAV's error when
- ScreenGear:
- Fixed backend not defined while logging.
- Setup.py:
- Starting from version
8.0.0, the python-mss library dropped support for Python3.7, so as a temporary measure,mssdependency has been pinned to version7.0.1.
- Starting from version
- Docs:
- Fixed context and added separate code for controlling chunk size in HLS and DASH streams in StreamGear docs.
- Fixed naming conventions for the recently added DXcam backend in ScreenGear docs.
- Fixed missing hyperlinks.
- CI:
- Fixed m3u8 module failing to recognize Windows paths in ScreenGear tests.
- Fixed a path bug by replacing the absolute file path with the decoded file content as a string in its
loads()
v0.3.0 (2023-01-26)¶
New Features
- WriteGear:
- Added support for user-defined and higher than 8-bit depth input frames pixel-format.
- Added support for higher than 8-bit depth frames with datatypes of unsigned integer(
uint) kind and element size2. - Added
dtypeparameter to internalPreprocessmethod for passing input frames datatype. - Implemented auto-calculation of input pixel-format based on number of channels in higher than 8-bit depth frames.
- Added various known working pixel-formats(based on number of channels), supported by all prominent computer vision libraries.
- Added support for up to 1-channel(
gray16-le/be) to all the way up to 4-channels(bgra64-le/be) in input frames. - Added endianness little(
le) or big(be) at the suffix of pixel-format based on byte-order of input frames datatypes. - Extended support for higher RGB 8-bit depth frames through RGB mode.
- Added support for higher than 8-bit depth frames with datatypes of unsigned integer(
- Added support for user-defined custom input pixel-format.
- Added new
-input_pixfmtattribute tooutput_paramsdictionary parameter for easily specifying custom input pixel-format. - Added newly implemented
get_supported_pixfmtsmethod import for verifying user-defined input pixel-format against Installed FFmpeg supported pixel-formats. Unsupported values will be discarded. - Implemented runtime datatype validation check, such that all input frames must have same datatype.
- Added new
- Added support for Context Managers for proper handling of resources via
withstatement for allocating and releasing resources precisely. (Suggested by @sueskind)- Implement the
__enter__()and__exit__()methods. - Added
__enter__method that returns reference to the WriteGear Class. - Added
__exit__method that automatically executesclose()for performing the cleanup operations and handling exception gracefully.
- Implement the
- Added support for user-defined and higher than 8-bit depth input frames pixel-format.
- StreamGear:
- Added support for Context Managers for proper handling of resources via
withstatement for allocating and releasing resources precisely. (Suggested by @sueskind)- Implement the
__enter__()and__exit__()methods. - Added
__enter__method that returns reference to the StreamGear Class. - Added
__exit__method that automatically executesclose()for performing the cleanup operations and handling exception gracefully.
- Implement the
- Added support for Context Managers for proper handling of resources via
- WebGear:
- Added way to completely disable Data-Files Auto-Generation WorkFlow.
- Added new
skip_generate_webdataboolean optional attribute(Falseby default) to completely disable Data-Files Auto-Generation WorkFlow. - This flag enables only
/videoroute for disabled Data-Files Auto-Generation WorkFlow. - Implemented JSONResponse as placeholder response instead of Index,
404and500HTML pages, when workflow is disabled. (Note: Index HTML page will throw404status code.) - Added necessary imports.
- Added new
- Added way to completely disable Data-Files Auto-Generation WorkFlow.
- Helper:
- Added more robust implementation of validate_audio method.
- Added new more robust regex pattern for extracting audio-samplerate.
- Added new
validate_audiomethod for calculating accurate bitrate(in kbps) from audio samplerate, channels, bit-depth values. - Implemented new patterns and logic for accurately extracting audio channels and bit-depth from given metadata.
- Added support for Linux video device path (such as
/dev/video0).
- Added more robust implementation of validate_audio method.
- Maintenance:
- Logging current vidgear version when vidgear APIs are called, not at import.
- Added
logcurr_vidgear_verhelper function to facilitate logging current vidgear version, when called within a API. - Implemented
ver_is_loggedglobal variable in helper to log version only once, which can modifiable withlogcurr_vidgear_vermethod only. Followed recommendation given in official python docs: https://docs.python.org/3/faq/programming.html#how-do-i-share-global-variables-across-modules - Current version can only be logged by VidGear APIs with the logging turned on (i.e.
logging=True).
- Added
- Logging current vidgear version when vidgear APIs are called, not at import.
- Docs:
- Added new WriteGear Bonus Example:
- Added "Using WriteGear's Compression Mode with
v4l2loopbackVirtual Cameras bonus python example. - Added related prerequisites and dependencies for creating
v4l2loopbackVirtual Cameras on Linux machines. - Added both With/Without-Audio cases for "Using WriteGear's Compression Mode for YouTube-Live Streaming".
- Added "Using WriteGear's Compression Mode with
- Added
content.code.copyandcontent.tabs.linkfeatures. - Added docs related to
skip_generate_webdataoptional attribute. - Added feedback features to mkdocs.yml.
- Added
404.htmlstatic template tomkdocs.yml.
- Added new WriteGear Bonus Example:
- CI:
- Added v4l2loopback support for testing
/dev/video0device on Linux machines. - Added test cases for newer implementation of
validate_audiomethod. - Added
test_skip_generate_webdatato testskip_generate_webdataoptional attribute. - Added tests for user-defined and higher than 8-bit depth input frames pixel-format.
- Added v4l2loopback support for testing
Updates/Improvements
- WriteGear:
- Completely revamped code structure and comments.
- Updated comments, description, and logging messages to more sensible and developer friendly.
- Implemented operator short-circuiting to cleanup code as much as possible.
- Renamed
startFFmpeg_Processinternal class method tostart_FFProcess. - Renamed
Preprocessinternal class method toPreprocessFFParams. - Renamed
startCV_Processinternal class method tostart_CVProcess. - Renamed
initiateinternal class parameter toinitiate_process. - Renamed
force_terminationinternal class parameter toforced_termination. - Enabled
output_paramsparameters logging in both modes. - Improved
compressionandloggingparameters boolean value handling. - Implemented
stdoutclosing to cleanup pipeline before terminating.
- Completely revamped code structure and comments.
- Helper:
- Updated
validate_audiomethod with improved and more robust regex patterns for identifying audio bitrate in ay audio file.
- Updated
- Setup.py:
- Bumped version to
0.3.0. - Replaced
>=comparison operator with more flexible~=. - Replaced
distutils.version.LooseVersionwithpkg_resources.parse_version.
- Bumped version to
- Maintenance:
- Replaced depreciated
LooseVersionwithparse_version. - Updated
Retrypackage to be imported fromrequests.adapters. - Moved terminal and python code text area to Question GitHub Form Schema.
- Removed unnecessary imports.
- Removed redundant code.
- Improved logging messages.
- Updated code comments.
- Updated method descriptions.
- Refactored code.
- Increased coverage.
- Replaced depreciated
- Bash Script:
- Updated FFmpeg Static Binaries links to latest date/version tag to
12-07-2022. - Removed depreciated binaries download links and code.
- Updated FFmpeg Static Binaries links to latest date/version tag to
- Docs:
- Replaced all
raw.githubusercontent.comGIF URLs withuser-images.githubusercontent.com. - Reformatted
custom.cssand added missing comments. - Updated sponsor block.
- Enabled Code Highlights.
- Updated announcement bar.
- Updated
changelog.md. - Reduced
webgear_rtc.gifsize. - Updated Zenodo badge and the BibTeX entry.
- Replaced all
- CI:
- Added more flexible formats to
return_testvideo_pathfunction. - Updated
test_writetest for higher than 8-bit depth input frames pixel-format in WriteGear's Compression Mode. - Updated
actions/checkouttov3. - Updated
actions/setup-pythontov4. - Updated
codecov/codecov-actiontov3. - Moved
test_colorspacestest to CamGear tests. - Added deffcode library import.
- Added more flexible formats to
- Re-stuctured yaml code.
Breaking Updates/Changes
- WriteGear:
- Renamed
output_filenamestring parameter tooutput.- Since WriteGear API accepts all sorts of streams (such as valid filename/path/URL) for encoding, thereby changing parameter name to
outputwill be more true to its purpose. - Renaming
output_filenametooutputin WriteGear API will also help user to not accidentally assume WriteGear supports only encoding of video files. - It matches the
outputparameter in StreamGear which basically does the same thing.
- Since WriteGear API accepts all sorts of streams (such as valid filename/path/URL) for encoding, thereby changing parameter name to
- Renamed
cmdparameter inexecute_ffmpeg_cmd()class method to more sensiblecommand. ValueErrorwill be raised if datatype of input frames mismatches Writegear API
- Renamed
Bug-fixes
- Camgear:
- Fixed
CamGear.read()blocked unnecessarily.- 💬 When
THREADED_QUEUE_MODEis enabledCamGear.read()blocks for an excessive duration when attempting to read past the end of a stream. - Added
Noneframe to the queue at the end to signal we're done. - Added
terminateEvent check before continuing.
- 💬 When
- Fixed deadlock on exit.
- 💬 The deadlock is due to
self.__queue.get(timeout=self.__thread_timeout)line inread()method, which still waits for timeout(thread_timeout) to happen when mainupdate()thread was already terminated on exit and queue was empty. Since there was no way to signal queue that stream is already ended, the blockingqueue.get()keeps on waiting until timeout occurs. - The solution was to signal
queue.get()that stream is already ended by puttingNonein queue on exiting the mainupdate()thread.
- 💬 The deadlock is due to
- Fixed
- ScreenGear:
- Fixed
ScreenGear.read()blocked during cold startup. - 💬 During startup,
ScreenGear.read()doesn't checks if queue is empty before continuing.
- Fixed
- WriteGear:
- Fixed gstpipeline_mode not activating when wrongly assuming
outputvalue as valid path. - Fixed name 'compression' is not defined bug.
- Fixed
AttributeError.
- Fixed gstpipeline_mode not activating when wrongly assuming
- Helper:
- Fixed
fltpkeyword in regex pattern causing non-ftlp streams to be not recognized. - Fixed response.headers returning
content-lengthas Nonetype since it may not necessarily have the Content-Legth header set.- Reason: The response from gitlab.com contains a Transfer-Encoding field as
'Transfer-Encoding': 'chunked', which means data is sent in a series of chunks, so the Content-Length header is emitted. More info: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding#Directives
- Reason: The response from gitlab.com contains a Transfer-Encoding field as
- Fixed Linux video device paths still not working.
- Moved
helper.pylogic to WriteGear and StreamGear APIs resp.
- Moved
- Fixed KeyError for empty metadata.
- Fixed
- Setup:
- Pinned
pyzmq==24.0.1working version. - Removed redundant patch for the issue.
- Pinned
- Maintaince:
- Fixed missing pkg name
import_dependency_safefunctions calls.
- Fixed missing pkg name
- Bash Script:
- Fixed gstreamer installation.
- CI:
- Fixed missing v4l2loopback apt dependency on Linux envs.
- Added fix for RTCPeerConnection fails to create RTCDtlsTransport (Related issue: aiortc/aiortc#804)
- Pinned
cryptography==38.0.4in dependencies.
- Pinned
- Pinned Linux image to
ubuntu-20.04in github actions. - Fixed No module named 'httpx' bug.
- Added
httpxlibrary import.
- Added
- Fixed F821 undefined name bug.
- Fixed Gstreamer bug.
- Docs:
- Fixed hyperlinks to new GitHub's form schemas.
- Fixed non-rendering images in README.md
- Replaced all relative image/gifs paths with absolute URLs in README.md.
- Fixed badges/shields#8671 badge issue in README.md
- Fixed GitLab CDN links throwing blocked by CORS policy bug.
- Replaced gitlab GitHack CDN links with with bitbucket.
- Fixed DASH playback failing by setting the
maxAttemptsto Infinity. - Removed
x-signglow-text effect CSS. - Fixed several typos (suggested by @timgates42)
- Fixed coverage badge.
New Contributors
v0.2.6 (2022-07-05)¶
New Features
- Docs:
- Added new bonus example for RTSP/RTP Live-Streaming using WriteGear's Compression Mode.
- Added "How to resolve zmq.error.ZMQError" FAQ for NetGear API.(PR by @iandol)
- Added new ko-fi button to README.md
- Added new contributors block to changelog.md
- Maintenance:
- Added new patterns to
.gitignoreto ignore pypi'sbuilddirectory andegg-infofiles.
- Added new patterns to
- CI:
- Switched to new Issue GitHub's form schema using YAML
- Added new
bug_report.yaml. - Added new
question.yaml. - Added new
proposal.yaml. - Deleted depreciated markdown files.
- Polished forms.
- Added new
- Switched to new Issue GitHub's form schema using YAML
Updates/Improvements
- Setup.py:
- Bumped version to
0.2.6. - Updated logic operators and dependency.
- Replaced
>=comparsion operator with more flexible~=. - Replaced
distutils.version.LooseVersionwithpkg_resources.parse_version.
- Replaced
- Bumped version to
- Docs:
- Updated Site Navigation.
- Added new notices to inform users more effectively about bonus examples.
- Added new
Bonussection to navigation and moved suitable pages under it. - Updated headings and URLs.
- Redesigned and Rewritten Donation and Contribution section to README.md
- Updated Zenodo badge and Bibtex entry.
- Updated Admonition Icon, FAQs and site-links.
- Reformatted code and its comments.
- Updated
changelog.md.
- Updated Site Navigation.
- API:
- Updated depreciated tostring() to tobytes().
tostringwas renamed totobytesfor the purposes for clarity in Python 3.2. https://docs.python.org/3/library/array.html#array.array.tobytes
- Updated depreciated tostring() to tobytes().
- CI:
- Added more paths and files to skip commits.
Breaking Updates/Changes
-
-input_framerateparameter now accepts any positive value for WriteGear and StreamGear APIs.
Bug-fixes
- API:
- Fixed
-input_framerateless than 5 does not get used in WriteGear and StreamGear APIs.(PR by @freol35241)
- Fixed
- CamGear: Fixed Yt-dlp generated HTTP DASH Segments URLs not supported by OpenCV's VideoCapture(PR by @DynamiteC)
- StreamGear:
- Fixed
hls_segment_typenot working bug. (PR by @enarche-ahn) - Fixed critical logging parameter bug
- Fixed debug logs even when
logging=Falsein StreamGear's Real-time Mode. (patch suggested by @enarche-ahn) - Added length check to
-video_sourceattribute to correctly infers it as empty(or invalid).
- Fixed debug logs even when
- Fixed
- CI:
- Xfailed RTSP CamGear CI test.
- Fixed pinned version syntax bug in docs_deployer workflow.
- Fixed typos in Github forms and its context.
- Added missing dependency.
- Docs:
- Fixed jinja2
3.1.0or above breaks mkdocs.jinja2>=3.1.0breaks mkdocs (mkdocs/mkdocs#2799), therefore pinned jinja2 version to<3.1.0.
- Fixed support for new
mkdocstringversions- Replaced rendering sub-value with options.
- Removed pinned
mkdocstrings==0.17.0version.
- Fixed Netgear+Webgear bonus example code bugs.(PR by @iandol)
- Added a missing import.
- Removed
self.typo. - Replaced the
returnvalue withbreakin the async as it triggers an error.
- Fixed external bug that causing "Home" tab to irresponsive randomly when accessed from other tabs.
- Fixed indentation and spacing.
- Fixed typos and updated context.
- Removed dead code.
- Fixed jinja2
New Contributors
v0.2.5 (2021-02-11)¶
New Features
- WriteGear:
- Add support for GStreamer pipeline in WriteGear API's Non-Compression mode:
- Implemented GStreamer Pipeline Mode to accept GStreamer pipeline as string to its output_filename parameter.
- Added new special
-gst_pipeline_modeattribute for its output_params parameter. - This feature provides flexible way to directly write video frames into GStreamer Pipeline with controlled bitrate.
- Added new docs and updated existing docs with related changes.
- Added new
-ffpreheadersspecial attribute to WriteGear's options parameter:- This attribute is specifically required to set special FFmpeg parameters in Compression Mode that are present at the starting of command(such as
-re). - This attribute only accepts list datatype as value.
- Added related docs.
- This attribute is specifically required to set special FFmpeg parameters in Compression Mode that are present at the starting of command(such as
- Add support for GStreamer pipeline in WriteGear API's Non-Compression mode:
- NetGear:
- Added bidirectional data transfer support by extending Bidirectional mode support to exclusive Multi-Clients and Multi-Servers modes:
- Users will now able to send data bidirectionally in both Multi-Clients and Multi-Servers exclusive modes.
- Bidirectional mode will no longer disables automatically when Multi-Clients and Multi-Servers modes already enabled.
- Added new docs and updated existing docs with related changes.
- Added bidirectional data transfer support by extending Bidirectional mode support to exclusive Multi-Clients and Multi-Servers modes:
- Maintenance:
- Added official support for Python-3.10 legacies.
- Added
floatvalue support toTHREAD_TIMEOUToptional parameter. - Added info about dropped support for Python-3.6 legacies through announcement bar.
- Added
config.mdfile for Issue templates. - Added title to Issue templates.
- Docs:
- Added new Code Annotations
- Added new icons to headings.
- Added Advanced VideoGear usage example with CamGear backend.
Updates/Improvements
- Setup.py:
- Dropped support for Python-3.6 and below legacies.
- Updated logging formatting.
- Updated python_requires to
>=3.7. - Bumped version to
0.2.5.
- Helper:
- Vidgear will now report current version on every run.
- Docs:
- Updated SSH tunneling docs context.
- Excluded
docsdirectory from CI envs. - Updated Zenodo badge and BibTeX entry.
- Updated dark theme hue to
260. - Updated Admonitions.
- Additional warnings against pushing PR against VidGear's
testingbranch only. - Updated code comments.
- CI:
- Removed support for Python-3.6 legacies from all workflows.
- Updated NetGear's Exclusive Mode tests.
- Added GStreamer Pipeline Mode tests.
- Maintenance:
- Updated Issue and PR templates.
- Updated metadata.
Breaking Updates/Changes
- Dropped support for Python-3.6 legacies from vidgear.
Bug-fixes
- NetGear: Fixed bidirectional mode overriding multi-clients mode's data.
- WriteGear:
- Fixed wrongly defined ffmpeg_preheaders.
- Fixed condition logic bugs.
- Fixed UnboundLocalError bug.
- Setup: Fixed uvicorn and aiortc dropped support for Python-3.6 legacies.
- CI:
- Fixed GitHub Actions interprets
3.10as3.1if used without strings. - Fixed naming error in azure YAML.
- Fixed GitHub Actions interprets
- Docs:
- Fixed codecov badge URL in README.md
- Fixed hyperlinks in README.
- Fixed indentation and spacing.
- Fixed typos and updated context.
- Removed dead code.
- Maintenance:
- Removed depreciated condition checks.
v0.2.4 (2021-12-05)¶
New Features
- CamGear:
- Added a new YT_backend Internal Class with YT-DLP backend:
- Implemented
YT_backenda new CamGear's Internal YT-DLP backend class for extracting metadata from Streaming URLs. - Added support for pipeling (live) video-frames from all yt-dlp supported streaming sites: https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md#supported-sites
- Implemented algorithm from scratch for auto-extracting resolution specific streamable URLs for pipelineing.
- Implemented logic for auto-calculating
bestandworstresolutions. - Added new
ytv_metadataglobal parameter to CamGear for accessing video's metadata(such as duration, title, description) on-the-go. - ⚠️ Playlists are still unsupported.
- Implemented
- Added a new YT_backend Internal Class with YT-DLP backend:
- WebGear_RTC:
- Implemented a new easy way of defining Custom Streaming Class with suitable source(such as OpenCV):
- Added new
custom_streamattribute with WebGear_RTCoptionsparameter that allows you to easily define your own Custom Streaming Class with suitable source(such as OpenCV). - This implementation supports repeated Auto-Reconnection or Auto-Refresh out-of-the-box.
- This implementation is more user-friendly and easy to integrate within complex APIs.
- This implementation requires at-least
read()andstop()methods implemented within Custom Streaming Class, otherwise WebGear_RTC will throw ValueError. - This implementation supports all vidgear's VideoCapture APIs readily as input.
- Added new
- Implemented a new easy way of defining Custom Streaming Class with suitable source(such as OpenCV):
- Maintenance:
- Added new
.gitignorefor specifying intentionally untracked files to ignore- Added more files entries to
.gitignore.
- Added more files entries to
- Added new
.gitattributesto manage how Git reads line endings.- Enabled
autodefault behavior, in case people don't havecore.autocrlfset. - Enforced LF line-endings for selective files types.
- Added Binary data files that specifies they are not text, and git should not try to change them.
- Added Language aware diff headers.
- Added Linguist language overrides.
- Enabled
- Added new
- Docs:
- Added bonus example to add real-time file audio encoding with VideoGear and Stabilizer class.
- Added complete usage docs with new CamGear's Internal Class with YT-DLP backend.
- Added instructions to extract video's metadata in CamGear.
- Added donation link in page footer with bouncing heart animation through pure CSS.
- Added info about critical changes in
v0.2.4and above installation through new announcement bar. - Added related usage docs for new WebGear_RTC custom streaming class.
- Added changes for upgrading mkdocs-material from
v7.xto newerv8.x. - Added outdated version warning block.
Updates/Improvements
- CamGear:
- Added
is_livestreamglobal YT_backend parameters. - Added default options for yt-dlp for extracting info_dict(metadata) of the video as a single JSON line.
- Completely removed old logic for extracting streams using pafy.
- Removed all dead code related to streamlink backend.
- Added
- Setup.py:
- Moved all API specific dependencies to
extra_requiresunder the name"core". [PR #268 by @zpapakipos] - Added rule to replace GitHub heading links in description.
- Updated
extra_requiredependencies. - Removed
streamlinkdependency. - Removed
pafydependency. - Removed
pyzmqfrom latest_version group. - Updated SEO Keywords.
- Moved all API specific dependencies to
- Docs:
- Re-written
pipandsourceinstallation docs. - Added warning for using
-disable_force_terminationflag for short duration videos. - Added
permalink_titleentry to mkdocs.yml. - Updated CamGear parameters.
- Updated Admonitions with related information.
- Updated Functional Block Diagram(
gears_fbd.png) image. - Updated installation instructions.
- Updated Advanced examples using WebGear_RTC's custom streaming class.
- Updated code highlighting.
- Updated zenodo badge.
- Updated BibTex for project citation.
- Replaced incorrect API parameter docs.
- Updated WebGear_RTC parameters.
- Re-written
- CI:
- Updated CI tests for new WebGear_RTC custom streaming class.
- Restored
test_stream_modeCamGear test. - Updated Streaming Sites test links.
- Added more tests cases.
- Maintenance:
- Updated spacing in logger formatting.
- Renamed Asyncio Helper logger name.
- Changed logging colors.
- Updated logging messages.
Breaking Updates/Changes
- Installation command with
piphas been changed inv0.2.4:- The legacy
pip install vidgearcommand now installs critical bare-minimum dependencies only. Therefore in order to automatically install all the API specific dependencies as previous versions, usepip install vidgear[core]command instead.
- The legacy
- CamGear:
- Removed
streamlinkbackend support fromstream_modein favor of more reliable CamGear's Internal YT-DLP backend class for extracting metadata from Streaming URLs.- CamGear will raise
ValueErrorif streaming site URL is unsupported by yt-dlp backend. - CamGear will raise
ValueErrorifyt-dlpisn't installed andstream_modeis enabled.
- CamGear will raise
- Removed automatic enforcing of GStreamer backend for YouTube-livestreams and made it optional.
- The CamGear will not raise ValueError if GStreamer support is missing in OpenCV backends.
- Removed
- WebGear_RTC:
- Removed support for assigning Custom Media Server Class(inherited from aiortc's VideoStreamTrack) in WebGear_RTC through its
configglobal parameter. - WebGear_RTC API will now throws ValueError if
sourceparameter is NoneType as well ascustom_streamattribute is undefined.
- Removed support for assigning Custom Media Server Class(inherited from aiortc's VideoStreamTrack) in WebGear_RTC through its
- Helper:
- Removed
restore_levelnamesmethod. - Removed
youtube_url_validatorhelper method.
- Removed
Bug-fixes
- CamGear:
- Fixed KeyError Bug for missing attributed in meta_data json in some streaming sites.
- Helper:
- Removed unused imports.
- Docs:
- Removed slugify from mkdocs which was causing invalid hyperlinks in docs.
- Fixed GitHub hyperlinks in README.md.
- Fixed hyperlink in announcement bar.
- Fixed content tabs failing to work.
- Fixed line-endings and usage example code.
- Removed any
pafyandstreamlinkreferences. - Fixed context and typos.
- CI:
- Fixed NameError bugs in WebGear_RTC CI test.
- Maintenance:
- Removed dead logger code causing Python's Built-in logging module to hide logs.
- Removed unused
loggingimport. - Updated code comments.
New Contributors
v0.2.3 (2021-10-27)¶
New Features
- CamGear:
- Added support for
4KStreaming URLs.
- Added support for
- Helper:
- Implemented logging ColorFormatter string alignment.
- Center aligned logging Level-name and Class-name.
- Changed
%formatting style with modern{. - Re-added
asctimevalue to Formatter string. - Re-arranged parameter positions in Formatter string.
- Implemented logging ColorFormatter string alignment.
- Maintenance:
- Added new
.gitignorefor specifying intentionally untracked files to ignore- Added more files entries to
.gitignore.
- Added more files entries to
- Added new
.gitattributesto manage how Git reads line endings.- Enabled
autodefault behavior, in case people don't havecore.autocrlfset. - Enforced LF line-endings for selective files types.
- Added Binary data files that specifies they are not text, and git should not try to change them.
- Added Language aware diff headers.
- Added Linguist language overrides.
- Enabled
- Added new
- Docs:
- Added new ScreenGear with WebGear_RTC API bonus example.
- Added support for
hl_linesargument for highlighting specific code lines. - Added drop-shadow effects for its
slatetheme to improve visibility.
Updates/Improvements
- CamGear:
- Replaced
youtube-dlwithyt-dlpas pafy backend for YouTube videos pipelining.- Implemented hack to trick pafy into assuming
yt-dlpasyoutube-dl. - Using
sys.modulesto presentyt-dlpasyoutube-dl. yt-dlppython API functions exactly similar toyoutube-dl.- Replaced
youtube-dldependency withyt-dlp. - Replaced
youtube-dlimports withyt-dlp.
- Implemented hack to trick pafy into assuming
- Replaced
- StreamGear:
- Updated default
stream_countinternal dict key value to 1.
- Updated default
- Maintenance:
- Introduced python short-circuiting for handling logging logic.
- Enabled logging for
check_WriteAccessmethod in WriteGear, StreamGear and NetGear APIs.
- Docs:
- Added warning for ScreenGear outputting RGBA frames instead of default BGR frames with
mssbackend. - Added warnings for properly formatting
output_paramswhen assigning external audio-source in WriteGear. - Added depreciation notice for Python 3.6 legacies.
- Restructured docs to make it more user-friendly.
- Updated, Extended and Improved context.
- Improved code comments.
- Updated docs admonitions.
- Updated
Zenodobadge.
- Added warning for ScreenGear outputting RGBA frames instead of default BGR frames with
- CI:
- Migrated to new Codecov Uploader in Azure Pipelines.
- Support for the Bash Uploader will be deprecated on February 1st, 2022. See: https://docs.codecov.com/docs/about-the-codecov-bash-uploader
- Added commands for signature and SHASUM verification to ensure integrity of the Uploader before use.
- Replaced related bash commands.
- Replaced
envwithexportin ci_linux.yml. - Replaced
bubkoo/needs-more-info@v1withwow-actions/needs-more-info@v1. - Added codecov secret token through
envvariable. - Added wildcard to skip CI tests for doc(
.md) files. - Added
.mdfiles to Codecov ignore list. - Update vidgear's banner image.
- Migrated to new Codecov Uploader in Azure Pipelines.
Breaking Updates/Changes
-
check_WriteAccesswill now return as invalid path if writing directory does not exists. This will effect output file handling in WriteGear and StreamGear APIs.
Bug-fixes
- StreamGear:
- WriteGear:
- Fixed bug in disable_force_termination logic which accidentally disables force termination.
- WebGear_RTC:
- Fixed
name 'VideoStreamTrack' is not definedbug.
- Fixed
- Setup.py:
- Fixed
TypeErrorbug. - Fixed invalid
latest_versionretrieval.
- Fixed
- Helper:
- Fixed
check_WriteAccessfailing to recognize correct permission for writing the output file on windows platform.- Implemented separate logic for
Windowsand*nixplatforms. - Added new
statimport. - Improved warnings and error handling.
- Added logging parameter to
check_WriteAccess.
- Implemented separate logic for
- Fixed bug in check_WriteAccess that throws
OSErrorwhile handling URLs.
- Fixed
- Docs:
- Fixed bugs in WriteGear's Compression Mode with Live Audio Input example.
- Fixed "drop-shadow" property via
filterfunction conflicting with sidecard button.- Added new CSS classes for image, admonitions and code highlight in dark theme.
- Several internal and external webpage links typos fixed.
- Fixed several language typos.
- CI:
- Fixed Azure Pipeline coverage upload bugs.
- Fixed random errors in CamGear
stream_modetest.
- Bash:
- Removed the Windows carriage returns from the shell scripts to be able to execute them on Linux.
- Fixed logging comments.
New Contributors
v0.2.2 (2021-09-02)¶
New Features
- StreamGear:
- Native Support for Apple HLS Multi-Bitrate Streaming format:
- Added support for new Apple HLS (HTTP Live Streaming) HTTP streaming format in StreamGear.
- Implemented default workflow for auto-generating primary HLS stream of same resolution and framerate as source.
- Added HLS support in Single-Source and Real-time Frames Modes.
- Implemented inherit support for
fmp4andmpegtsHLS segment types. - Added adequate default parameters required for trans-coding HLS streams.
- Added native support for HLS live-streaming.
- Added
"hls"value toformatparameter for easily selecting HLS format. - Added HLS support in
-streamsattribute for transcoding additional streams. - Added support for
.m3u8and.tsextensions inclear_prev_assetsworkflow. - Added validity check for
.m3u8extension in output when HLS format is used. - Separated DASH and HLS command handlers.
- Created HLS format exclusive parameters.
- Implemented
-hls_base_urlFFMpeg parameter support.
- Added support for audio input from external device:
- Implemented support for audio input from external device.
- Users can now easily add audio device and decoder by formatting them as python list.
- Modified
-audioparameter to supportlistdata type as value. - Modified
validate_audiohelper function to validate external audio devices.
- Added
-seg_durationto control segment duration.
- Native Support for Apple HLS Multi-Bitrate Streaming format:
- NetGear:
- New SSH Tunneling Mode for remote connection:
- New SSH Tunneling Mode for connecting ZMQ sockets across machines via SSH tunneling.
- Added new
ssh_tunnel_modeattribute to enable ssh tunneling at provide address at server end only. - Implemented new
check_open_porthelper method to validate availability of host at given open port. - Added new attributes
ssh_tunnel_keyfileandssh_tunnel_pwdto easily validate ssh connection. - Extended this feature to be compatible with bi-directional mode and auto-reconnection.
- Disabled support for exclusive Multi-Server and Multi-Clients modes.
- Implemented logic to automatically enable
paramikosupport if installed. - Reserved port-
47for testing.
- Additional colorspace support for input frames with Frame-Compression enabled:
- Allowed to manually select colorspace on-the-fly with JPEG frame compression.
- Updated
jpeg_compressiondict parameter to support colorspace string values. - Added all supported colorspace values by underline
simplejpeglibrary. - Server enforced frame-compression colorspace on client(s).
- Enable "BGR" colorspace by default.
- Added Example for changing incoming frames colorspace with NetGear's Frame Compression.
- Updated Frame Compression parameters in NetGear docs.
- Updated existing CI tests to cover new frame compression functionality.
- New SSH Tunneling Mode for remote connection:
- NetGear_Async:
- New exclusive Bidirectional Mode for bidirectional data transfer:
- NetGear_Async's first-ever exclusive Bidirectional mode with pure asyncio implementation.
- Bidirectional mode is only available with User-defined Custom Source(i.e.
source=None) - Added support for
PAIR&REQ/REPbidirectional patterns for this mode. - Added powerful
asyncio.Queuesfor handling user data and frames in real-time. - Implemented new
transceive_datamethod to Transmit (in Recieve mode) and Receive (in Send mode) data in real-time. - Implemented
terminate_connectioninternal asyncio method to safely terminate ZMQ connection and queues. - Added
msgpackautomatic compression encoding and decoding of data and frames in bidirectional mode. - Added support for
np.ndarrayvideo frames. - Added new
bidirectional_modeattribute for enabling this mode. - Added 8-digit random alphanumeric id generator for each device.
- NetGear_Async will throw
RuntimeErrorif bidirectional mode is disabled at server or client but not both.
- Added new
disable_confirmationused to force disable termination confirmation from client interminate_connection. - Added
task_done()method after everyget()call to gracefully terminate queues. - Added new
secretsandstringimports.
- New exclusive Bidirectional Mode for bidirectional data transfer:
- WebGear:
- Updated JPEG Frame compression with
simplejpeg:- Implemented JPEG compression algorithm for 4-5% performance boost at cost of minor loss in quality.
- Utilized
encode_jpeganddecode_jpegmethods to implement turbo-JPEG transcoding withsimplejpeg. - Added new options to control JPEG frames quality, enable fastest dct, fast upsampling to boost performance.
- Added new
jpeg_compression,jpeg_compression_quality,jpeg_compression_fastdct,jpeg_compression_fastupsampleattributes. - Enabled fast dct by default with JPEG frames at
90%. - Incremented default frame reduction to
25%. - Implemented automated grayscale colorspace frames handling.
- Updated old and added new usage examples.
- Dropped support for depreciated attributes from WebGear and added new attributes.
- Added new WebGear Theme: (Checkout at https://github.com/abhiTronix/vidgear-vitals)
- Added responsive image scaling according to screen aspect ratios.
- Added responsive text scaling.
- Added rounded border and auto-center to image tag.
- Added bootstrap css properties to implement auto-scaling.
- Removed old
resize()hack. - Improved text spacing and weight.
- Integrated toggle full-screen to new implementation.
- Hide Scrollbar both in WebGear_RTC and WebGear Themes.
- Beautify files syntax and updated files checksum.
- Refactor files and removed redundant code.
- Bumped theme version to
v0.1.2.
- Updated JPEG Frame compression with
- WebGear_RTC:
- Added native support for middlewares:
- Added new global
middlewarevariable for easily defining Middlewares as list. - Added validity check for Middlewares.
- Added tests for middlewares support.
- Added example for middlewares support.
- Extended middlewares support to WebGear API too.
- Added related imports.
- Added new global
- Added new WebGear_RTC Theme: (Checkout at https://github.com/abhiTronix/vidgear-vitals)
- Implemented new responsive video scaling according to screen aspect ratios.
- Added bootstrap CSS properties to implement auto-scaling.
- Removed old
resize()hack. - Beautify files syntax and updated files checksum.
- Refactored files and removed redundant code.
- Bumped theme version to
v0.1.2
- Added native support for middlewares:
- Helper:
- New automated interpolation selection for gears:
- Implemented
retrieve_best_interpolationmethod to automatically select best available interpolation within OpenCV. - Added support for this method in WebGear, WebGear_RTC and Stabilizer Classes/APIs.
- Added new CI tests for this feature.
- Implemented
- Implemented
get_supported_demuxersmethod to get list of supported demuxers.
- New automated interpolation selection for gears:
- CI:
- Added new
no-responsework-flow for stale issues. - Added new CI tests for SSH Tunneling Mode.
- Added
paramikoto CI dependencies. - Added support for
"hls"format in existing CI tests. - Added new functions
check_valid_m3u8andextract_meta_videofor validating HLS files. - Added new
m3u8dependency to CI workflows. - Added complete CI tests for NetGear_Async's new Bidirectional Mode:
- Implemented new exclusive
Custom_Generatorclass for testing bidirectional data dynamically on server-end. - Implemented new exclusive
client_dataframe_iteratormethod for testing bidirectional data on client-end. - Implemented
test_netgear_async_optionsandtest_netgear_async_bidirectionalmodetwo new tests. - Added
timeoutvalue on server end in CI tests.
- Implemented new exclusive
- Added new
- Setup.py:
- Added new
cythonandmsgpackdependency. - Added
msgpackandmsgpack_numpyto auto-install latest.
- Added new
- BASH:
- Added new
temp_m3u8folder for generating M3U8 assets in CI tests.
- Added new
- Docs:
- Added docs for new Apple HLS StreamGear format:
- Added StreamGear HLS transcoding examples for both StreamGear modes.
- Updated StreamGear parameters to w.r.t new HLS configurations.
- Added open-sourced "Sintel" - project Durian Teaser Demo with StreamGear's HLS stream using
Clapprand raw.githack.com. - Added new HLS chunks at https://github.com/abhiTronix/vidgear-docs-additionals for StreamGear
- Added support for HLS video in Clappr within
custom.jsusing HlsjsPlayback plugin. - Added support for Video Thumbnail preview for HLS video in Clappr within
custom.js - Added
hlsjs-playback.min.jsJS script and suitable configuration for HlsjsPlayback plugin. - Added custom labels for quality levels selector in
custom.js. - Added new docs content related to new Apple HLS format.
- Updated DASH chunk folder at https://github.com/abhiTronix/vidgear-docs-additionals.
- Added example for audio input support from external device in StreamGear.
- Added steps for using
-audioattribute on different OS platforms in StreamGear.
- Added usage examples for NetGear_Async's Bidirectional Mode:
- Added new Usage examples and Reference doc for NetGear_Async's Bidirectional Mode.
- Added new image asset for NetGear_Async's Bidirectional Mode.
- Added NetGear_Async's
optionparameter reference. - Updated NetGear_Async definition in docs.
- Changed font size for Helper methods.
- Renamed
Bonussection toReferencesinmkdocs.yml.
- Added Gitter sidecard embed widget:
- Imported gitter-sidecar script to
main.html. - Updated
custom.jsto set global window option. - Updated Sidecard UI in
custom.css.
- Imported gitter-sidecar script to
- Added bonus examples to help section:
- Implemented a curated list of more advanced examples with unusual configuration for each API.
- Added several new contents and updated context.
- Added support for search suggestions, search highlighting and search sharing (i.e. deep linking)
- Added more content to docs to make it more user-friendly.
- Added warning that JPEG Frame-Compression is disabled with Custom Source in WebGear.
- Added steps for identifying and specifying sound card on different OS platforms in WriteGear.
- Added Zenodo DOI badge and its reference in BibTex citations.
- Added
extra.homepageparameter, which allows for setting a dedicated URL forsite_url. - Added
pymdownx.striphtmlplugin for stripping comments. - Added complete docs for SSH Tunneling Mode.
- Added complete docs for NetGear's SSH Tunneling Mode.
- Added
pipupgrade related docs. - Added docs for installing vidgear with only selective dependencies
- Added new
advance/experimentadmonition with new background color. - Added new icons SVGs for
advanceandwarningadmonition. - Added new usage example and related information.
- Added new image assets for ssh tunneling example.
- Added new admonitions
- Added new FAQs.
- Added docs for new Apple HLS StreamGear format:
Updates/Improvements
- VidGear Core:
- New behavior to virtually isolate optional API specific dependencies by silencing
ImportErroron all VidGear's APIs import. - Implemented algorithm to cache all imports on startup but silence any
ImportErroron missing optional dependency. - Now
ImportErrorwill be raised only any certain API specific dependency is missing during given API's initialization. - New
import_dependency_safeto imports specified dependency safely withimportlibmodule. - Replaced all APIs imports with
import_dependency_safe. - Added support for relative imports in
import_dependency_safe. - Implemented
errorparameter to by defaultImportErrorwith a meaningful message if a dependency is missing, Otherwise iferror = loga warning will be logged and onerror = silenteverything will be quit. But If a dependency is present, but older than specified, an error is raised if specified. - Implemented behavior that if a dependency is present, but older than
min_versionspecified, an error is raised always. - Implemented
custom_messageto display custom message on error instead of default one. - Implemented separate
import_core_dependencyfunction to import and check for specified core dependency. ImportErrorwill be raised immediately if core dependency not found.
- New behavior to virtually isolate optional API specific dependencies by silencing
- StreamGear:
- Replaced depreciated
-min_seg_durationflag with-seg_duration. - Removed redundant
-reflag from RTFM. - Improved Live-Streaming performance by disabling SegmentTimline
- Improved DASH assets detection for removal by using filename prefixes.
- Replaced depreciated
- NetGear:
- Replaced
np.newaxiswithnp.expand_dims. - Replaced
randommodule withsecretswhile generating system ID. - Update array indexing with
np.copy.
- Replaced
- NetGear_Async:
- Improved custom source handling.
- Removed deprecated
loopparameter from asyncio methods. - Re-implemented
skip_loopparameter inclose()method. run_until_completewill not used ifskip_loopis enabled.skip_loopnow will create asyncio task instead and will enabledisable_confirmationby default.- Replaced
create_taskwithensure_futureto ensure backward compatibility with python-3.6 legacies. - Simplified code for
transceive_datamethod.
- WebGear_RTC:
- Improved handling of failed ICE connection.
- Made
is_runningvariable globally available for internal use.
- Helper:
- Added
4320presolution support todimensions_to_resolutionsmethod. - Implemented new
delete_file_safeto safely delete files at given path. - Replaced
os.removecalls withdelete_file_safe. - Added support for filename prefixes in
delete_ext_safemethod. - Improved and simplified
create_blank_framefunctions frame channels detection. - Added
loggingparameter to capPropId function to forcefully discard any error(if required).
- Added
- Setup.py:
- Added patch for
numpydependency,numpyrecently dropped support for python 3.6.x legacies. See https://github.com/numpy/numpy/releases/tag/v1.20.0 - Removed version check on certain dependencies.
- Re-added
aiortcto auto-install latest version.
- Added patch for
- Asyncio:
- Changed
asyncio.sleepvalue to0.- The amount of time sleep is irrelevant; the only purpose await asyncio.sleep() serves is to force asyncio to suspend execution to the event loop, and give other tasks a chance to run. Also,
await asyncio.sleep(0)will achieve the same effect. https://stackoverflow.com/a/55782965/10158117
- The amount of time sleep is irrelevant; the only purpose await asyncio.sleep() serves is to force asyncio to suspend execution to the event loop, and give other tasks a chance to run. Also,
- Changed
- License:
- Dropped publication year range to avoid confusion. (Signed and Approved by @abhiTronix)
- Updated Vidgear license's year of first publication of the work in accordance with US copyright notices defined by Title 17, Chapter 4(Visually perceptible copies): https://www.copyright.gov/title17/92chap4.html
- Reflected changes in all copyright notices.
- CI:
- Updated macOS VM Image to latest in azure devops.
- Updated VidGear Docs Deployer Workflow.
- Updated WebGear_RTC CI tests.
- Removed redundant code from CI tests.
- Updated tests to increase coverage.
- Enabled Helper tests for python 3.8+ legacies.
- Enabled logging in
validate_videomethod. - Added
-hls_base_urlto streamgear tests. - Update
mpegdashdependency to0.3.0-dev2version in Appveyor. - Updated CI tests for new HLS support
- Updated CI tests from scratch for new native HLS support in StreamGear.
- Updated test patch for StreamGear.
- Added exception for RunTimeErrors in NetGear CI tests.
- Added more directories to Codecov ignore list.
- Imported relative
logger_handlerfor asyncio tests.
- Docs:
- Re-positioned few docs comments at bottom for easier detection during stripping.
- Updated to new extra
analyticsparameter in Material Mkdocs. - Updated dark theme to
dark orange. - Changed fonts => text:
Muli& code:Fira Code - Updated fonts to
Source Sans Pro. - Updated
setup.pyupdate-link for modules. - Re-added missing StreamGear Code docs.
- Several minor tweaks and typos fixed.
- Updated
404.htmlpage. - Updated admonitions colors and beautified
custom.css. - Replaced VideoGear & CamGear with OpenCV in CPU intensive examples.
- Updated
mkdocs.ymlwith new changes and URLs. - Moved FAQ examples to bonus examples.
- Moved StreamGear primary modes to separate sections for better readability.
- Implemented separate overview and usage example pages for StreamGear primary modes.
- Improved StreamGear docs context and simplified language.
- Renamed StreamGear
overviewpage tointroduction. - Re-written Threaded-Queue-Mode from scratch with elaborated functioning.
- Replace Paypal with Liberpay in
FUNDING.yml. - Updated FFmpeg Download links.
- Reverted UI change in CSS.
- Updated
changelog.mdand fixed clutter. - Updated
README.mdandmkdocs.ymlwith new additions - Updated context for CamGear example.
- Restructured and added more content to docs.
- Updated comments in source code.
- Removed redundant data table tweaks from
custom.css. - Re-aligned badges in README.md.
- Beautify
custom.css. - Updated
mkdocs.yml. - Updated context and fixed typos.
- Added missing helper methods in Reference.
- Updated Admonitions.
- Updates images assets.
- Bumped CodeCov.
- Logging:
- Improved logging level-names.
- Updated logging messages.
- Minor tweaks to
needs-more-infotemplate. - Updated issue templates and labels.
- Removed redundant imports.
Breaking Updates/Changes
- Virtually isolated all API specific dependencies, Now
ImportErrorfor API-specific dependencies will be raised only when any of them is missing at API's initialization. - Renamed
delete_safetodelete_ext_safe. - Dropped support for
frame_jpeg_quality,frame_jpeg_optimize,frame_jpeg_progressiveattributes from WebGear.
Bug-fixes
- CamGear:
- Hot-fix for Live Camera Streams:
- Added new event flag to keep check on stream read.
- Implemented event wait for
read()to block it when source stream is busy. - Added and Linked
THREAD_TIMEOUTwith event wait timout. - Improved backward compatibility of new additions.
- Enforced logging for YouTube live.
- Hot-fix for Live Camera Streams:
- NetGear:
- Fixed Bidirectional Video-Frame Transfer broken with frame-compression:
- Fixed
return_datainterfering with return JSON-data in receive mode. - Fixed logic.
- Fixed
- Fixed color-subsampling interfering with colorspace.
- Patched external
simplejpegbug. Issue: https://gitlab.com/jfolz/simplejpeg/-/issues/11- Added
np.squeezeto drop grayscale frame's 3rd dimension on Client's end.
- Added
- Fixed bug that cause server end frame dimensions differ from client's end when frame compression enabled.
- Fixed Bidirectional Video-Frame Transfer broken with frame-compression:
- NetGear_Async:
- Fixed bug related asyncio queue freezing on calling
join(). - Fixed ZMQ connection bugs in bidirectional mode.
- Fixed several critical bugs in event loop handling.
- Fixed several bugs in bidirectional mode implementation.
- Fixed missing socket termination in both server and client end.
- Fixed
timeoutparameter logic. - Fixed typos in error messages.
- Fixed bug related asyncio queue freezing on calling
- WebGear_RTC:
- Fixed stream freezes after web-page reloading:
- Implemented new algorithm to continue stream even when webpage is reloaded.
- Inherit and modified
next_timestampVideoStreamTrack method for generating accurate timestamps. - Implemented
reset_connectionscallable to reset all peer connections and recreate Video-Server timestamps. (Implemented by @kpetrykin) - Added
close_connectionendpoint in JavaScript to inform server page refreshing.(Thanks to @kpetrykin) - Added exclusive reset connection node
/close_connectionin routes. - Added
reset()method to Video-Server class for manually resetting timestamp clock. - Added
reset_enabledflag to keep check on reloads. - Fixed premature webpage auto-reloading.
- Added additional related imports.
- Fixed web-page reloading bug after stream ended:
- Disable webpage reload behavior handling for Live broadcasting.
- Disable reload CI test on Windows machines due to random failures.
- Improved handling of failed ICE connection.
- Fixed Assertion error bug:
- Source must raise MediaStreamError when stream ends instead of returning None-type.
- Fixed stream freezes after web-page reloading:
- WebGear
- Removed format specific OpenCV decoding and encoding support for WebGear.
- Helper:
- Regex bugs fixed:
- New improved regex for discovering supported encoders in
get_supported_vencoders. - Re-implemented check for extracting only valid output protocols in
is_valid_url. - Minor tweaks for better regex compatibility.
- New improved regex for discovering supported encoders in
- Bugfix related to OpenCV import:
- Bug fixed for OpenCV import comparison test failing with Legacy versions and throwing
ImportError. - Replaced
packaging.parse_versionwith more robustdistutils.version.
- Bug fixed for OpenCV import comparison test failing with Legacy versions and throwing
- Fixed bug with
create_blank_framethat throws error with gray frames:- Implemented automatic output channel correction inside
create_blank_framefunction. - Extended automatic output channel correction support to asyncio package.
- Implemented automatic output channel correction inside
- Implemented
RTSPprotocol validation as demuxer, since it's not a protocol but a demuxer. - Removed redundant
logger_handler,mkdir_safe,retrieve_best_interpolation,capPropIdhelper functions from asyncio package. Relatively imported helper functions from non-asyncio package. - Removed unused
aiohttpdependency. - Removed
asctimeformatting from logging.
- Regex bugs fixed:
- StreamGear:
- Fixed Multi-Bitrate HLS VOD streams:
- Re-implemented complete workflow for Multi-Bitrate HLS VOD streams.
- Extended support to both Single-Source and Real-time Frames Modes.
- Fixed bugs with audio-video mapping.
- Fixed master playlist not generating in output.
- Fixed improper
-seg_durationvalue resulting in broken pipeline. - Fixed expected aspect ratio not calculated correctly for additional streams.
- Fixed stream not terminating when provided input from external audio device.
- Fixed bugs related to external audio not mapped correctly in HLS format.
- Fixed OPUS audio fragments not supported with MP4 video in HLS.
- Fixed unsupported high audio bit-rate bug.
- Fixed Multi-Bitrate HLS VOD streams:
- Setup.py:
- Fixed
latest_versionreturning incorrect version for some PYPI packages. - Removed
latest_versionvariable support fromsimplejpeg. - Fixed
streamlinkonly supporting requests==2.25.1 on Windows. - Removed all redundant dependencies like
colorama,aiofiles,aiohttp. - Fixed typos in dependencies.
- Fixed
- Setup.cfg:
- Replaced dashes with underscores to remove warnings.
- CI:
- Replaced buggy
starlette.TestClientwithasync-asgi-testclientin WebGear_RTC - Removed
run()method and replaced with pure asyncio implementation. - Added new
async-asgi-testclientCI dependency. - Fixed
fake_picameraclass logger callingvidgearimports prematurely before importingpicameraclass in tests.- Implemented new
fake_picameraclass logger inherently withloggingmodule. - Moved
sys.modulelogic for faking toinit.py. - Added
__init__.pyto ignore in Codecov.
- Implemented new
- Fixed event loop closing prematurely while reloading:
- Internally disabled suspending event loop while reloading.
- Event Policy Loop patcher added for WebGear_RTC tests.
- Fixed
return_assets_pathpath bug. - Fixed typo in
TimeoutErrorexception import. - Fixed eventloop is already closed bug.
- Fixed eventloop bugs in Helper CI tests.
- Fixed several minor bugs related to new CI tests.
- Fixed bug in PiGear tests.
- Replaced buggy
- Docs:
- Fixed 404 page does not work outside the site root with mkdocs.
- Fixed markdown files comments not stripped when converted to HTML.
- Fixed missing heading in VideoGear.
- Typos in links and code comments fixed.
- Several minor tweaks and typos fixed.
- Fixed improper URLs/Hyperlinks and related typos.
- Fixed typos in usage examples.
- Fixed redundant properties in CSS.
- Fixed bugs in
mkdocs.yml. - Fixed docs contexts and typos.
- Fixed
stream.release()missing in docs. - Fixed several typos in code comments.
- Removed dead code from docs.
- Refactored Code and reduced redundancy.
- Fixed shutdown in
main.py. - Fixed logging comments.
New Contributors
v0.2.1 (2021-04-25)¶
New Features
- WebGear_RTC:
- A new API that is similar to WeGear API in all aspects but utilizes WebRTC standard instead of Motion JPEG for streaming.
- Now it is possible to share data and perform teleconferencing peer-to-peer, without requiring that the user install plugins or any other third-party software.
- Added a flexible backend for
aiortc- a python library for Web Real-Time Communication (WebRTC). - Integrated all functionality and parameters of WebGear into WebGear_RTC API.
- Implemented JSON Response with a WebRTC Peer Connection of Video Server.
- Added a internal
RTC_VideoServerserver on WebGear_RTC, a inherit-class to aiortc's VideoStreamTrack API. - New Standalone UI Default theme v0.1.1 for WebGear_RTC from scratch without using 3rd-party assets. (by @abhiTronix)
- New
custom.jsandcustom.cssfor custom responsive behavior. - Added WebRTC support to
custom.jsand ensured compatibility with WebGear_RTC. - Added example support for ICE framework and STUN protocol like WebRTC features to
custom.js. - Added
resize()function tocustom.jsto automatically adjustvideo&imgtags for smaller screens. - Added WebGear_RTC support in main.py for easy access through terminal using
--modeflag. - Integrated all WebGear_RTC enhancements to WebGear Themes.
- Added CI test for WebGear_RTC.
- Added complete docs for WebGear_RTC API.
- Added bare-minimum as well as advanced examples usage code.
- Added new theme images.
- Added Reference and FAQs.
- CamGear API:
- New Improved Pure-Python Multiple-Threaded Implementation:
- Optimized Threaded-Queue-Mode Performance. (PR by @bml1g12)
- Replaced regular
queue.fullchecks followed by sleep with implicit sleep with blockingqueue.put. - Replaced regular
queue.emptychecks followed by queue. - Replaced
nowait_getwith a blockingqueue.getnatural empty check. - Up-to 2x performance boost than previous implementations.
- New
THREAD_TIMEOUTattribute to prevent deadlocks:- Added support for
THREAD_TIMEOUTattribute to itsoptionsparameter. - Updated CI Tests and docs.
- Added support for
- New Improved Pure-Python Multiple-Threaded Implementation:
- WriteGear API:
- New more robust handling of default video-encoder in compression mode:
- Implemented auto-switching of default video-encoder automatically based on availability.
- API now selects Default encoder based on priority:
"libx264" > "libx265" > "libxvid" > "mpeg4". - Added
get_supported_vencodersHelper method to enumerate Supported Video Encoders. - Added common handler for
-c:vand-vcodecflags.
- New more robust handling of default video-encoder in compression mode:
- NetGear API:
- New Turbo-JPEG compression with simplejpeg
- Implemented JPEG compression algorithm for 4-5% performance boost at cost of minor loss in quality.
- Utilized
encode_jpeganddecode_jpegmethods to implement turbo-JPEG transcoding withsimplejpeg. - Added options to control JPEG frames quality, enable fastest dct, fast upsampling to boost performance.
- Added new
jpeg_compression,jpeg_compression_quality,jpeg_compression_fastdct,jpeg_compression_fastupsampleattributes. - Enabled fast dct by default with JPEG frames at 90%.
- Added Docs for JPEG Frame Compression.
- New Turbo-JPEG compression with simplejpeg
- WebGear API:
- New modular and flexible configuration for Custom Sources:
- Implemented more convenient approach for handling custom source configuration.
- Added new
configglobal variable for this new behavior. - Now None-type
sourceparameter value is allowed for defining own custom sources. - Added new Example case and Updates Docs for this feature.
- Added new CI Tests.
- New Browser UI Updates:
- New Standalone UI Default theme v0.1.0 for browser (by @abhiTronix)
- Completely rewritten theme from scratch with only local resources.
- New
custom.jsandcustom.cssfor custom responsive behavior. - New sample glow effect with css.
- New sample click to full-screen behavior with javascript.
- Removed all third-party theme dependencies.
- Update links to new github server
abhiTronix/vidgear-vitals - Updated docs with new theme's screenshots.
- Added
enable_infinite_framesattribute for enabling infinite frames. - Added New modular and flexible configuration for Custom Sources.
- Bumped WebGear Theme Version to v0.1.1.
- Updated Docs and CI tests.
- New modular and flexible configuration for Custom Sources:
- ScreenGear API:
- Implemented Improved Pure-Python Multiple-Threaded like CamGear.
- Added support for
THREAD_TIMEOUTattribute to itsoptionsparameter.
- StreamGear API:
- Enabled pseudo live-streaming flag
refor live content.
- Enabled pseudo live-streaming flag
- Docs:
- Added new native docs versioning to mkdocs-material.
- Added new examples and few visual tweaks.
- Updated Stylesheet for versioning.
- Added new DASH video chunks at https://github.com/abhiTronix/vidgear-docs-additionals for StreamGear and Stabilizer streams.
- Added open-sourced "Tears of Steel" * project Mango Teaser video chunks.
- Added open-sourced "Subspace Video Stabilization" http://web.cecs.pdx.edu/~fliu/project/subspace_stabilization/ video chunks.
- Added support for DASH Video Thumbnail preview in Clappr within
custom.js. - Added responsive clappr DASH player with bootstrap's
embed-responsive. - Added new permalink icon and slugify to toc.
- Added "back-to-top" button for easy navigation.
- Helper:
- New GitHub Mirror with latest Auto-built FFmpeg Static Binaries:
- Replaced new GitHub Mirror
abhiTronix/FFmpeg-Buildsin helper.py - New CI maintained Auto-built FFmpeg Static Binaries.
- Removed all 3rd-party and old links for better compatibility and Open-Source reliability.
- Updated Related CI tests.
- Replaced new GitHub Mirror
- Added auto-font-scaling for
create_blank_framemethod. - Added
c_nameparameter togenerate_webdataanddownload_webdatato specify class. - A more robust Implementation of Downloading Artifacts:
- Added a custom HTTP
TimeoutHTTPAdapterAdapter with a default timeout for all HTTP calls based on this GitHub comment. - Implemented http client and the
send()method to ensure that the default timeout is used if a timeout argument isn't provided. - Implemented Requests session
withblock to exit properly even if there are unhandled exceptions. - Add a retry strategy to custom
TimeoutHTTPAdapterAdapter with max 3 retries and sleep(backoff_factor=1) between failed requests.
- Added a custom HTTP
- Added
create_blank_framemethod to create bland frames with suitable text.
- New GitHub Mirror with latest Auto-built FFmpeg Static Binaries:
- [CI] Continuous Integration:
- Added new fake frame generated for fake
picameraclass with numpy. - Added new
create_bugparameter to fakepicameraclass for emulating various artificial bugs. - Added float/int instance check on
time_delayfor camgear and pigear. - Added
EXIT_CODEto new timeout implementation for pytests to upload codecov report when no timeout. - Added auxiliary classes to fake
picamerafor facilitating the emulation. - Added new CI tests for PiGear Class for testing on all platforms.
- Added
shutdown()function to gracefully terminate WebGear_RTC API. - Added new
coreutilsbrew dependency. - Added handler for variable check on exit and codecov upload.
- Added
is_runningflag to WebGear_RTC to exit safely.
- Added new fake frame generated for fake
- Setup:
- New automated latest version retriever for packages:
- Implemented new
latest_versionmethod to automatically retrieve latest version for packages. - Added Some Dependencies.
- Implemented new
- Added
simplejpegpackage for all platforms.
- New automated latest version retriever for packages:
Updates/Improvements
- Added exception for RunTimeErrors in NetGear CI tests.
- WriteGear: Critical file write access checking method:
- Added new
check_WriteAccessHelper method. - Implemented a new robust algorithm to check if given directory has write-access.
- Removed old behavior which gives irregular results.
- Added new
- Helper: Maintenance Updates
- Added workaround for Python bug.
- Added
safe_mkdirtocheck_WriteAccessto automatically create non-existential parent folder in path. - Extended
check_WriteAccessPatch to StreamGear. - Simplified
check_WriteAccessto handle Windows envs easily. - Updated FFmpeg Static Download URL for WriteGear.
- Implemented fallback option for auto-calculating bitrate from extracted audio sample-rate in
validate_audiomethod.
- Docs: General UI Updates
- Updated Meta tags for og site and twitter cards.
- Replaced Custom dark theme toggle with mkdocs-material's official Color palette toggle
- Added example for external audio input and creating segmented MP4 video in WriteGear FAQ.
- Added example for YouTube streaming with WriteGear.
- Removed custom
dark-material.jsandheader.htmlfiles from theme. - Added blogpost link for detailed information on Stabilizer Working.
- Updated
mkdocs.ymlandcustom.cssconfiguration. - Remove old hack to resize clappr DASH player with css.
- Updated Admonitions.
- Improved docs contexts.
- Updated CSS for version-selector-button.
- Adjusted files to match new themes.
- Updated welcome-bot message for typos.
- Removed redundant FAQs from NetGear Docs.
- Updated Assets Images.
- Updated spacing.
- CI:
- Removed unused
github.reffrom yaml. - Updated OpenCV Bash Script for Linux envs.
- Added
timeout-minutesflag to github-actions workflow. - Added
timeoutflag to pytest. - Replaced Threaded Gears with OpenCV VideoCapture API.
- Moved files and Removed redundant code.
- Replaced grayscale frames with color frames for WebGear tests.
- Updated pytest timeout value to 15mins.
- Removed
aiortcautomated install on Windows platform within setup.py. - Added new timeout logic to continue to run on external timeout for GitHub Actions Workflows.
- Removed unreliable old timeout solution from WebGear_RTC.
- Removed
timeout_decoratorandasyncio_timeoutdependencies for CI. - Removed WebGear_RTC API exception from codecov.
- Implemented new fake
picameraclass to CI utils for emulating RPi Camera-Module Real-time capabilities. - Implemented new
get_RTCPeer_payloadmethod to receive WebGear_RTC peer payload. - Removed PiGear from Codecov exceptions.
- Disable Frame Compression in few NetGear tests failing on frame matching.
- Updated NetGear CI tests to support new attributes
- Removed warnings and updated yaml
- Added
pytest.inito address multiple warnings. - Updated azure workflow condition syntax.
- Added
- Update
mikesettings for mkdocs versioning. - Updated codecov configurations.
- Minor logging and docs updates.
- Implemented pytest timeout for azure pipelines for macOS envs.
- Added
aiortcas external dependency inappveyor.yml. - Re-implemented WebGear_RTC improper offer-answer handshake in CI tests.
- WebGear_RTC CI Updated with
VideoTransformTrackto test stream play. - Implemented fake
AttributeErrorfor fake picamera class. - Updated PiGear CI tests to increment codecov.
- Update Tests docs and other minor tweaks to increase overall coverage.
- Enabled debugging and disabled exit 1 on error in azure pipeline.
- Removed redundant benchmark tests.
- Removed unused
- Helper: Added missing RTSP URL scheme to
is_valid_urlmethod. - NetGear_Async: Added fix for uvloop only supporting python>=3.7 legacies.
- Extended WebGear's Video-Handler scope to
https. - CI: Remove all redundant 32-bit Tests from Appveyor:
- Appveyor 32-bit Windows envs are actually running on 64-bit machines.
- More information here: https://help.appveyor.com/discussions/questions/20637-is-it-possible-to-force-running-tests-on-both-32-bit-and-64-bit-windows
- Setup: Removed
latest_versionbehavior from some packages. - NetGear_Async: Revised logic for handling uvloop for all platforms and legacies.
- Setup: Updated logic to install uvloop-"v0.14.0" for python-3.6 legacies.
- Removed any redundant code from webgear.
- StreamGear:
- Replaced Ordinary dict with Ordered Dict to use
move_to_endmethod. - Moved external audio input to output parameters dict.
- Added additional imports.
- Updated docs to reflect changes.
- Replaced Ordinary dict with Ordered Dict to use
- Numerous Updates to Readme and
mkdocs.yml. - Updated font to
FONT_HERSHEY_SCRIPT_COMPLEXand enabled logging in create_blank_frame. - Separated channels for downloading and storing theme files for WebGear and WebGear_RTC APIs.
- Removed
loggingcondition to always inform user in a event of FFmpeg binary download failure. - WebGear_RTC:
- Improved auto internal termination.
- More Performance updates through
setCodecPreferences. - Moved default Video RTC video launcher to
__offer.
- NetGear_Async: Added timeout to client in CI tests.
- Reimplemented and updated
changelog.md. - Updated code comments.
- Setup: Updated keywords and classifiers.
- Bumped codecov.
Breaking Updates/Changes
- WriteGear will automatically switch video encoder to default if specified encoder not found.
- WriteGear will throw
RuntimeErrorif no suitable default encoder found! - Removed format specific OpenCV decoding and encoding support for NetGear.
- Dropped support for
compression_format,compression_paramattributes from NetGear. - Non-existent parent folder in
output_filenamevalue will no longer be considered as invalid in StreamGear and WriteGear APIs. - None-type
sourceparameter value is allowed for WebGear and NetGear_Async for defining custom sources.
Bug-fixes
- CamGear: Fixed F821 undefined name 'queue' bug.
- NetGear_Async: Fixed
sourceparameter missingNoneas default value. - Fixed uvloops only supporting python>=3.7 in NetGear_Async.
- Helper:
- Fixed Zombie processes in
check_outputmethod due a hidden bug in python. For reference: https://bugs.python.org/issue37380 - Fixed regex in
validate_videomethod.
- Fixed Zombie processes in
- Docs:
- Invalid
site_urlbug patched in mkdocs.yml - Remove redundant mike theme support and its files.
- Fixed video not centered when DASH video in fullscreen mode with clappr.
- Fixed Incompatible new mkdocs-docs theme.
- Fixed missing hyperlinks.
- Invalid
- CI:
- Fixed NetGear Address bug
- Fixed bugs related to termination in WebGear_RTC.
- Fixed random CI test failures and code cleanup.
- Fixed string formating bug in Helper.py.
- Fixed F821 undefined name bugs in WebGear_RTC tests.
- NetGear_Async Tests fixes.
- Fixed F821 undefined name bugs.
- Fixed typo bugs in
main.py. - Fixed Relative import bug in PiGear.
- Fixed regex bug in warning filter.
- Fixed WebGear_RTC frozen threads on exit.
- Fixed bugs in codecov bash uploader setting for azure pipelines.
- Fixed False-positive
picameraimport due to improper sys.module settings. - Fixed Frozen Threads on exit in WebGear_RTC API.
- Fixed deploy error in
VidGear Docs Deployerworkflow - Fixed low timeout bug.
- Fixed bugs in PiGear tests.
- Patched F821 undefined name bug.
- StreamGear:
- Fixed StreamGear throwing
Picture size 0x0 is invalidbug with external audio. - Fixed default input framerate value getting discarded in Real-time Frame Mode.
- Fixed internal list-formatting bug.
- Fixed StreamGear throwing
- Fixed E999 SyntaxError bug in
main.py. - Fixed Typo in bash script.
- Fixed WebGear freeze on reloading bug.
- Fixed anomalies in
install_opencvbash script. - Helper: Bug Fixed in
download_ffmpeg_binariesmethod. - Helper: Fixed OSError bug in
check_WriteAccessmethod. - Helper: Fixed Input Audio stream bitrate test failing to detect audio-bitrate in certain videos with
validate_audiomethod. - Fixed bugs in
requestsmodule's function arguments. - Fixed None-type stream bug in WebGear.
- Fixed random crashes in WebGear.
- Fixed numerous CI test bugs.
- Fixed several typos.
New Contributors
v0.2.0 (2021-01-01)¶
New Features
- CamGear API:
- Support for various Live-Video-Streaming services:
- Added seamless support for live video streaming sites like Twitch, LiveStream, Dailymotion etc.
- Implemented flexible framework around
streamlinkpython library with easy control over parameters and quality. - Stream Mode can now automatically detects whether
sourcebelong to YouTube or elsewhere, and handles it with appropriate API.
- Re-implemented YouTube URLs Handler:
- Re-implemented CamGear's YouTube URLs Handler completely from scratch.
- New Robust Logic to flexibly handing video and video-audio streams.
- Intelligent stream selector for selecting best possible stream compatible with OpenCV.
- Added support for selecting stream qualities and parameters.
- Implemented new
get_supported_qualityhelper method for handling specified qualities - Fixed Live-Stream URLs not supported by OpenCV's Videocapture and its FFmpeg.
- Added additional
STREAM_QUALITYandSTREAM_PARAMSattributes.
- Support for various Live-Video-Streaming services:
- ScreenGear API:
- Multiple Backends Support:
- Added new multiple backend support with new
pyscreenshotpython library. - Made
pyscreenshotthe default API for ScreenGear, replacesmss. - Added new
backendparameter for this feature while retaining previous behavior. - Added native automated RGB to BGR conversion for default PIL backend.
- Kept support for old
mssfor old compatibility and multi-screen support. - Added native dimensional support for multi-screen.
- Added support all input from all multiple screens.
- Updated ScreenGear Docs.
- Updated ScreenGear CI tests.
- Added new multiple backend support with new
- Multiple Backends Support:
- StreamGear API:
- Changed default behaviour to support complete video transcoding.
- Added
-livestreamattribute to support live-streaming. - Added additional parameters for
-livestreamattribute functionality. - Updated StreamGear Tests.
- Updated StreamGear docs.
- Stabilizer Class:
- New Robust Error Handling with Blank Frames:
- Elegantly handles all crashes due to Empty/Blank/Dark frames.
- Stabilizer throws Warning with this new behavior instead of crashing.
- Updated CI test for this feature.
- New Robust Error Handling with Blank Frames:
- Docs:
- Automated Docs Versioning:
- Implemented Docs versioning through
mikeAPI. - Separate new workflow steps to handle different versions.
- Updated docs deploy worflow to support
releaseanddevbuilds. - Added automatic version extraction from github events.
- Added
version-select.jsandversion-select.cssfiles.
- Implemented Docs versioning through
- Toggleable Dark-White Docs Support:
- Toggle-button to easily switch dark, white and preferred theme.
- New Updated Assets for dark backgrounds
- New css, js files/content to implement this behavior.
- New material icons for button.
- Updated scheme to
slateinmkdocs.yml.
- New Theme and assets:
- New
purpletheme withdark-purpleaccent color. - New images assets with updated transparent background.
- Support for both dark and white theme.
- Increased
rebufferingGoalfor dash videos. - New updated custom 404 page for docs.
- New
- Issue and PR automated-bots changes
- New
need_info.ymlYAML Workflow. - New
needs-more-info.ymlRequest-Info template. - Replaced Request-Info templates.
- Improved PR and Issue welcome formatting.
- New
- Added custom HTML pages.
- Added
show_root_headingflag to disable headings in References. - Added new
inserAfterfunction to version-select.js. - Adjusted hue for dark-theme for better contrast.
- New usage examples and FAQs.
- Added
gitmojifor commits.
- Automated Docs Versioning:
- Continuous Integration:
- Maintenance Updates:
- Added support for new
VIDGEAR_LOGFILEenvironment variable in Travis CI. - Added missing CI tests.
- Added logging for helper functions.
- Added support for new
- Azure-Pipeline workflow for MacOS envs
- Added Azure-Pipeline Workflow for testing MacOS environment.
- Added codecov support.
- GitHub Actions workflow for Linux envs
- Added GitHub Action work-flow for testing Linux environment.
- New YAML to implement GitHub Action workflow for python 3.6, 3.7, 3,8 & 3.9 matrices.
- Added Upload coverage to Codecov GitHub Action workflow.
- New codecov-bash uploader for Azure Pipelines.
- Maintenance Updates:
- Logging:
- Added file support
- Added
VIDGEAR_LOGFILEenvironment variable to manually add file/dir path. - Reworked
logger_handler()Helper methods (in asyncio too). - Added new formatter and Filehandler for handling logger files.
- Added
- Added
restore_levelnamesauxiliary method for restoring logging levelnames.
- Added file support
- Added auto version extraction from package
version.pyin setup.py.
Updates/Improvements
- Added missing Lazy-pirate auto-reconnection support for Multi-Servers and Multi-Clients Mode in NetGear API.
- Added new FFmpeg test path to Bash-Script and updated README broken links.
- Asset Cleanup:
- Removed all third-party javascripts from projects.
- Linked all third-party javascript directly.
- Cleaned up necessary code from CSS and JS files.
- Removed any copyrighted material or links.
- Rewritten Docs from scratch:
- Improved complete docs formatting.
- Simplified language for easier understanding.
- Fixed
mkdocstringsshowing root headings. - Included all APIs methods to
mkdocstringsdocs. - Removed unnecessary information from docs.
- Corrected Spelling and typos.
- Fixed context and grammar.
- Removed
motivation.md. - Renamed many terms.
- Fixed hyper-links.
- Reformatted missing or improper information.
- Fixed context and spellings in Docs files.
- Simplified language for easy understanding.
- Updated image sizes for better visibility.
- Bash Script: Updated to Latest OpenCV Binaries version and related changes
- Docs: Moved version-selector to header and changed default to alias.
- Docs: Updated
deploy_docs.ymlfor releasing dev, stable, and release versions. - Re-implemented overridden material theme.
- Updated docs with all new additions and examples.
- CamGear: CI Stream Mode test updated.
- Updated ReadMe.md badges.
- Updated CI tests.
- Updated
setup.pywith new features. - Updated
contributing.mdandReadMe.md. - Updated OpenCV version to
4.5.1-devin bash scripts - Updated
changelog.md. - Moved WebGear API to Streaming Gears.
- Bumped Codecov.
- UI changes to version-select.js
- Docs: Retitle the versions and
mkdocs.ymlformatting updated. - Docs: Version Selector UI reworked and other minor changes.
Breaking Updates/Changes
-
y_tubeparameter renamed asstream_modein CamGear API! - Removed Travis support and
travis.ymldeleted.
Bug-fixes
- Fixed StreamGear API Limited Segments Bug
- Fixed Missing links in docs and bump up version.
- CI: Fixed Appveyor need newer VM image to support Python 3.9.x matrix.
- ScreenGear BugFix: Fixed Error Handling and updated CI Tests.
- Fixed improper
mkdocs.ymlvariables. - Fixed GStreamer plugin support in bash scripts.
- Fixed typos in YAMLs and docs.
- Docs: Fixed Docs Deployer YAML bug for CI envs.
- Fixed wrong import in YAML.
- Fixed visible hyperlink on hover in dark-toggle button.
- Docs: Deployer YAML bug fixed.
- Docs YAML: issue jimporter/mike#33 patched and fixed
fetch-depth=0. - Docs:
version-select.jsbug fixed. - Docs: UI Bugs Fixed.
- CI: Codecov bugfixes.
- Azure-Pipelines Codecov BugFixes.
- Fixed
version.jsonnot detecting properly inversion-select.js. - Fixed images not centered inside
<figure>tag. - Fixed Asset Colors.
- Fixed failing CI tests.
- Fixed Several logging bugs.
v0.1.9 (2020-08-31)¶
New Features
- StreamGear API:
- New API that automates transcoding workflow for generating Ultra-Low Latency, High-Quality, Dynamic & Adaptive Streaming Formats.
- Implemented multi-platform , standalone, highly extensible and flexible wrapper around FFmpeg for generating chunked-encoded media segments of the media, and easily accessing almost all of its parameters.
- API automatically transcodes videos/audio files & real-time frames into a sequence of multiple smaller chunks/segments and also creates a Manifest file.
- Added initial support for MPEG-DASH (Dynamic Adaptive Streaming over HTTP, ISO/IEC 23009-1).
- Constructed default behavior in StreamGear, for auto-creating a Primary Stream of same resolution and framerate as source.
- Added TQDM progress bar in non-debugged output for visual representation of internal processes.
- Implemented several internal methods for preprocessing FFmpeg and internal parameters for producing streams.
- Several standalone internal checks to ensure robust performance.
- New
terminate()function to terminate StremGear Safely. - New StreamGear Dual Modes of Operation:
- Implemented Single-Source and Real-time Frames like independent Transcoding Modes.
- Linked
-video_sourceattribute for activating these modes - Single-Source Mode, transcodes entire video/audio file (as opposed to frames by frame) into a sequence of multiple smaller segments for streaming
- Real-time Frames Mode, directly transcodes video-frames (as opposed to a entire file), into a sequence of multiple smaller segments for streaming
- Added separate functions,
stream()for Real-time Frame Mode andtranscode_source()for Single-Source Mode for easy transcoding. - Included auto-colorspace detection and RGB Mode like features (extracted from WriteGear), into StreamGear.
- New StreamGear Parameters:
- Developed several new parameters such as:
output: handles assets directoryformats: handles adaptive HTTP streaming format.custom_ffmpeg: handles custom FFmpeg location.stream_params: handles internal and FFmpeg parameter seamlessly.logging: turns logging on or off.
- New
stream_paramsparameter allows us to exploit almost all FFmpeg parameters and flexibly change its internal settings, and seamlessly generating high-quality streams with its attributes:-streams(list of dictionaries) for building additional streams with-resolution,-video_bitrate&-frameratelike sub-attributes.-audiofor specifying external audio.-video_sourcefor specifying Single-Source Mode source.-input_frameratefor handling input framerate in Real-time Frames Mode.-bppattribute for handling bits-per-pixels used to auto-calculate video-bitrate.-gopto manually specify GOP length.-ffmpeg_download_pathto handle custom FFmpeg download path on windows.-clear_prev_assetsto remove any previous copies of SteamGear Assets.
- Developed several new parameters such as:
- New StreamGear docs, MPEG-DASH demo, and recommended DASH players list:
- Added new StreamGear docs, usage examples, parameters, references, new FAQs.
- Added Several StreamGear usage examples w.r.t Mode of Operation.
- Implemented Clappr based on Shaka-Player, as Demo Player.
- Added Adaptive-dimensional behavior for Demo-player, purely in css.
- Hosted StreamGear generated DASH chunks on GitHub and served with
raw.githack.com. - Introduced variable quality level-selector plugin for Clapper Player.
- Provide various required javascripts and implemented additional functionality for player in
extra.js. - Recommended tested Online, Command-line and GUI Adaptive Stream players.
- Implemented separate FFmpeg installation doc for StreamGear API.
- Reduced
rebufferingGoalfor faster response.
- New StreamGear CI tests:
- Added IO and API initialization CI tests for its Modes.
- Added various mode Streaming check CI tests.
- NetGear_Async API:
- Added new
send_terminate_signalinternal method. - Added
WindowsSelectorEventLoopPolicy()for windows 3.8+ envs. - Moved Client auto-termination to separate method.
- Implemented graceful termination with
signalAPI on UNIX machines. - Added new
timeoutattribute for controlling Timeout in Connections. - Added missing termination optimizer (
linger=0) flag. - Several ZMQ Optimizer Flags added to boost performance.
- Added new
- WriteGear API:
- Added support for adding duplicate FFmpeg parameters to
output_params:- Added new
-clonesattribute inoutput_paramsparameter for handing this behavior.. - Support to pass FFmpeg parameters as list, while maintaining the exact order it was specified.
- Built support for
zmq.REQ/zmq.REPandzmq.PUB/zmq.SUBpatterns in this mode. - Added new CI tests debugging this behavior.
- Updated docs accordingly.
- Added new
- Added support for Networks URLs in Compression Mode:
output_filenameparameter supports Networks URLs in compression modes only- Added automated handling of non path/file Networks URLs as input.
- Implemented new
is_valid_urlhelper method to easily validate assigned URLs value. - Validates whether the given URL value has scheme/protocol supported by assigned/installed ffmpeg or not.
- WriteGear will throw
ValueErrorif-output_filenameis not supported. - Added related CI tests and docs.
- Added
disable_force_terminationattribute in WriteGear to disable force-termination.
- Added support for adding duplicate FFmpeg parameters to
- NetGear API:
- Added option to completely disable Native Frame-Compression:
- Checks if any Incorrect/Invalid value is assigned on
compression_formatattribute. - Completely disables Native Frame-Compression.
- Updated docs accordingly.
- Checks if any Incorrect/Invalid value is assigned on
- Added option to completely disable Native Frame-Compression:
- CamGear API:
- Added new and robust regex for identifying YouTube URLs.
- Moved
youtube_url_validatorto Helper.
- New
helper.pymethods:- Added
validate_videofunction to validate video_source. - Added
extract_timeExtract time from give string value. - Added
get_video_bitrateto calculate video birate from resolution, framerate, bits-per-pixels values. - Added
delete_safeto safely delete files of given extension. - Added
validate_audioto validate audio source. - Added new Helper CI tests.
- Added new
check_valid_mpdfunction to test MPD files validity. - Added
mpegdashlibrary to CI requirements.
- Added new
- Added
- Deployed New Docs Upgrades:
- Added new assets like images, gifs, custom scripts, javascripts fonts etc. for achieving better visual graphics in docs.
- Added
clappr.min.js,dash-shaka-playback.js,clappr-level-selector.min.jsthird-party javascripts locally. - Extended Overview docs Hyperlinks to include all major sub-pages (such as Usage Examples, Reference, FAQs etc.).
- Replaced GIF with interactive MPEG-DASH Video Example in Stabilizer Docs.
- Added new
pymdownx.keysto replace[Ctrl+C]/[⌘+C]formats. - Added new
custom.cssstylescripts variables for fluid animations in docs. - Overridden announce bar and added donation button.
- Lossless WEBP compressed all PNG assets for faster loading.
- Enabled lazy-loading for GIFS and Images for performance.
- Reimplemented Admonitions contexts and added new ones.
- Added StreamGear and its different modes Docs Assets.
- Added patch for images & unicodes for PiP flavored markdown in
setup.py.
- Added
Request InfoandWelcomeGitHub Apps to automate PR and issue workflow- Added new
config.ymlfor customizations. - Added various suitable configurations.
- Added new
- Added new
-clonesattribute to handle FFmpeg parameter clones in StreamGear and WriteGear API. - Added new Video-only and Audio-Only sources in bash script.
- Added new paths in bash script for storing StreamGear & WriteGear assets temporarily.
Updates/Improvements
- Added patch for
NotImplementedErrorin NetGear_Async API on Windows 3.8+ envs. - Check for valid
outputfile extension according toformatselected in StreamGear. - Completed migration to
travis.com. - Created new
temp_writetemp directory for WriteGear Assets in bash script. - Deleted old Redundant assets and added new ones.
- Employed
isortlibrary to sort and group imports in Vidgear APIs. - Enabled exception for
list, tuple, int, floatin WriteGear API'soutput_paramsdict. - Enabled missing support for frame-compression in its primary Receive Mode.
- Enforced pixel formats for streams.
- Improved check for valid system path detection in WriteGear API.
- Overrided
pytest-asynciofixture in NetGear_Async API. - Quoted Gear Headline for understanding each gear easily.
- Re-Positioned Gear's banner images in overview for better readability.
- Reduced redundant try-except blocks in NetGear Async.
- Reformatted and Simplified Docs context.
- Reimplemented
return_testvideo_pathCI function with variable streams. - Reimplemented
skip_loopin NetGear_Async to fixasyncio.CancelledError. - Reimplemented buggy audio handler in StreamGear.
- Reimplemented images with
<figure>and<figurecaption>like tags. - Removed Python < 3.8 condition from all CI tests.
- Removed or Grouped redundant code for increasing codecov.
- Removed redundant code and simplified algorithmic complexities in Gears.
- Replaced
;nbspwith;thinspand;emsp. - Replaced
IOErrorwith more reliableRuntimeErrorin StreamGear Pipelines. - Replaced
delwithpopin dicts. - Replaced all Netgear CI tests with more reliable
try-except-finalblocks. - Replaced simple lists with
pymdownx.tasklist. - Replaced subprocess
call()withrun()for better error handling inexecute_ffmpeg_cmdfunction. - Resized over-sized docs images.
- Simplified
delete_safeHelper function. - Simplified default audio-bitrate logic in StreamGear
- Updated CI tests and cleared redundant code from NetGear_Async API.
- Updated CI with new tests and Bumped Codecov.
- Updated Issue and PR templates.
- Updated Licenses for new files and shrink images dimensions.
- Updated Missing Helpful tips and increased logging.
- Updated PR guidelines for more clarity.
- Updated WebGear examples addresses from
0.0.0.0tolocalhost. - Updated WriteGear and StreamGear CI tests for not supporting temp directory.
- Updated
README.mdandchangelog.mdwith new changes. - Updated
check_outputand addedforce_retrieve_stderrsupport to**kwargsto extractstderroutput even on FFmpeg error. - Updated
dicts2argsto support internal repeatedcoreXFFmpeg parameters for StreamGear. - Updated
mkdocs.yml,changelog.mdandREADME.mdwith latest changes. - Updated
validate_audioHelper function will now retrieve audio-bitrate for validation. - Updated buggy
mpegdashdependency with custom dev fork for Windows machines. - Updated core parameters for audio handling.
- Updated logging for debugging selected eventloops in NetGear_Async API.
- Updated termination linger to zero at Server's end.
Breaking Updates/Changes
- Changed Webgear API default address to
localhostfor cross-compatibility between different platforms. - In Netgear_Async API,
sourcevalue can now be NoneType for a custom frame-generator at Server-end only. - Temp (such as
/tmpin linux) is now not a valid directory for WriteGear & StreamGear API outputs. - Moved vidgear docs assets (i.e images, gifs, javascripts and stylescripts) to
overridedirectory.
Bug-fixes
- Added workaround for system path not handle correctly.
- Fixed Bug: URL Audio format not being handled properly.
- Fixed Critical Bug in NetGear_Async throwing
ValueErrorwith None-type Source. - Fixed Critical StreamGear Bug: FFmpeg pipeline terminating prematurely in Single-Source Mode.
- Fixed Critical external audio handler bug: moved audio-input to input_parameters.
- Fixed Frozen-threads bug in CI tests.
- Fixed Mkdocs only accepting Relative paths.
- Fixed OSError in WriteGear's compression mode.
- Fixed StreamGear CI bugs for Windows and CI envs.
- Fixed Typos and Indentation bugs in NetGear API.
- Fixed ZMQ throwing error on termination if all max-tries exhausted.
- Fixed
NameErrorbug in NetGear API and CI tests. - Fixed
TimeoutErrorbug in NetGear_Async CI tests. - Fixed
get_valid_ffmpeg_paththrowingTypeErrorwith non-string values. - Fixed broken links in docs.
- Fixed critical duplicate logging bug.
- Fixed default
gopvalue not handle correctly. - Fixed handling of incorrect paths detection.
- Fixed incorrect definitions in NetGear_Async.
- Fixed left-over attribute bug in WriteGear.
- Fixed logic and indentation bugs in CI tests.
- Fixed logic for handling output parameters in WriteGear API.
- Fixed missing definitions and logic bug in StreamGear.
- Fixed missing import and incorrect CI definitions.
- Fixed missing source dimensions from
extract_resolutionsoutput in StreamGear API. - Fixed missing support for compression parameters in Multi-Clients Mode.
- Fixed round off error in FPS.
- Fixed several CI bugs and updated
extract_resolutionsmethod. - Fixed several bugs from CI Bidirectional Mode tests.
- Fixed several typos in docs usage examples.
- Fixed various
AttributeErrorwith wrong attribute names and definition in CI Helper functions. - Fixed wrong and missing definitions in docs.
- Fixed wrong logic for extracting OpenCV frames.
- Fixed wrong type bug in StreamGear API.
- Fixed wrong type error bug in WriteGear API.
- Fixed wrong variable assignments bug in WriteGear API.
- Fixes to CLI tests and missing docs imports.
- Many minor typos and wrong definitions.
v0.1.8 (2020-06-12)¶
New Features
- NetGear API:
- Multiple Clients support:
- Implemented support for handling any number of Clients simultaneously with a single Server in this mode.
- Added new
multiclient_modeattribute for enabling this mode easily. - Built support for
zmq.REQ/zmq.REPandzmq.PUB/zmq.SUBpatterns in this mode. - Implemented ability to receive data from all Client(s) along with frames with
zmq.REQ/zmq.REPpattern only. - Updated related CI tests
- Support for robust Lazy Pirate pattern(auto-reconnection) in NetGear API for both server and client ends:
- Implemented a algorithm where NetGear rather than doing a blocking receive, will now:
- Poll the socket and receive from it only when it's sure a reply has arrived.
- Attempt to reconnect, if no reply has arrived within a timeout period.
- Abandon the connection if there is still no reply after several requests.
- Implemented its default support for
REQ/REPandPAIRmessaging patterns internally. - Added new
max_retriesandrequest_timeout(in seconds) for handling polling. - Added
DONTWAITflag for interruption-free data receiving. - Both Server and Client can now reconnect even after a premature termination.
- Implemented a algorithm where NetGear rather than doing a blocking receive, will now:
- Performance Updates:
- Added default Frame Compression support for Bidirectional frame transmission in Bidirectional mode.
- Added support for
Reducer()function in Helper.py to aid reducing frame-size on-the-go for more performance. - Added small delay in
recv()function at client's end to reduce system load. - Reworked and Optimized NetGear termination, and also removed/changed redundant definitions and flags.
- Multiple Clients support:
- Docs: Migration to Mkdocs
- Implemented a beautiful, static documentation site based on MkDocs which will then be hosted on GitHub Pages.
- Crafted base mkdocs with third-party elegant & simplistic
mkdocs-materialtheme. - Implemented new
mkdocs.ymlfor Mkdocs with relevant data. - Added new
docsfolder to handle markdown pages and its assets. - Added new Markdown pages(
.md) to docs folder, which are carefully crafted documents - [x] based on previous Wiki's docs, and some completely new additions. - Added navigation under tabs for easily accessing each document.
- New Assets:
- Added new assets like gifs, images, custom scripts, favicons, site.webmanifest etc. for bringing standard and quality to docs visual design.
- Designed brand new logo and banner for VidGear Documents.
- Deployed all assets under separate Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License.
- Added Required Plugins and Extensions:
- Added support for all pymarkdown-extensions.
- Added support for some important
admonition,attr_list,codehilite,def_list,footnotes,meta, andtoclike Mkdocs extensions. - Enabled
search,minifyandgit-revision-date-localizedplugins support. - Added various VidGear's social links to yaml.
- Added support for
en(English) language.
- Auto-Build API Reference with
mkdocstrings:- Added support for
mkdocstringsplugin for auto-building each VidGear's API references. - Added python handler for parsing python source-code to
mkdocstrings.
- Added support for
- Auto-Deploy Docs with GitHub Actions:
- Implemented Automated Docs Deployment on gh-pages through GitHub Actions workflow.
- Added new workflow yaml with minimal configuration for automated docs deployment.
- Added all required python dependencies and environment for this workflow.
- Added
masterbranch on Ubuntu machine to build matrix.
Updates/Improvements
- Added in-built support for bidirectional frames(
NDarray) transfer in Bidirectional mode. - Added support for User-Defined compression params in Bidirectional frames transfer.
- Added workaround for
address already in usebug at client's end. - Unified Bidirectional and Multi-Clients mode for client's return data transmission.
- Replaced
ValueErrorwith more suitableRuntimeError. - Updated logging for better readability.
- Added CI test for Multi-Clients mode.
- Reformatted and grouped imports in VidGear.
- Added
ReducerHelper function CI test. - Added Reliability tests for both Server and Client end.
- Disabled reliable reconnection for Multi-Clients mode.
- Replaced
os.devnullwith suprocess's inbuilt function. - Updated README.md, Issue and PR templates with new information and updates.
- Moved
changelog.mdto/docsand updated contribution guidelines. - Improved source-code docs for compatibility with
mkdocstrings. - Added additional dependency
mkdocs-exclude, for excluding files from Mkdocs builds. - Updated license and compressed images/diagrams.
- Added new CI tests and Bumped Codecov.
- Changed YouTube video URL for CI tests to Creative Commons(CC) video.
- Removed redundant code.
Breaking Updates/Changes
- VidGear Docs moved to GitHub Pages, Now Available at https://abhitronix.github.io/vidgear.
- Removed
filterattribute fromoptionsparameter in NetGear API. - Removed
force_terminateparameter support from NetGear API. - Disabled additional data of datatype
numpy.ndarrayfor Server end in Bidirectional Mode.
Bug-fixes
- Fixed
'NoneType' object is not subscriptablebug. - Fixed bugs related to delayed termination in NetGear API.
- Reduced default
request_timeoutvalue to 4 and also lowered cut-off limit for the same. - Removed redundant ZMQ context termination and similar variables.
- Added missing VidGear installation in workflow.
- Excluded conflicting assets
README.mdfrom Mkdocs builds. - Fixed
patternvalue check bypassed if wrong value is assigned. - Fixed incorrect handling of additional data transferred in synchronous mode at both Server and Client end.
- Replaced Netgear CI test with more reliable
try-except-finalblocks. - Updated termination linger to zero at Server's end.
- Fixed
NameErrorbug in NetGear API. - Fixed missing support for compression parameters in Multi-Clients Mode.
- Fixed ZMQ throwing error on termination if all max-tries exhausted.
- Enabled missing support for frame compression in its primary receive mode.
- Fixed several bugs from CI Bidirectional Mode tests.
- Removed or Grouped redundant code for increasing codecov.
- Fixed Mkdocs only accepting Relative paths.
- Fixed broken links in docs.
- Fixed round off error in FPS.
- Many small typos and bugs fixes.
v0.1.7 (2020-04-29)¶
New Features
- WebGear API:
- Added a robust Live Video Server API that can transfer live video frames to any web browser on the network in real-time.
- Implemented a flexible asyncio wrapper around
starletteASGI Application Server. - Added seamless access to various starlette's Response classes, Routing tables, Static Files, Template engine(with Jinja2), etc.
- Added a special internal access to VideoGear API and all its parameters.
- Implemented a new Auto-Generation Work-flow to generate/download & thereby validate WebGear API data files from its GitHub server automatically.
- Added on-the-go dictionary parameter in WebGear to tweak performance, Route Tables and other internal properties easily.
- Added new simple & elegant default Bootstrap Cover Template for WebGear Server.
- Added
__main__.pyto directly run WebGear Server through the terminal. - Added new gif and related docs for WebGear API.
- Added and Updated various CI tests for this API.
- NetGear_Async API:
- Designed NetGear_Async asynchronous network API built upon ZeroMQ's asyncio API.
- Implemented support for state-of-the-art asyncio event loop
uvloopat its backend. - Achieved Unmatchable high-speed and lag-free video streaming over the network with minimal resource constraint.
- Added exclusive internal wrapper around VideoGear API for this API.
- Implemented complete server-client handling and options to use variable protocols/patterns for this API.
- Implemented support for all four ZeroMQ messaging patterns: i.e
zmq.PAIR,zmq.REQ/zmq.REP,zmq.PUB/zmq.SUB, andzmq.PUSH/zmq.PULL. - Implemented initial support for
tcpandipcprotocols. - Added new Coverage CI tests for NetGear_Async Network Gear.
- Added new Benchmark tests for benchmarking NetGear_Async against NetGear.
- Asynchronous Enhancements:
- Added
asynciopackage to for handling asynchronous APIs. - Moved WebGear API(webgear.py) to
asyncioand created separate asynciohelper.pyfor it. - Various Performance tweaks for Asyncio APIs with concurrency within a single thread.
- Moved
__main__.pyto asyncio for easier access to WebGear API through the terminal. - Updated
setup.pywith new dependencies and separated asyncio dependencies.
- Added
- General Enhancements:
- Added new highly-precise Threaded FPS class for accurate benchmarking with
time.perf_counterpython module. - Added a new Gitter community channel.
- Added a new Reducer function to reduce the frame size on-the-go.
- Add Flake8 tests to Travis CI to find undefined names. (PR by @cclauss)
- Added a new unified
logging handlerhelper function for vidgear.
- Added new highly-precise Threaded FPS class for accurate benchmarking with
Updates/Improvements
- Re-implemented and simplified logic for NetGear Async server-end.
- Added new dependencies for upcoming asyncio updates to
setup.py. - Added
retryfunction and replacedwgetwithcurlfor Linux test envs. - Bumped OpenCV to latest
4.2.0-devfor Linux test envs. - Updated YAML files to reflect new changes to different CI envs.
- Separated each API logger with a common helper method to avoid multiple copies.
- Limited Importing OpenCV API version check's scope to
helper.pyonly. - Implemented case for incorrect
color_spacevalue in ScreenGear API. - Removed old conflicting logging formatter with a common method and expanded logging.
- Improved and added
shutdownfunction for safely stopping frame producer threads in WebGear API. - Re-implemented and simplified all CI tests with maximum code-coverage in mind.
- Replaced old
mkdirfunction with newmkdir_safehelper function for creating directories safely. - Updated ReadMe.md with updated diagrams, gifs and information.
- Improve, structured and Simplified the Contribution Guidelines.
- Bundled CI requirements in a single command.(Suggested by @cclauss)
- Replaced line endings CRLF with LF endings.
- Added dos2unix for Travis OSX envs.
- Bumped Codecov to maximum.
Breaking Updates/Changes
Bug-fixes
- Fixed Major NetGear_Async bug where
__addressand__portare not set in async mode.(PR by @otter-in-a-suit) - Fixed Major PiGear Color-space Conversion logic bug.
- Workaround for
CAP_IMAGESerror in YouTube Mode. - Replaced incorrect
terminate()withjoin()in PiGear. - Removed
uvloopfor windows as still NOT yet supported. - Refactored Asynchronous Package name
asynctoasyncio, since it is used as Keyword in python>=3.7 (raises SyntaxError). - Fixed unfinished close of event loops bug in WebGear API.
- Fixed NameError in helper.py.
- Added fix for OpenCV installer failure on Linux test envs.
- Fixed undefined NameError in
helper.pycontext. (@cclauss) - Fixed incorrect logic while pulling frames from ScreenGear API.
- Fixed missing functions in
__main__.py. - Fixed Typos and definitions in docs.
- Added missing
camera_numparameter to VideoGear. - Added OpenSSL's [SSL: CERTIFICATE_VERIFY_FAILED] bug workaround for macOS envs.
- Removed
download_urlmeta from setup.py. - Removed PiGear from CI completely due to hardware emulation limitation.
- Removed VideoCapture benchmark tests for macOS envs.
- Removed trivial
__main__.pyfrom codecov. - Removed several redundant
try-catchloops. - Renamed
youtube_url_validationasyoutube_url_validator. - Several minor wrong/duplicate variable definitions and various bugs fixed.
- Fixed, Improved & removed many Redundant CI tests for various APIs.
New Contributors
v0.1.6 (2020-01-01)¶
New Features
- NetGear API:
- Added powerful ZMQ Authentication & Data Encryption features for NetGear API:
- Added exclusive
secure_modeparam for enabling it. - Added support for two most powerful
Stonehouse&IronhouseZMQ security mechanisms. - Added smart auth-certificates/key generation and validation features.
- Added exclusive
- Implemented Robust Multi-Servers support for NetGear API:
- Enables Multiple Servers messaging support with a single client.
- Added exclusive
multiserver_modeparam for enabling it. - Added support for
REQ/REP&PUB/SUBpatterns for this mode. - Added ability to send additional data of any datatype along with the frame in realtime in this mode.
- Introducing exclusive Bidirectional Mode for bidirectional data transmission:
- Added new
return_dataparameter torecv()function. - Added new
bidirectional_modeattribute for enabling this mode. - Added support for
PAIR&REQ/REPpatterns for this mode - Added support for sending data of any python datatype.
- Added support for
messageparameter for non-exclusive primary modes for this mode.
- Added new
- Implemented compression support with on-the-fly flexible frame encoding for the Server-end:
- Added initial support for
JPEG,PNG&BMPencoding formats . - Added exclusive options attribute
compression_format&compression_paramto tweak this feature. - Client-end will now decode frame automatically based on the encoding as well as support decoding flags.
- Added initial support for
- Added
force_terminateattribute flag for handling force socket termination at the Server-end if there's latency in the network. - Implemented new Publish/Subscribe(
zmq.PUB/zmq.SUB) pattern for seamless Live Streaming in NetGear API.
- Added powerful ZMQ Authentication & Data Encryption features for NetGear API:
- PiGear API:
- Added new threaded internal timing function for PiGear to handle any hardware failures/frozen threads.
- PiGear will not exit safely with
SystemErrorif Picamera ribbon cable is pulled out to save resources. - Added support for new user-defined
HWFAILURE_TIMEOUToptions attribute to alter timeout.
- VideoGear API:
- Added
framerateglobal variable and removed redundant function. - Added
CROP_N_ZOOMattribute in Videogear API for supporting Crop and Zoom stabilizer feature.
- Added
- WriteGear API:
- Added new
execute_ffmpeg_cmdfunction to pass a custom command to its FFmpeg pipeline.
- Added new
- Stabilizer class:
- Added new Crop and Zoom feature.
- Added
crop_n_zoomparam for enabling this feature.
- Added
- Updated docs.
- Added new Crop and Zoom feature.
- CI & Tests updates:
- Replaced python 3.5 matrices with latest python 3.8 matrices in Linux environment.
- Added full support for Codecov in all CI environments.
- Updated OpenCV to v4.2.0-pre(master branch).
- Added various Netgear API tests.
- Added initial Screengear API test.
- More test RTSP feeds added with better error handling in CamGear network test.
- Added tests for ZMQ authentication certificate generation.
- Added badge and Minor doc updates.
- Added VidGear's official native support for MacOS environments.
Updates/Improvements
- Replace
printlogging commands with python's logging module completely. - Implemented encapsulation for class functions and variables on all gears.
- Updated support for screen casting from multiple/all monitors in ScreenGear API.
- Updated ScreenGear API to use Threaded Queue Mode by default, thereby removed redundant
THREADED_QUEUE_MODEparam. - Updated bash script path to download test dataset in
$TMPDIRrather than$HOMEdirectory for downloading testdata. - Implemented better error handling of colorspace in various videocapture APIs.
- Updated bash scripts, Moved FFmpeg static binaries to
github.com. - Updated bash scripts, Added additional flag to support un-secure apt sources.
- CamGear API will now throw
RuntimeErrorif source provided is invalid. - Updated threaded Queue mode in CamGear API for more robust performance.
- Added new
camera_numto support multiple Picameras. - Moved thread exceptions to the main thread and then re-raised.
- Added alternate github mirror for FFmpeg static binaries auto-installation on windows oses.
- Added
colorlogpython module for presentable colored logging. - Replaced
tracebackwithsys.exc_info. - Overall APIs Code and Docs optimizations.
- Updated Code Readability and Wiki Docs.
- Updated ReadMe & Changelog with the latest changes.
- Updated Travis CI Tests with support for macOS environment.
- Reformatted & implemented necessary MacOS related changes and dependencies in
travis.yml.
Breaking Updates/Changes
- Python 2.7 legacy support dropped completely.
- Source-code Relicensed to Apache 2.0 License.
- Python 3+ are only supported legacies for installing v0.1.6 and above.
- Python 2.7 and 3.4 legacies support dropped from CI tests.
Bug-fixes
- Reimplemented
Pub/Subpattern for smoother performance on various networks. - Fixed Assertion error in CamGear API during colorspace manipulation.
- Fixed random freezing in
Secure Modeand several related performance updates - Fixed
multiserver_modenot working properly over some networks. - Fixed assigned Port address ignored bug (commit 073bca1).
- Fixed several wrong definition bugs from NetGear API(commit 8f7153c).
- Fixed unreliable dataset video URL(rehosted file on
github.com). - Disabled
overwrite_certfor client-end in NetGear API. - Disabled Universal Python wheel builds in
setup.cfgfile. - Removed duplicate code to import MSS(@BoboTiG) from ScreenGear API.
- Eliminated unused redundant code blocks from library.
- Fixed Code indentation in
setup.pyand updated new release information. - Fixed code definitions & Typos.
- Fixed several bugs related to
secure_mode&multiserver_modeModes. - Fixed various macOS environment bugs.
New Contributors
v0.1.5 (2019-07-24)¶
New Features
- Added new ScreenGear API, supports Live ScreenCasting.
- Added new NetGear API, aids real-time frame transfer through messaging(ZmQ) over network.
- Added new new Stabilizer Class, for minimum latency Video Stabilization with OpenCV.
- Added Option to use API's standalone.
- Added Option to use VideoGear API as internal wrapper around Stabilizer Class.
- Added new parameter
stabilizeto API, to enable or disable Video Stabilization. - Added support for
**optiondict attributes to update VidGear's video stabilizer parameters directly. - Added brand new logo and functional block diagram (
.svg) in readme.md - Added new pictures and GIFs for improving readme.md readability
- Added new
contributing.mdandchangelog.mdfor reference. - Added
collections.dequeimport in Threaded Queue Mode for performance consideration - Added new
install_opencv.shbash scripts for Travis cli, to handle OpenCV installation. - Added new Project Issue & PR Templates
- Added new Sponsor Button(
FUNDING.yml)
Updates/Improvements
- Updated New dependencies:
mss,pyzmqand rejected redundant ones. - Revamped and refreshed look for
readme.mdand added new badges. - Updated Releases Documentation completely.
- Updated CI tests for new changes
- Updated Code Documentation.
- Updated bash scripts and removed redundant information
- Updated
Youtube videoURL in tests - Completely Reformatted and Updated Wiki Docs with new changes.
Breaking Updates/Changes
- Implemented experimental Threaded Queue Mode(a.k.a Blocking Mode) for fast, synchronized, error-free multi-threading.
- Renamed bash script
pre-install.shtoprepare_dataset.sh- [x] downloads opensourced test datasets and static FFmpeg binaries for debugging. - Changed
scriptfolder location tobash/script. -
Python 3.4removed from Travis CI tests.
Bug-fixes
- Temporarily fixed Travis CI bug: Replaced
opencv-contrib-pythonwith OpenCV built from scratch as dependency. - Fixed CI Timeout Bug: Disable Threaded Queue Mode for CI Tests
- Fixes**
sys.stderr.close()throws ValueError bug: Replacedsys.close()withDEVNULL.close() - Fixed Youtube Live Stream bug that return
NonTypeframes in CamGear API. - Fixed
NoneTypeframes bug in PiGear class on initialization. - Fixed Wrong function definitions
- Removed
/xe2unicode bug from Stabilizer class. - Fixed
**output_paramsKeyError bug in WriteGear API - Fixed subprocess not closing properly on exit in WriteGear API.
- Fixed bugs in ScreenGear: Non-negative
monitorvalues - Fixed missing import, typos, wrong variable definitions
- Removed redundant hack from
setup.py - Fixed Minor YouTube playback Test CI Bug
- Fixed new Twitter Intent
- Fixed bug in bash script that not working properly due to changes at server end.
v0.1.4 (2019-05-11)¶
New Features
- Added new WriteGear API: for enabling lossless video encoding and compression(built around FFmpeg and OpenCV Video Writer)
- Added YouTube Mode for direct Video Pipelining from YouTube in CamGear API
- Added new
y_tubeto access YouTube Mode in CamGear API. - Added flexible Output file Compression control capabilities in compression-mode(WriteGear).
- Added
-output_dimensionsspecial parameter to WriteGear API. - Added new
helper.pyto handle special helper functions. - Added feature to auto-download and configure FFmpeg Static binaries(if not found) on Windows platforms.
- Added
-input_frameratespecial parameter to WriteGear class to change/control output constant framerate in compression mode(WriteGear). - Added new Direct Video colorspace Conversion capabilities in CamGear and PiGear API.
- Added new
framerateclass variable for CamGear API, to retrieve input framerate. - Added new parameter
backend- [x] changes the backend of CamGear's API - Added automatic required prerequisites installation ability, when installation from source.
- Added Travis CI Complete Integration for Linux-based Testing for VidGear.
- Added and configured
travis.yml - Added Appveyor CI Complete Integration for Windows-based Testing in VidGear.
- Added and configured new
appveyor.yml - Added new bash script
pre-install.shto download opensourced test datasets and static FFmpeg binaries for debugging. - Added several new Tests(including Benchmarking Tests) for each API for testing with
pytest. - Added license to code docs.
- Added
Say Thank you!badge toReadme.md.
Updates/Improvements
- Removed redundant dependencies
- Updated
youtube-dlas a dependency, as required bypafy's backend. - Updated common VideoGear API with new parameter.
- Update robust algorithm to auto-detect FFmpeg executables and test them, if failed, auto fallback to OpenCV's VideoWriter API.
- Improved system previously installed OpenCV detection in setup.py.
- Updated setup.py with hack to remove bullets from pypi description.
- Updated Code Documentation
- Reformatted & Modernized readme.md with new badges.
- Reformatted and Updated Wiki Docs.
Breaking Updates/Changes
- Removed
-heightand-widthparameter from CamGear API. - Replaced dependency
opencv-pythonwithopencv-contrib-pythoncompletely
Bug-fixes
- Windows Cross-Platform fix: replaced dependency
oswithplatformin setup.py. - Fixed Bug: Arises due to spaces in input
**options/**output_paramdictionary keys. - Fixed several wrong/missing variable & function definitions.
- Fixed code uneven indentation.
- Fixed several typos in docs.
v0.1.3 (2019-04-07)¶
Bug-fixes
- Patched Major PiGear Bug: Incorrect import of PiRGBArray function in PiGear Class
- Several Fixes for backend
picameraAPI handling during frame capture(PiGear) - Fixed missing frame variable initialization.
- Fixed minor typos
v0.1.2 (2019-03-27)¶
New Features
- Added easy Source manipulation feature in CamGear API, to control features like
resolution, brightness, framerate etc. - Added new
**optionparameter to CamGear API, provides the flexibility to manipulate input stream directly. - Added new parameters for Camgear API for time delay and logging.
- Added new Logo to readme.md
- Added new Wiki Documentation.
Updates/Improvements
- Reformatted readme.md.
- Updated Wiki Docs with new changes.
Bug-fixes
- Improved Error Handling in CamGear & PiGear API.
- Fixed minor typos in docs.
Pull Requests
- PR #4
v0.1.1 (2019-03-24)¶
New Features
- Release ViGear binaries on the Python Package Index (PyPI)
- Added new and configured
setup.py&setup.cfg
Bug-fixes
- Fixed PEP bugs: added and configured properly
__init__.pyin each folder - Fixed PEP bugs: improved code Indentation
- Fixed wrong imports: replaced
distutils.corewithsetuptools - Fixed readme.md
v0.1.0 (2019-03-17)¶
New Features
- Initial Release
- Converted my
imutilsPR into Python Project. - Renamed conventions and reformatted complete source-code from scratch.
- Added support for both python 2.7 and 3 legacies
- Added new multi-threaded CamGear, PiGear, and VideoGear APIs
- Added multi-platform compatibility
- Added robust & flexible control over the source in PiGear API.