abhiTronix / vidgear

A High-performance cross-platform Video Processing Python framework powerpacked with unique trailblazing features :fire:
https://abhitronix.github.io/vidgear
Apache License 2.0
3.37k stars 253 forks source link

[Proposal]: Make `simplejpeg` an Optional Dependency in WebGear API #407

Open abhiTronix opened 4 months ago

abhiTronix commented 4 months ago

Issue guidelines

Issue Checklist

Describe your Idea

Modify the WebGear API to make simplejpeg an optional dependency. Instead of throwing an error when simplejpeg is not available, the API should disable or discard performance-enhancing features related to frame compression.

Use Cases

Currently, the WebGear API utilizes simplejpeg to compress frames before sending them as multipart JPEG encoded messages. This proposal suggests making simplejpeg a soft dependency, meaning that the WebGear API will still function without it by disabling or discarding the performance-enhancing features related to frame compression when simplejpeg is not installed. This ensures broader compatibility and flexibility in different environments without sacrificing core functionality.

Any other Relevant Information?

No response