help!! how to seek to offset with gst_element_seek function.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

help!! how to seek to offset with gst_element_seek function.

leeduhui
hi all

i extracted index data(key frame) in AVI  container and will be use this data for trick play

and AVI's index data has some information which key frame  offset in file(bytes) and size without time information.

how can I move to offset's index data with gst_element_seek function.

can i use this one??? help me 

gst_element_seek( gelement, 1,0, GST_FORMAT_BUFFERS, GST_SEEK_FLAG_FLUSH |GST_SEEK_FLAG_KEY_UNIT, GST_SEEK_TYPE_SET, 0x1000 , GST_SEEK_TYPE_SET, -1);

thx...

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: help!! how to seek to offset with gst_element_seek function.

Marco Ballesio
Hi,

On Mon, Feb 14, 2011 at 3:55 PM, Scott <[hidden email]> wrote:
> hi all
>
> i extracted index data(key frame) in AVI  container and will be use this
> data for trick play
> and AVI's index data has some information which key frame  offset in
> file(bytes) and size without time information.
> how can I move to offset's index data with gst_element_seek function.

can't you use "native" trick modes in GStreamer instead of your own
application-side implementation?

In case you haven't already seen the doc, give a look here for more details:

http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/part-trickmodes.txt?id=5b04e61a359463be7cc5bcc3404580b68e5185f1

Regards


> can i use this one??? help me
> gst_element_seek( gelement, 1,0, GST_FORMAT_BUFFERS, GST_SEEK_FLAG_FLUSH
> |GST_SEEK_FLAG_KEY_UNIT, GST_SEEK_TYPE_SET, 0x1000 , GST_SEEK_TYPE_SET, -1);
> thx...
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel