ffmpegcolorspace and buffer row stride
Josh Doe
josh at joshdoe.com
Tue Jan 8 08:33:02 PST 2013
On Tue, Jan 8, 2013 at 11:07 AM, Emmanuel Pacaud <emmanuel at gnome.org> wrote:
> [...]
> If I have understood correctly what happen, it's because the row stride
> of the incoming stream is 659, while ffmpegcolorspace expect a value
> multiple of 4 (660*494 = 326040).
>
> Is there an element in gstreamer that is able to convert the video
> buffers to the format ffmpegcolorspace expects ?
>
I don't believe so, as the requirement for row strides to be a multiple of
four bytes applies to most if not all caps. In other words, you'd have to
create new caps if you'd want to have an element to convert between the
two. I've always done this manually by copying rows into a buffer created
with gst_pad_alloc_buffer() (this has been removed in 1.0, replaced
by GstBufferPool and ALLOCATION query, which I don't understand since I
haven't ported my elements yet).
-Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130108/d3164f5a/attachment.html>
More information about the gstreamer-devel
mailing list