[gst-devel] seeking with audio and video doesn't work
Thomas Holzmann
holzi1 at gmx.at
Fri Aug 24 11:33:36 CEST 2007
Hello,
Only with the search flag GST_SEEK_FLAG_KEY_UNIT my application doesn't
freeze completely any more. It only freezes a few seconds and then
continues playing but on the same position the video was before seeking
and not on the Position I wanted to seek to.
And once again, does soeone has a hint for me?
Thomas
Thomas Holzmann wrote:
> Hello,
>
> I've created a pipeline to get audio and video of a video file into my
> application with appsink. First I only focused on video and seeking
> worked fine. But now I've also added audio elements to get also audio in
> my application and since then seeking doesn't work any more. My
> application freezes if I try to seek.
>
> Playing works ok, although audio becomes too late if I play some time...
>
> The pipeline looks something like this:
> uridecodebin uri=file:///dummy/uri/dummy.avi name=decode decode. !
> videorate ! ffmpegcolorspace ! appsink decode. ! audioconvert !
> audioresample ! appsink
>
> And I'm seeking with this command:
> gst_element_seek_simple( file_decode_, GST_FORMAT_TIME,
> GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT, seek_pos )
>
> I've also tried it with other seek flags but with no success.
>
> Does maybe someone has an advice for me?
>
> Thanks.
> Thomas
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
More information about the gstreamer-devel
mailing list