VidGear Stable v0.3.0
·
151 commits
to master
since this release
π Complete Release Notes can be found here
New Features β¨
- WriteGear:
- Added support for higher than 8-bit depth frames with datatypes of unsigned integer(
uint
) kind and element size2
. - Added new
-input_pixfmt
attribute tooutput_params
dictionary parameter for easily specifying custom input pixel-format. - Added support for Context Managers
__enter__()
and__exit__()
methods for proper handling of resources viawith
statement for allocating and releasing resources precisely. (Suggested by @sueskind)
- Added support for higher than 8-bit depth frames with datatypes of unsigned integer(
- StreamGear:
- Added support for Context Managers
__enter__()
and__exit__()
methods for proper handling of resources viawith
statement for allocating and releasing resources precisely. (Suggested by @sueskind)
- Added support for Context Managers
- WebGear:
- Added new
skip_generate_webdata
boolean optional attribute(False
by default) to completely disable Data-Files Auto-Generation WorkFlow.- This flag enables only
/video
route for disabled Data-Files Auto-Generation WorkFlow.
- This flag enables only
- Added new
- Helper:
- Added more robust implementation of validate_audio method with more robust regex pattern for extracting audio-samplerate.
- Added support for Linux video device path (such as
/dev/video0
).
- Maintenance:
- Logging current vidgear version when vidgear APIs are called, not at import.
- Current version can only be logged by VidGear APIs with the logging turned on (i.e.
logging=True
).
- Current version can only be logged by VidGear APIs with the logging turned on (i.e.
- Logging current vidgear version when vidgear APIs are called, not at import.
Updates/Improvements β‘οΈ
- WriteGear:
- Updated comments, description, and logging messages to more sensible and developer friendly.
- Renamed
startFFmpeg_Process
internal class method tostart_FFProcess
. - Renamed
Preprocess
internal class method toPreprocessFFParams
. - Renamed
startCV_Process
internal class method tostart_CVProcess
. - Renamed
initiate
internal class parameter toinitiate_process
. - Renamed
force_termination
internal class parameter toforced_termination
.
- Renamed
- Updated comments, description, and logging messages to more sensible and developer friendly.
- Helper:
- Updated
validate_audio
method with improved and more robust regex patterns for identifying audio bitrate in ay audio file.
- Updated
- Setup.py:
- Replaced
distutils.version.LooseVersion
withpkg_resources.parse_version
.
- Replaced
- Maintenance:
- Replaced depreciated
LooseVersion
withparse_version
. - Updated
Retry
package to be imported fromrequests.adapters
.
- Replaced depreciated
- Bash Scripts:
- Updated FFmpeg Static Binaries links to latest date/version tag to
12-07-2022
.
- Updated FFmpeg Static Binaries links to latest date/version tag to
Breaking Updates/Changes π₯
- WriteGear:
- π£ Renamed
output_filename
string parameter tooutput
. - π£ Renamed
cmd
parameter inexecute_ffmpeg_cmd()
class method to more sensiblecommand
. - π£
ValueError
will be raised if datatype of input frames mismatches.
- π£ Renamed
Bug-fixes π
- Camgear:
- Fixed
CamGear.read()
blocked unnecessarily. - Fixed deadlock on termination.
- Fixed
- ScreenGear:
- Fixed
ScreenGear.read()
blocked during startup.- π¬ During startup,
ScreenGear.read()
doesn't checks if queue is empty before continuing.
- π¬ During startup,
- Fixed
- WriteGear:
- Fixed gstpipeline_mode not activating when wrongly assuming
output
value as valid path. - Fixed name 'compression' is not defined bug.
- Fixed gstpipeline_mode not activating when wrongly assuming
- Helper:
- Fixed
fltp
keyword in regex pattern causing non-ftlp streams to be not recognized. - Fixed response.headers returning
content-length
as Nonetype since it may not necessarily have the Content-Length header set.
- Fixed
- Setup:
- Pinned
pyzmq==24.0.1
working version.
- Pinned