GStreamer pre-record element - Overview

From RidgeRun Developer Wiki



  Index Next: User Guide





By installing the GstPreRecord plugin you can install 2 elements, prerecord and prerecordsink. Both elements are used differently but with similar goals in terms of functionality and features available for user applications. You can read the User Guide section for extended elements functionality descriptions and use cases.

GstPreRecord

Factory Details:
  Rank                     none (0)
  Long-name                Pre-Record
  Klass                    Generic
  Description              Pre-records data continuously into a FIFO
  Author                   Melissa Montero <melissa.montero@ridgerun.com>

Plugin Details:
  Name                     prerecord
  Description              GStreamer Pre-Record plugin
  Filename                 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstprerecord.so
  Version                  1.5.0
  License                  Proprietary
  Source module            gst-prerecord
  Binary package           GstPreRecord
  Origin URL               http://www.ridgerun.com

GObject
 +----GInitiallyUnowned
       +----GstObject
             +----GstElement
                   +----GstBin
                         +----GstPreRecord

Implemented Interfaces:
  GstChildProxy

Pad Templates:
  SRC template: 'src%d'
    Availability: Sometimes
    Capabilities:
      ANY
  
  SINK template: 'sink%d'
    Availability: On request
    Capabilities:
      ANY

Element has no clocking capabilities.
Element has no URI handling capabilities.

Pads:
  none

Element Properties:
  name                : The name of the object
                        flags: readable, writable
                        String. Default: "prerecord0"
  parent              : The parent of the object
                        flags: readable, writable
                        Object of type "GstObject"
  async-handling      : The bin will handle Asynchronous state changes
                        flags: readable, writable
                        Boolean. Default: false
  message-forward     : Forwards all children messages
                        flags: readable, writable
                        Boolean. Default: false
  buf-time            : Minimum amount of data that will be buffered - may contain more (in ms, 0=disable)
                        flags: readable, writable
                        Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0 
  buffering           : Whether to keep buf-time buffers (buffering) or to pass the buffereddata downstream (debuffering)
                        flags: readable, writable
                        Boolean. Default: false
  on-key-frame        : Wait for a video key frame to start debuffering.
                        flags: readable, writable
                        Boolean. Default: false

Element Signals:
  "pad-added" :  void user_function (GstElement* object,
                                     GstPad* arg0,
                                     gpointer user_data);
  "pad-removed" :  void user_function (GstElement* object,
                                       GstPad* arg0,
                                       gpointer user_data);
  "no-more-pads" :  void user_function (GstElement* object,
                                        gpointer user_data);

GstPreRecordSink

Factory Details:
  Rank                     none (0)
  Long-name                PreRecordSink
  Klass                    Generic
  Description              Pre-records data continuously into a FIFO and creates an MP4 video file when trigger is enabled
  Author                   RidgeRun <support@ridgerun.com>

Plugin Details:
  Name                     prerecord
  Description              GStreamer Pre-Record plugin
  Filename                 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstprerecord.so
  Version                  1.5.0
  License                  Proprietary
  Source module            gst-prerecord
  Binary package           GstPreRecord
  Origin URL               http://www.ridgerun.com

GObject
 +----GInitiallyUnowned
       +----GstObject
             +----GstElement
                   +----GstBin
                         +----GstPreRecordSink

Implemented Interfaces:
  GstChildProxy

Pad Templates:
  SINK template: 'sink%d'
    Availability: On request
    Capabilities:
      ANY

Element has no clocking capabilities.
Element has no URI handling capabilities.

Pads:
  none

Element Properties:
  name                : The name of the object
                        flags: readable, writable
                        String. Default: "prerecordsink0"
  parent              : The parent of the object
                        flags: readable, writable
                        Object of type "GstObject"
  async-handling      : The bin will handle Asynchronous state changes
                        flags: readable, writable
                        Boolean. Default: false
  message-forward     : Forwards all children messages
                        flags: readable, writable
                        Boolean. Default: false
  buf-time            : Minimum amount of data that will be buffered - may contain more (in ms, 0=disable)
                        flags: readable, writable
                        Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0 
  max-buf-time        : Exact amount of data that will be buffered (in ms, 0=disable)
                        flags: readable, writable
                        Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0 
  post-rec-time       : Max time to record after buffering (in ms, 0=buf_time)
                        flags: readable, writable
                        Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0 
  buffering           : Whether to keep buf-time buffers (buffering) or to pass the buffereddata downstream (debuffering)
                        flags: readable, writable
                        Boolean. Default: true
  on-key-frame        : Wait for a video key frame to start debuffering.
                        flags: readable, writable
                        Boolean. Default: false
  location            : Format for the location of the files to write
                        flags: readable, writable
                        String. Default: null


  Index Next: User Guide