<div dir="ltr">Finally I'm able to get correct offset from structures. The thing is, map the frame itself not the input buffer of the frame. So first call <span style="color:rgb(169,183,198);font-family:Menlo;font-size:9pt;background-color:rgb(255,255,255)">gst_video_frame_map </span><span style="font-size:9pt;background-color:rgb(255,255,255)"><font color="#000000" face="verdana, sans-serif">and than read out the GstVideoInfo and offsets. If you map frame->input_buffer only the offsets are </font></span><font face="georgia, serif"><span style="line-height:19.84px">uninitialized</span><span style="background-color:rgb(255,255,255)"><font color="#000000">.</font></span></font></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 1, 2016 at 11:46 AM, Miloš Selečéni <span dir="ltr"><<a href="mailto:milos.seleceni@comprimato.com" target="_blank">milos.seleceni@comprimato.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, currently I'm writing a Gstreamer plugin for enc/dec of JPEG2000 and I've a problem with data pointer I'm getting from mapped input buffer from currently handling frame in handle_frame callback. The input buffer I get from frame has some offset to raw data i need for encoding or decoding. It depends on preceding element enqued in pipeline which provide data for me e.g. I have h264 file decoded by avdec_h264 element. All mapped input buffers from handling frame have like 400 bit headers of zeros. I tried to readout some offsets info from GstMapInfo structure but without any success, offsets are zeros or values doesn't make sense to me. So my question is how can I get those offsets to raw data ? I also tired dump data with multifilesink to disk and those files were ok no headers just raw data I would like to get in handle_frame callback, which means that multifilesink has to get rid of those headers. thx for help<span class="HOEnZb"><font color="#888888"><br> <br clear="all"><div><br></div>-- <br><div><div dir="ltr"><i>Miloš Selečéni</i></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><i>Miloš Selečéni</i></div></div>
</div>