[gst-devel] Deinterlaced video seeking

Sebastian Dröge sebastian.droege at collabora.co.uk
Thu Apr 22 18:07:56 CEST 2010


On Thu, 2010-04-22 at 18:41 +0400, Gregory Petrosyan wrote:
> On Thu, Apr 22, 2010 at 6:20 PM, Edward Hervey <bilboed at gmail.com> wrote:
> > On Thu, 2010-04-22 at 17:33 +0400, Gregory Petrosyan wrote:
> >> I am building an application that should be able to show interlaced 25
> >> fps DV video as deinterlaced 50 fps one. I have no problem using
> >> "deinterlace" component, and gst-inspect shows that source pad of it
> >> gives me 50 fps video indeed.
> >>
> >> (Pipeline looks like "filesrc ! queue ! decodebin ! ffmpegcolorspace !
> >> deinterlace ! ffmpegcolorspace ! autovideosink").
> >>
> >> As I understand, "seek" travels up the pipeline, until it reaches
> >> "dvdec" or something like that, and it can only seek with 25-fps
> >> accuracy, because it knows nothing about deinterlacing. What should I
> >> do to be able to seek this video with 50-fps accuracy?
> >
> >  It should work with the GST_SEEK_FLAG_ACCURATE flag in your seek
> > event, which will make your seek nano-second accurate.
> 
> Thanks, I'll try that. However, last time I tried to use it, there was
> a pipeline error right after that (can't remember the exact text now).

Only very few elements implement accurate seeking properly. If you find
any problems with accurate seeking please file bugs.

> Also, does it work with _DEFAULT seeking mode (which I assume is frame-based)?

Only if the upstream elements support seeking in default format. I guess
I can add frame->time conversion in the deinterlace seek code though ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100422/4937a461/attachment.pgp>


More information about the gstreamer-devel mailing list