简体   繁体   中英

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 ?

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

将“ alsasink”替换为“ wavenc!filesink location = output.wav”?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM