[Bug 709826] mpegtsmux: performance issue
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Jul 21 04:31:09 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=709826
GStreamer | gst-plugins-bad | git
--- Comment #9 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2014-07-21 11:31:02 UTC ---
> I wanted to avoid the memcpy of payload, since there is no need to read/write
> the actual payload data. However, we do need to allocate memory for the
> headers, and that means we need to make a buffer that contains multiple
> memories. As far as I can tell, the data in a GstBuffer containing multiple
> GstMemory will be merged (i.e deep copied) if it is mapped, which means that
> the need to memcpy the payload is not removed. Please tell me that I'm ignorant
> and wrong in this regard!
This is somewhat correct. If someone does gst_buffer_map() on a buffer with
multiple memories, those may have to be merged into one contiguous chunk of
memory. However, it will depend on the next element whether it does
gst_buffer_map() or gst_memory_map() for all individual memories. Elements such
as filesink or udpsink should be able to write the memories individually using
scatter/gather type API without merging the memories.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list