You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to draw some shapes on the video stream using PyCairo:
with map_gst_buffer(buffer, Gst.MapFlags.READ | Gst.MapFlags.WRITE) as mapped:
# code to draw shapes
However I get an error:
Writable array requested but buffer is not writeable
This error is raised in the map_gst_buffer function in gst_hacks.py
if flags & Gst.MapFlags.WRITE and _libgst.gst_mini_object_is_writable(ptr) == 0:
raise ValueError(
"Writable array requested but buffer is not writeable")
What am I missing here?
The text was updated successfully, but these errors were encountered:
I am trying to draw some shapes on the video stream using PyCairo:
However I get an error:
This error is raised in the
map_gst_buffer
function in gst_hacks.pyWhat am I missing here?
The text was updated successfully, but these errors were encountered: