Stream jumps to the beginning when seeking

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

Stream jumps to the beginning when seeking

Xinheng
Hey,

I encounter this weird phenomenon when playing hls stream: when I do the seeking, the stream jumps to the beginning and after less than one second, it jumps to its correct place.

I'm doubting that when seeking, the player always searches the first chunk (chunk 0) and then searches the chunk (eg. chunk 10) which corresponds the seeking place. I don't know if I am right but could you guys give me some explanations or solutions to eliminate this phenomenon? Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Stream jumps to the beginning when seeking

Sebastian Dröge-3
On Wed, 2016-11-02 at 02:28 -0700, silver wrote:

> Hey,
>
> I encounter this weird phenomenon when playing hls stream: when I do the
> seeking, the stream jumps to the beginning and after less than one second,
> it jumps to its correct place.
>
> I'm doubting that when seeking, the player always searches the first chunk
> (chunk 0) and then searches the chunk (eg. chunk 10) which corresponds the
> seeking place. I don't know if I am right but could you guys give me some
> explanations or solutions to eliminate this phenomenon? Thank you.
Which version of GStreamer, what stream?


Usually you will see the first frame of the fragment it seeked to until
buffering has finished. That's because that is the first frame that is
decoded, and it's being shown by the sink until it goes to PLAYING.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment