[英]gstreamer pipeline to mix three audio source?
這兩個文件的混合:
gst-launch uridecodebin uri = file:///tmp/file1.mp3! 加法器名稱= m! autoaudiosink uridecodebin uri = file:///tmp/file2.mp3! 音頻轉換! 米
如何混合這3個文件?
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.
當然不是最好的方法。 但是,這是一個開始。
將“ alsasink”替換為“ wavenc!filesink location = output.wav”?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.