Blame docs/plugins/html/gst-plugins-base-plugins-giosink.html

Packit 0652a1
Packit 0652a1
<html>
Packit 0652a1
<head>
Packit 0652a1
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Packit 0652a1
<title>giosink: GStreamer Base Plugins 1.0 Plugins Reference Manual</title>
Packit 0652a1
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
Packit 0652a1
<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Plugins Reference Manual">
Packit 0652a1
<link rel="up" href="ch01.html" title="gst-plugins-base Elements">
Packit 0652a1
<link rel="prev" href="gst-plugins-base-plugins-encodebin.html" title="encodebin">
Packit 0652a1
<link rel="next" href="gst-plugins-base-plugins-giosrc.html" title="giosrc">
Packit 0652a1
<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
Packit 0652a1
<link rel="stylesheet" href="style.css" type="text/css">
Packit 0652a1
</head>
Packit 0652a1
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
Packit 0652a1
Packit 0652a1
Packit 0652a1
Top  | 
Packit 0652a1
                  Description  | 
Packit 0652a1
                  Object Hierarchy  | 
Packit 0652a1
                  Implemented Interfaces  | 
Packit 0652a1
                  Properties
Packit 0652a1
Packit 0652a1
Home
Packit 0652a1
Up
Packit 0652a1
Prev
Packit 0652a1
Next
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

giosink

Packit 0652a1

giosink

Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

Properties

Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
GFile *
Packit 0652a1
file
Packit 0652a1
Read / Write
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
gchar *
Packit 0652a1
location
Packit 0652a1
Read / Write
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

Types and Values

Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
struct
Packit 0652a1
GstGioSink
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

Object Hierarchy

Packit 0652a1
    GObject
Packit 0652a1
    ╰── GInitiallyUnowned
Packit 0652a1
        ╰── GstObject
Packit 0652a1
            ╰── GstElement
Packit 0652a1
                ╰── GstBaseSink
Packit 0652a1
                    ╰── GstGioBaseSink
Packit 0652a1
                        ╰── GstGioSink
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

Implemented Interfaces

Packit 0652a1

Packit 0652a1
GstGioSink implements
Packit 0652a1
 GstURIHandler.

Packit 0652a1
Packit 0652a1
Packit 0652a1

Description

Packit 0652a1

This plugin writes incoming data to a local or remote location specified

Packit 0652a1
by an URI. This location can be specified using any protocol supported by
Packit 0652a1
the GIO library or it's VFS backends. Common protocols are 'file', 'ftp',
Packit 0652a1
or 'smb'.

Packit 0652a1

If the URI or GFile already exists giosink will post a message of

Packit 0652a1
type GST_MESSAGE_ELEMENT with name "file-exists" on the bus. The message
Packit 0652a1
also contains the GFile and the corresponding URI.
Packit 0652a1
Applications can use the "file-exists" message to notify the user about
Packit 0652a1
the problem and to set a different target location or to remove the
Packit 0652a1
existing file. Note that right after the "file-exists" message a normal
Packit 0652a1
error message is posted on the bus which should be ignored if "file-exists"
Packit 0652a1
is handled by the application, for example by calling
Packit 0652a1
gst_bus_set_flushing(bus, TRUE) after the "file-exists" message was
Packit 0652a1
received and gst_bus_set_flushing(bus, FALSE) after the problem is
Packit 0652a1
resolved.

Packit 0652a1

Similar to the "file-exist" message a "not-mounted" message is posted

Packit 0652a1
on the bus if the target location is not mounted yet and needs to be
Packit 0652a1
mounted. This message can be used by application to mount the location
Packit 0652a1
and retry after the location was mounted successfully.

Packit 0652a1
Packit 0652a1

Example pipelines

Packit 0652a1
Packit 0652a1
  
Packit 0652a1
    
Packit 0652a1
      
Packit 0652a1
        
1
Packit 0652a1
        
gst-launch-1.0 -v filesrc location=input.xyz ! giosink location=file:///home/joe/out.xyz
Packit 0652a1
      
Packit 0652a1
    
Packit 0652a1
  
Packit 0652a1
Packit 0652a1
Packit 0652a1

Packit 0652a1
 The above pipeline will simply copy a local file. Instead of giosink,
Packit 0652a1
we could just as well have used the filesink element here.

Packit 0652a1
Packit 0652a1
  
Packit 0652a1
    
Packit 0652a1
      
Packit 0652a1
        
1
Packit 0652a1
        
gst-launch-1.0 -v uridecodebin uri=file:///path/to/audio.file ! audioconvert ! flacenc ! giosink location=smb://othercomputer/foo.flac
Packit 0652a1
      
Packit 0652a1
    
Packit 0652a1
  
Packit 0652a1
Packit 0652a1
Packit 0652a1

Packit 0652a1
 The above pipeline will re-encode an audio file into FLAC format and store
Packit 0652a1
it on a remote host using the Samba protocol.

Packit 0652a1
Packit 0652a1
  
Packit 0652a1
    
Packit 0652a1
      
Packit 0652a1
        
1
Packit 0652a1
        
gst-launch-1.0 -v audiotestsrc num-buffers=100 ! vorbisenc ! oggmux ! giosink location=file:///home/foo/bar.ogg
Packit 0652a1
      
Packit 0652a1
    
Packit 0652a1
  
Packit 0652a1
Packit 0652a1
Packit 0652a1

Packit 0652a1
 The above pipeline will encode a 440Hz sine wave to Ogg Vorbis and stores
Packit 0652a1
it in the home directory of user foo.

Packit 0652a1
Packit 0652a1
Packit 0652a1

Synopsis

Packit 0652a1
Packit 0652a1

Element Information

Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

plugin

Packit 0652a1
Packit 0652a1
            gio
Packit 0652a1
          
Packit 0652a1
Packit 0652a1
Packit 0652a1

author

Packit 0652a1
René Stadler <mail@renestadler.de>, Sebastian Dröge <sebastian.droege@collabora.co.uk>
Packit 0652a1
Packit 0652a1
Packit 0652a1

class

Packit 0652a1
Sink/File
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

Packit 0652a1
Packit 0652a1

Element Pads

Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

name

Packit 0652a1
sink
Packit 0652a1
Packit 0652a1
Packit 0652a1

direction

Packit 0652a1
sink
Packit 0652a1
Packit 0652a1
Packit 0652a1

presence

Packit 0652a1
always
Packit 0652a1
Packit 0652a1
Packit 0652a1

details

Packit 0652a1
ANY
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

Functions

Packit 0652a1

Packit 0652a1
Packit 0652a1
Packit 0652a1

Types and Values

Packit 0652a1
Packit 0652a1

struct GstGioSink

Packit 0652a1
struct GstGioSink;
Packit 0652a1

Opaque data structure.

Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

Property Details

Packit 0652a1
Packit 0652a1

The “file” property

Packit 0652a1
  “file”                     GFile *
Packit 0652a1

GFile to write to.

Packit 0652a1

Flags: Read / Write

Packit 0652a1
Packit 0652a1

Packit 0652a1
Packit 0652a1

The “location” property

Packit 0652a1
  “location”                 gchar *
Packit 0652a1

URI location to write to.

Packit 0652a1

Flags: Read / Write

Packit 0652a1

Default value: NULL

Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

See Also

Packit 0652a1

GstFileSink, GstGnomeVFSSink, GstGioSrc

Packit 0652a1
Packit 0652a1
Packit 0652a1
Packit 0652a1

Generated by GTK-Doc V1.28
Packit 0652a1
</body>
Packit 0652a1
</html>