<div dir="ltr">You have to consider the GstVideoCropMeta attached to the buffer.<div>See this: <a href="https://github.com/sreerenjb/gst-checksumsink/blob/master/gstchecksumsink.c#L338">https://github.com/sreerenjb/gst-checksumsink/blob/master/gstchecksumsink.c#L338</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 22, 2016 at 3:12 PM, Thornton, Keith <span dir="ltr"><<a href="mailto:keith.thornton@zeiss.com" target="_blank">keith.thornton@zeiss.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is probably an alignment problem. Your stepsize is probably 1088 long because it must be divisible by 16.<br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: gstreamer-devel [mailto:<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org">gstreamer-devel-bounces@lists.freedesktop.org</a>] Im Auftrag von Thomas Scheuermann<br>
Gesendet: Montag, 22. Februar 2016 13:42<br>
An: <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
Betreff: Plane address mismatch of vaapi video buffer<br>
<div class="HOEnZb"><div class="h5"><br>
Hi all,<br>
<br>
I use a pipeline which which uses vaapidecode and vaapipostproc for a video and the frames are delivered to appsink. I keep the NV12 format.<br>
Outside the pipeline I get the sample from where I want to access the video frame. I use the following code to get access:<br>
<br>
buffer = gst_sample_get_buffer(_sample); caps = gst_sample_get_caps(_sample); gst_video_frame_map(&frame, &vinfo, buffer, GST_MAP_READ)<br>
<br>
Now I should be able to access the video planes via frame.data[0] for the Y plane and frame.data[1] for the UV plane.<br>
<br>
This works for a video with e.g. 1280x720. But if I use a video of<br>
1920x1080 the Y plane is still correct but the UV plane is shifted for some lines and starts later as in data[1].<br>
<br>
The strides should be in<br>
vinfo.stride[0]<br>
vinfo.stride[1]<br>
<br>
but they also dont match.<br>
<br>
How can I get the correct addresses of the planes?<br>
Do I have to set something special if I use a VAAPI generetad buffer?<br>
How do I get the correct stride of the planes?<br>
<br>
I use GStreamer 1.4.5 at the moment.<br>
<br>
Regards,<br>
<br>
Thomas<br>
This message is subject to the following terms and conditions: MAIL DISCLAIMER<<a href="http://www.barco.com/en/maildisclaimer" rel="noreferrer" target="_blank">http://www.barco.com/en/maildisclaimer</a>><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Regards,<br><br>Sreerenj Balachandran<br>Intel Open Source Technology Center</div>
</div>