Ravend
Ravend

Reputation: 131

gstreamer pipeline to mix three audio source?

This mixing of the two files:

gst-launch uridecodebin uri=file:///tmp/file1.mp3 ! adder name = m ! autoaudiosink uridecodebin uri=file:///tmp/file2.mp3 ! audioconvert ! m.

How to mix the 3 files ?

Upvotes: 2

Views: 1484

Answers (3)

Kyrylo Polezhaiev
Kyrylo Polezhaiev

Reputation: 1644

gst-launch-1.0 uridecodebin uri=file:///tmp/file1.mp3 ! audioconvert ! adder name = m ! audioconvert ! autoaudiosink \
               uridecodebin uri=file:///tmp/file2.mp3 ! audioconvert ! m. \
               uridecodebin uri=file:///tmp/file3.mp3 ! audioconvert ! m.

Upvotes: 2

txasatonga
txasatonga

Reputation: 419

gst-launch-0.10 adder name=mix ! alsasink filesrc location=file1.wav ! wavparse ! audioconvert ! mix. filesrc location=file2.wav ! wavparse ! audioconvert ! mix. filesrc location=file3.wav ! wavparse ! audioconvert ! mix.

Surely isn't the best way. But, is a little start.

Upvotes: 0

soupybionics
soupybionics

Reputation: 4386

replace "alsasink" with "wavenc ! filesink location= output.wav" ?

Upvotes: -1

Related Questions