osssrc

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

Example pipelines

 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.)

Hierarchy

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

Factory details

Authors: – Erik Walthinsen , Wim Taymans

Classification:Source/Audio

Rank – secondary

Plugin – ossaudio

Package – GStreamer Good Plug-ins

Pad Templates

src

audio/x-raw:
         format: { S16LE, U16LE, S8, U8 }
         layout: interleaved
           rate: [ 1, 2147483647 ]
       channels: 1
audio/x-raw:
         format: { S16LE, U16LE, S8, U8 }
         layout: interleaved
           rate: [ 1, 2147483647 ]
       channels: 2
   channel-mask: 0x0000000000000003

Presencealways

Directionsrc

Object typeGstPad


Properties

device

“device” gchararray

OSS device (usually /dev/dspN)

Flags : Read / Write

Default value : /dev/dsp


device-name

“device-name” gchararray

Human-readable name of the sound device

Flags : Read


The results of the search are