jackersson / gstreamer-python

167 stars 52 forks source link

[Question] Change the buffer size #6

Open yuyou opened 4 years ago

yuyou commented 4 years ago

As per README, you can modify the buffer as

with map_gst_buffer(buffer, Gst.MapFlags.READ | Gst.MapFlags.WRITE) as mapped:

My question is: what if I want to increase the buffer size by appending some bytes from Python? Is it possible? If so, how to convert Python bytearray to C byte array, using Ctypes?

Thanks.

Best Regards,

Yu