Gstvideocodecframe buffer data offsets

Miloš Selečéni milos.seleceni at comprimato.com
Tue Feb 2 05:35:31 PST 2016


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
gst_video_frame_map
and than read out the GstVideoInfo and offsets. If you map
frame->input_buffer only the offsets are uninitialized.

On Mon, Feb 1, 2016 at 11:46 AM, Miloš Selečéni <
milos.seleceni at comprimato.com> wrote:

> 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
>
>
> --
> *Miloš Selečéni*
>



-- 
*Miloš Selečéni*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160202/fd66e1f3/attachment.html>


More information about the gstreamer-devel mailing list