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

[Question]: OPen multiple Same Camera, ValueError: Invalid source with no decodable audio or video stream provided. Aborting! #47

Closed GavinJIAW closed 3 months ago

GavinJIAW commented 3 months ago

Issue guidelines

Issue Checklist

Describe your Question

OPen multiple Same Camera, ValueError: Invalid source with no decodable audio or video stream provided. Aborting!

Terminal log output(Optional)

ValueError: Invalid source with no decodable audio or video stream provided. Aborting!

Python Code(Optional)

decoder = FFdecoder("0", frame_format="bgr24",custom_ffmpeg="./ffmpeg/bin", verbose=True,**ffparams).formulate()
decoder = FFdecoder("1", frame_format="bgr24",custom_ffmpeg="./ffmpeg/bin", verbose=True,**ffparams).formulate()
decoder = FFdecoder("3", frame_format="bgr24",custom_ffmpeg="./ffmpeg/bin", verbose=True,**ffparams).formulate()

DeFFcode Version

0.2.3

Python version

3.10

Operating System version

windows

Any other Relevant Information?

No response

abhiTronix commented 3 months ago

ValueError: Invalid source with no decodable audio or video stream provided. Aborting!

@GavinJIAW This error means that one of the source value is invalid, meaning there's no device at "0" or "1" or "3" index, check logs to get more insight. And it is perfectly fine to open multiple cameras, as long as your system allows it.