Skip to content

Conversation

@donrestarone
Copy link

No description provided.

@donrestarone donrestarone changed the title Update vilib.py - to include flag that allows simultaneous recording Update vilib.py - to include flag that allows simultaneous video recording w/ audio Mar 1, 2025
@donrestarone donrestarone marked this pull request as draft March 1, 2025 19:35
@donrestarone
Copy link
Author

need to fix:

FfmpegOutput.start() got an unexpected keyword argument 'quality'

Please check whether the camera is connected wellYou can use the "libcamea-hello" command to test the camera
start
Error on request:umber: 0 | ex, ey: 0, 0 | yrp: 0, 0, 0 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 335, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 324, in execute
    for data in application_iter:
  File "/usr/lib/python3/dist-packages/werkzeug/wsgi.py", line 500, in __next__
    return self._next()
           ^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/werkzeug/wrappers/response.py", line 50, in _iter_encoded
    for item in iterable:
  File "/usr/local/lib/python3.11/dist-packages/vilib/vilib.py", line 90, in gen
    frame = get_frame()
            ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/vilib/vilib.py", line 72, in get_frame
    return cv2.imencode('.jpg', Vilib.flask_img)[1].tobytes()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.11.0) :-1: error: (-5:Bad argument) in function 'imencode'
> Overload resolution failed:
>  - img is not a numpy array, neither a scalar
>  - Expected Ptr<cv::UMat> for argument 'img'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants