osssrc

osssrc

Properties

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

Types and Values

struct GstOssSrc

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GstObject
            ╰── GstElement
                ╰── GstBaseSrc
                    ╰── GstPushSrc
                        ╰── GstAudioBaseSrc
                            ╰── GstAudioSrc
                                ╰── GstOssSrc

Implemented Interfaces

GstOssSrc implements GstImplementsInterface and GstMixer.

Description

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

Example pipelines

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

Synopsis

Element Information

plugin

ossaudio

author

Erik Walthinsen <omega@cse.ogi.edu>, Wim Taymans <wim@fluendo.com>

class

Source/Audio

Element Pads

name

src

direction

source

presence

always

details

audio/x-raw, format=(string){ S16LE, U16LE, S8, U8 }, layout=(string)interleaved, rate=(int)[ 1, 2147483647 ], channels=(int)1

audio/x-raw, format=(string){ S16LE, U16LE, S8, U8 }, layout=(string)interleaved, rate=(int)[ 1, 2147483647 ], channels=(int)2, channel-mask=(bitmask)0x0000000000000003

Functions

Types and Values

struct GstOssSrc

struct GstOssSrc;

Property Details

The “device” property

  “device”                   gchar *

OSS device (usually /dev/dspN).

Flags: Read / Write

Default value: "/dev/dsp"


The “device-name” property

  “device-name”              gchar *

Human-readable name of the sound device.

Flags: Read

Default value: ""