[gst-devel] Help fixing seeking in iVoribs/Tremor plugin
MICHAEL MCDONALD
MMCDONALD at aph.org
Tue Jul 31 16:45:00 CEST 2007
I've found out what is going on, but I'm not sure why. If I try to seek to 5 seconds then it pauses 5 seconds, seek 10 seconds and it pauses 10 seconds. I think I must be setting a timestamp wrong somewhere. Here are the relevant parts of my pull loop function:
// Read Buffer
ret=ov_read(&ivorbisfile->vf,(char *)GST_BUFFER_DATA(buf),
GST_BUFFERSIZE(buf),&link);
// Get Time Stamp
time=(GstClockTime)((GstClockTime)(ov_time_tell(&ivorbisfile->vf))*GST_MSECOND);
// Send Event
event=gst_event_new_new_segment(FALSE,1.0,GST_FORMAT_TIME,time,
GST_CLOCK_TIME_NONE,0);
gst_pad_push_event(ivorbisfile->srcpad,event);
// Send Buffer
GST_BUFFER_TIMESTAMP (buf)=time;
res=gst_pad_push(ivorbisfile->srcpad,buf);
Mike
>>> "Edward Hervey" <bilboed at gmail.com> 07/26/07 02:15PM >>>
Hi,
The reason could be that you're sending a buffer with a timestamp
which is 15-20s in the future. Check that the newsegment start
position AND the timestamp of your first buffer are close to each
other.
Edward
On 7/26/07, MICHAEL MCDONALD <MMCDONALD at aph.org> wrote:
> I'm trying to fix seeking in the iVorbis/Tremor plugin. Currently it is just disabled, so I've enabled and have it working, but there is a 15-20 second pause whenever I perform a seek. Then it will start playing at the new location. It stops on the function gst_pad_push and won't start playing again until that function returns.
>
> So does anyone have any ideas what might be going on??
>
> Thanks,
> Mike
>
>
> -------------------------------------------------------------------------
> 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
>
--
Edward Hervey
Multimedia editing developer
http://www.pitivi.org/
More information about the gstreamer-devel
mailing list