<div dir="ltr">Hi. I am new to gstreamer and trying to figure out a way to read buffers from a video source, modifying the buffers in some way (e.g. draw overlay information) and output the buffers to a video or filesink. I am using the gstreamer-rust bindings and have not been able to find a solution to this problem. Reading on the forums, I tried to add a pad probe at the source element of the following pipeline as a test by getting the static pad: <br><br>"videotestsrc ! autovideosink"<div><br></div><div>I am able to read the buffer from "probe_info.data" :</div><div><br></div><div><b>src_pad.add_probe(gst::PadProbeType::BUFFER, |_, probe_info| {</b></div><div><b>___READ BUFFER___</b></div><div><b>}</b></div><div><br></div><div>However, if I try to map the buffer as writable by using <b>gst::buffer::BufferRef::map_writeable()</b></div><div><b><br></b></div><div>it doesn't allow me to do so with the error "cannot borrow as mutable". At this point I am completely lost and unable to find an alternative to read and modify a buffer element through a pad probe. Any help or suggestion would be appreciated to help me overcome this.</div><div><br></div><div>Thanks,</div><div>Muhammad Hassan</div></div>