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 783435 - stream: Use stream duration as stream-stop if segment was not configured with a stop
stream: Use stream duration as stream-stop if segment was not configured with...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
unspecified
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-06-05 14:46 UTC by Thibault Saunier
Modified: 2017-10-05 16:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
stream: Use stream duration as stream-stpo if segment was not configured with a stop (1.20 KB, patch)
2017-06-05 14:46 UTC, Thibault Saunier
reviewed Details | Review
stream: Use stream duration as stream-stop if segment was not configured with a stop (1.20 KB, patch)
2017-06-05 19:42 UTC, Thibault Saunier
committed Details | Review

Description Thibault Saunier 2017-06-05 14:46:44 UTC
See commit message
Comment 1 Thibault Saunier 2017-06-05 14:46:49 UTC
Created attachment 353190 [details] [review]
stream: Use stream duration as stream-stpo if segment was not configured with a stop

Allowing client to know stream duration when no seeking happened.
Comment 2 Tim-Philipp Müller 2017-06-05 15:38:57 UTC
Comment on attachment 353190 [details] [review]
stream: Use stream duration as stream-stpo if segment was not configured with a stop

You can use gst_element_query_duration() directly.

The question is what happens with streams where the queried duration is not reliable because it relies on bitrate estimation (such as with VBR audio files, for example) - would that cause players or the server to cut them short if the initial estimate was shorter than the the actual duration?
Comment 3 Thibault Saunier 2017-06-05 16:13:57 UTC
(In reply to Tim-Philipp Müller from comment #2)
> Comment on attachment 353190 [details] [review] [review]
> stream: Use stream duration as stream-stpo if segment was not configured
> with a stop
> 
> You can use gst_element_query_duration() directly.

Looks like we are supposed to answer the configured stop to me (ie, after a seek it will return the duration of the seek). 

> The question is what happens with streams where the queried duration is not
> reliable because it relies on bitrate estimation (such as with VBR audio
> files, for example) - would that cause players or the server to cut them
> short if the initial estimate was shorter than the the actual duration?

I made some tests and it looks like with GStreamer it would cut on the client (the jitterbuffers sends EOS based on the stream stop it seems) but it does not change anything on gst-rtsp-server fwics.

Not sure what we should do about that, what do you think?
Comment 4 Thibault Saunier 2017-06-05 19:42:39 UTC
Created attachment 353227 [details] [review]
stream: Use stream duration as stream-stop if segment was not configured with a stop

Allowing client to know stream duration when no seeking happened.
Comment 5 Thibault Saunier 2017-10-05 16:37:51 UTC
Attachment 353227 [details] pushed as 8b38aa9 - stream: Use stream duration as stream-stop if segment was not configured with a stop