After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 783459 - adaptivedemux: Answer duration queries for live streams
adaptivedemux: Answer duration queries for live streams
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-06 06:27 UTC by Edward Hervey
Modified: 2018-11-03 14:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
adaptivedemux: Answer duration queries for live streams (1.26 KB, patch)
2017-06-06 06:27 UTC, Edward Hervey
none Details | Review

Description Edward Hervey 2017-06-06 06:27:50 UTC
See patch
Comment 1 Edward Hervey 2017-06-06 06:27:56 UTC
Created attachment 353239 [details] [review]
adaptivedemux: Answer duration queries for live streams

Some adaptive implementations might only return the actual duration
for live streams via the _get_live_seek_range() method.
Comment 2 Thiago Sousa Santos 2017-06-07 03:32:04 UTC
Review of attachment 353239 [details] [review]:

Looks good
Comment 3 Edward Hervey 2017-06-07 06:01:48 UTC
Comment on attachment 353239 [details] [review]
adaptivedemux: Answer duration queries for live streams

After further discussions in #gstreamer, it seems this might not be the right behaviour.

Since the stream is live, the duration is not defined and therefore one shouldn't return a duration for live streams.

That being said, when one does a duration query on the pipeline, the pipeline still returns a (bogus) duration via the basesink (which returns the current segment.duration).

Maybe we should remove the duration field from the outgoing segments ?
Comment 4 Sebastian Dröge (slomo) 2017-06-07 06:48:45 UTC
(In reply to Edward Hervey from comment #3)
> Comment on attachment 353239 [details] [review] [review]
> adaptivedemux: Answer duration queries for live streams
> 
> After further discussions in #gstreamer, it seems this might not be the
> right behaviour.
> 
> Since the stream is live, the duration is not defined and therefore one
> shouldn't return a duration for live streams.

Is that so? Maybe should be documented in docs/design :)

> That being said, when one does a duration query on the pipeline, the
> pipeline still returns a (bogus) duration via the basesink (which returns
> the current segment.duration).
> 
> Maybe we should remove the duration field from the outgoing segments ?

Yes (for live streams). Who sets it currently? adaptivedemux?
Comment 5 GStreamer system administrator 2018-11-03 14:09:27 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/566.