Closed abhiTronix closed 4 months ago
Attention: Patch coverage is 95.21739%
with 11 lines
in your changes missing coverage. Please review.
Project coverage is 93.85%. Comparing base (
20dec0a
) to head (c101402
).
Files | Patch % | Lines |
---|---|---|
vidgear/gears/netgear.py | 88.52% | 7 Missing :warning: |
vidgear/gears/streamgear.py | 98.05% | 3 Missing :warning: |
vidgear/gears/helper.py | 92.30% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Brief Description
This PR includes significant refactoring, documentation updates, and significant enhancements to the StreamGear, along with minor improvements to WriteGear, and NetGear APIs. It introduces safer process termination methods, improved parameter handling, and enhanced documentation for better user guidance. Additionally, it addresses several bugs and improves the overall maintainability and clarity of the codebase.
Key Changes
StreamGear API:
-vcodec copy
when using this mode.terminate()
method, introducingclose()
for safer process termination.-enable_force_termination
attribute for immediate FFmpeg process termination.-livestream
parameter to Real-time Frames Mode only.close()
methods for handling gracefully signal interruptions on different systems with device audio streams.WriteGear API:
NetGear API:
recv_handler
.msg_json
undefined when terminating context in therecv_handler
method.Helper Class:
extract_time
helper function regex to handle milliseconds.Setup
pyzmq
version to address installation issues (Fixes #399).Documentation:
-livestream
parameter in Single-Source Mode.terminate()
method in favor of the newclose()
method.terminate()
method andrgb_mode
parameter.-enable_force_termination
parameter.rgb_mode
parameter.rgb_mode
parameter in thestream()
method.-enable_force_termination
parameter.stream()
method andtranscode_source()
method.-streams
attribute of the StreamGear API.-disable_force_termination
parameter in WriteGear API.js_hook.py
.CI
close()
method instead of the deprecated terminate() method.kill=True
inclose()
in NetGear Tests.8
to8.44
sincetest_extract_time
function now supports floating point values.test_secure_mode
NetGear test:"127.0.0.1"
address to allow common endpoint for connection."jpeg_compression":False
to disable frame compression, allowing frame to be the same while assertion.Maintenance:
Requirements / Checklist
Related Issue
385
396
399
Context
This Pull Request aims to introduce various improvements, refactoring efforts, and maintenance updates to the StreamGear API. The changes encompass bug fixes, documentation updates, feature enhancements, and code quality improvements, along with minor improvements to WriteGear, and NetGear APIs. It introduces safer process termination methods, improved parameter handling, and enhanced documentation for better user guidance. Additionally, it addresses several bugs and improves the overall maintainability and clarity of the codebase.
Types of changes