GNOME Bugzilla – Bug 678531
asfdemux: scan files saved from broadcast to report duration and support seeking
Last modified: 2018-11-03 15:34:17 UTC
But MPlayer could seek in it.
Created attachment 216907 [details]
unseekable ASF stream
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).
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..
What should happen with this?
*** Bug 678530 has been marked as a duplicate of this bug. ***
Still valid and patch could be revisited.
-- 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.