filesink

Write incoming data to a file in the local file system.

Example launch line

 gst-launch-1.0 v4l2src num-buffers=1 ! jpegenc ! filesink location=capture1.jpeg

Capture one frame from a v4l2 camera and save as jpeg image.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseSink
                    ╰──filesink

Implemented interfaces

Factory details

Authors: – Thomas Vander Stichele

Classification:Sink/File

Rank – primary

Plugin – coreelements

Package – GStreamer

Pad Templates

sink

ANY

Presencealways

Directionsink

Object typeGstPad


Properties

append

“append” gboolean

Append to an already existing file.

Flags : Read / Write

Default value : false


buffer-mode

“buffer-mode” File-sink-buffer-mode *

The buffering mode to use

Flags : Read / Write

Default value : default (-1)


buffer-size

“buffer-size” guint

Size of buffer in number of bytes for line or full buffer-mode

Flags : Read / Write

Default value : 65536


location

“location” gchararray

Location of the file to write

Flags : Read / Write

Default value : NULL


max-transient-error-timeout

“max-transient-error-timeout” gint

Retry up to this many ms on transient errors (currently EACCES)

Flags : Read / Write

Default value : 0


o-sync

“o-sync” gboolean

Open the file with O_SYNC for enabling synchronous IO

Flags : Read / Write

Default value : false


Named constants

File-sink-buffer-mode

File read buffering mode.

Members

default (-1) – Default buffering
full (0) – Fully buffered
line (1) – Line buffered (deprecated, like full)
unbuffered (2) – Unbuffered

The results of the search are