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 678531 - asfdemux: scan files saved from broadcast to report duration and support seeking
asfdemux: scan files saved from broadcast to report duration and support seeking
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
unspecified
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 678530 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-06-21 11:26 UTC by Bastien Nocera
Modified: 2018-11-03 15:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
unseekable ASF stream (1000.00 KB, application/octet-stream)
2012-06-21 11:27 UTC, Bastien Nocera
  Details
asfdemux: scan last packet to determine duration for files saved from broadcasts (6.30 KB, patch)
2013-03-17 12:33 UTC, Tim-Philipp Müller
none Details | Review

Description Bastien Nocera 2012-06-21 11:26:00 UTC
But MPlayer could seek in it.
Comment 1 Bastien Nocera 2012-06-21 11:27:27 UTC
Created attachment 216907 [details]
unseekable ASF stream
Comment 2 Tim-Philipp Müller 2013-03-17 12:32:16 UTC
That's because it's captured from a broadcast, and the header says it's unseekable too, and of course there's no index either.

We need to calculate the number of packets based on the file size, and then scan to the end to figure out the duration based on the timestamps in the last packets. And then we can hopefully do some basic seeking based on that (or even better, implement seeking by doing a bisect/scan, but first things first).
Comment 3 Tim-Philipp Müller 2013-03-17 12:33:58 UTC
Created attachment 239061 [details] [review]
asfdemux: scan last packet to determine duration for files saved from broadcasts

Tentative patch, should approximate duration hopefully. Only tested with this file though, and not much point trying to implement seeking on a 1.5 second clip..
Comment 4 Sebastian Dröge (slomo) 2013-07-25 12:44:01 UTC
What should happen with this?
Comment 5 Edward Hervey 2018-05-12 06:27:30 UTC
*** Bug 678530 has been marked as a duplicate of this bug. ***
Comment 6 Edward Hervey 2018-05-12 06:28:27 UTC
Still valid and patch could be revisited.
Comment 7 GStreamer system administrator 2018-11-03 15:34:17 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-ugly/issues/4.