filesrc

filesrc — read from arbitrary point in a file

Synopsis




            GstFileSrc;


Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstBaseSrc
                     +----GstFileSrc

Implemented Interfaces

GstFileSrc implements GstURIHandler.

Properties


  "fd"                   gint                  : Read
  "location"             gchararray            : Read / Write
  "mmapsize"             gulong                : Read / Write
  "touch"                gboolean              : Read / Write

Description

Read data from a file in the local file system. The implementation is using mmap(2) to read chunks from the file in an efficient way.

Element Information

plugin coreelements
author Erik Walthinsen <omega@cse.ogi.edu>
class Source/File

Details

GstFileSrc

typedef struct _GstFileSrc GstFileSrc;

Opaque GstFileSrc structure.

Properties

The "fd" property

  "fd"                   gint                  : Read

File-descriptor for the file being mmap()d.

Allowed values: >= 0

Default value: 0


The "location" property

  "location"             gchararray            : Read / Write

Location of the file to read.

Default value: NULL


The "mmapsize" property

  "mmapsize"             gulong                : Read / Write

Size in bytes of mmap()d regions.


The "touch" property

  "touch"                gboolean              : Read / Write

Touch data to force disk read.

Default value: FALSE

See Also

GstFileSrc