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 554055 - sparse file support
sparse file support
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 571200 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-27 09:02 UTC by Rang Glerry
Modified: 2018-11-03 12:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rang Glerry 2008-09-27 09:02:16 UTC
movies, which aren't complete (e.g. movies as torrent), are playable in totem. empty spaces should been automatically skipped to avoid long pauses.

Other information:
Comment 1 Bastien Nocera 2008-09-27 11:06:39 UTC
We don't really have any ways to do that, unless the bittorrent file uses sparse files. I'll move that to GStreamer for the filesrc to add support for that.
Comment 2 David Schleef 2008-09-27 19:01:42 UTC
Is there a library available that understands partially downloaded torrent files?
Comment 3 Bastien Nocera 2008-09-28 02:16:09 UTC
If the torrent downloader is written properly in the first place, it would probably use sparse files. I'm not sure there's any good ways to detect sparse files though...
Comment 4 Rang Glerry 2008-09-28 10:32:26 UTC
dragon player uses gstreamer. it automatically skips empty places on sparse files.
Comment 5 Tim-Philipp Müller 2010-11-02 15:36:39 UTC
*** Bug 571200 has been marked as a duplicate of this bug. ***
Comment 6 Sebastian Dröge (slomo) 2011-05-19 08:50:51 UTC
dragonplayer uses phonon, which doesn't use the GStreamer sources but kio afaik. Does someone know how to detect and use sparse files now? :) Seems that kio has something for this and Wikipedia talks about detection by comparing the output of du and ls ;) http://en.wikipedia.org/wiki/Sparse_file#Detection
Comment 7 Tim-Philipp Müller 2013-01-04 14:43:55 UTC
Possibly also of interest:

 man lseek

   Seeking file data and holes
       Since version 3.1, Linux supports the following additional values for whence:

       SEEK_DATA
              Adjust the file offset to the next location in the file greater than or equal to offset containing data.  If offset points to data, then the file offset is set to offset.

       SEEK_HOLE
              Adjust the file offset to the next hole in the file greater than or equal to offset.  If offset points into the middle of a hole, then the file offset is set to offset.  If there is no hole past offset, then the  file
              offset is adjusted to the end of the file (i.e., there is an implicit hole at the end of any file).

       In both of the above cases, lseek() fails if offset points past the end of the file.

       These  operations  allow  applications  to map holes in a sparsely allocated file.  This can be useful for applications such as file backup tools, which can save space when creating backups and preserve holes, if they have a
       mechanism for discovering holes.
Comment 8 GStreamer system administrator 2018-11-03 12:12:53 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/gstreamer/issues/8.