oss4src

oss4src — Capture from a sound card via OSS version 4

Synopsis

struct              GstOss4Source;

Properties

  "device"                   gchar*                : Read / Write
  "device-name"              gchar*                : Read

Description

This element lets you record sound using the Open Sound System (OSS) version 4.

Example pipelines

gst-launch -v oss4src ! queue ! audioconvert ! vorbisenc ! oggmux ! filesink location=mymusic.ogg
will record sound from your sound card using OSS4 and encode it to an Ogg/Vorbis file (this will only work if your mixer settings are right and the right inputs areenabled etc.)

Synopsis

Element Information

plugin

oss4

author

Tim-Philipp Müller <tim centricular net>

class

Source/Audio

Element Pads

name

src

direction

source

presence

always

details

audio/x-alaw, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ]

audio/x-mulaw, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ]

audio/x-raw-int, width=(int)32, depth=(int)32, signed=(boolean)true, endianness=(int)1234, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ]

audio/x-raw-int, width=(int)32, depth=(int){ 32, 24 }, signed=(boolean)true, endianness=(int)4321, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ]

audio/x-raw-int, width=(int){ 32, 24 }, depth=(int)24, signed=(boolean)true, endianness=(int)1234, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ]

audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean){ false, true }, endianness=(int){ 1234, 4321 }, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ]

audio/x-raw-int, width=(int)8, depth=(int)8, signed=(boolean){ true, false }, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ]

Details

struct GstOss4Source

struct GstOss4Source {
  GstAudioSrc     audiosrc;

  gchar         * device;             /* NULL if none was set      */
  gchar         * open_device;        /* the device we opened      */
  gchar         * device_name;        /* set if the device is open */
  gint            fd;                 /* -1 if not open            */
  gint            bytes_per_sample;

  GstCaps       * probed_caps;

  /* property probe interface */
  GList         * property_probe_list;

  /* mixer interface */
  GList         * tracks;
  gboolean        tracks_static;  /* FALSE if the list of inputs may change */
};

Property Details

The "device" property

  "device"                   gchar*                : Read / Write

OSS4 device (e.g. /dev/oss/hdaudio0/pcm0 or /dev/dspN) (NULL = use first available device).

Default value: NULL


The "device-name" property

  "device-name"              gchar*                : Read

Human-readable name of the sound device.

Default value: NULL