Gstreamer 笔记

//合成
audiomixer 

gst-launch-1.0 audiomixer name=mix ! audioconvert ! lamemp3enc ! filesink location=/home/chianyu/media/mix-style.mp3 filesrc location=/home/chianyu/media/333.mp3 ! mad ! queue ! mix. filesrc location=/home/chianyu/media/style.mp3 ! mad ! queue ! mix.

//合成发送到服务器
gst-launch-1.0 audiomixer name=mix ! audioconvert ! lamemp3enc ! tcpclientsink port=3000 filesrc location=/home/chianyu/media/333.mp3 ! mad ! queue ! mix. filesrc location=/home/chianyu/media/style.mp3 ! mad ! queue ! mix.



//切换音轨
 playbin
playback-tutorial-1.c


// 提取音轨
matroskademux

gst-launch-1.0 filesrc location=/home/chianyu/media/111.mkv ! matroskademux name=m m.audio_0 ! queue ! vorbisdec ! audioconvert ! lamemp3enc ! filesink location=channel1.mp3 m.audio_1 ! queue ! vorbisdec ! audioconvert ! lamemp3enc ! filesink location=channel2.mp3 

你可能感兴趣的:(Gstreamer 笔记)