How to play raw data with gstreamer?

290 views Asked by At

I want to play /dev/urandom using gst-launch-1.0, just as I can do it with aplay:

aplay /dev/urandom

How to do this?

1

There are 1 answers

0
Florian Zwoch On BEST ANSWER

For a quick start try using this:

gst-launch-1.0 filesrc location=/dev/urandom ! rawaudioparse ! alsasink

Of course you modify it to select a specific ALSA device, channel count, sample rate etc..