abhiTronix / deffcode

A cross-platform High-performance FFmpeg based Real-time Video Frames Decoder in Pure Python 🎞️⚡
https://abhitronix.github.io/deffcode
Apache License 2.0
178 stars 3 forks source link

[Idea]: Similar to OpenCV, Index based Camera Device Capture #27

Closed abhiTronix closed 1 year ago

abhiTronix commented 2 years ago

Issue guidelines

Issue Checklist

Describe your Idea

Currently, DeFFcode users have to manually assign device name or its path using source parameter and the demuxer using source_demuxer parameter of the respective API for the given input device. And thereby makes this feature less user-friendly, and complicated for everyday user who might find it extremely difficult to replicate.

This issue will track the Index based Camera Device Capture feature, which implements Device Indexing (similar to OpenCV), where the user just have to assign device index as integer (-n to n-1th) in source parameter of DeFFcode APIs to directly access the given input device, thus making things much simpler.

Use Cases

The Index based Camera Device Capture feature implements Device Indexing (similar to OpenCV), where the user just have to assign device index as integer (-n to n-1th) in source parameter of DeFFcode APIs to directly access the given input device in few seconds.

This feature is much better than manually Identifying and Specifying Video Capture Device Name/Path and suitable Demuxer on different OS platforms, thus minimizing perceived complexity of decoding Live Feed Devices.

Any other Relevant Information?

No response

abhiTronix commented 1 year ago

Successfully resolved and merged in commit https://github.com/abhiTronix/deffcode/commit/589ece3b0731c287579b37e4c8a8d20937e20dc7