Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Example GStreamer Pipelines

428 bytes added, 10:16, 31 December 2013
m
Loopback: Audio
=== Loopback: Audio ===
For setting the ALSA channels and amplification correctly see [http://www.igep.es/index.php?option=com_kunena&Itemid=97&func=view&catid=58&id=276&limit=6&limitstart=12#3912 this] link.
<br>
In order to have access to the alsasrc and alsasink plugins perform a 'apt-get install gstreamer0.10-alsa' on the igep board.
<br>
<pre>mv /etc/asound.conf /etc/asound.conf.orig
</pre>
to move the ALSA configuration file out of the way.
=== Loopback: Audio+Video ===
I also used these pipelines:<br>
On host:
<pre>gst-launch-0.10 filesrc location=DownUnder.mp3 ! mad ! audioconvert ! audio/x-raw-int,channels=1,depth=16,width=16,\
rate=44100 ! rtpL16pay ! udpsink host=192.168.2.8 port=5000
</pre>
On target:
<pre>gst-launch-0.10 udpsrc port=5000 ! “application/x-rtp, media=(string)audio, clock-rate=44100, width=16, height=16, \
encoding-name=(string)L16,encoding-params=(string)1, channels=(int)1, channel-position=(int)1, payload=(int)96” ! \
gstrtpjitterbuffer do-lost=true ! rtpL16depay ! audioconvert ! alsasink sync=false
</pre>
 
And if you want to multicast your stream to multiple computers try this one:
 
On host:
<pre>gst-launch filesrc location=DownUnder.mp3 ! mad ! audioconvert ! audio/x-raw-int,channels=1,depth=16,width=16, \
rate=44100 ! rtpL16pay ! udpsink host=224.0.0.15 port=5000
</pre>
 
On multiple targets:
<pre>gst-launch-0.10 udpsrc port=5000 ! "application/x-rtp,media=(string)audio, clock-rate=(int)44100, width=16, height=16,\
encoding-name=(string)L16, encoding-params=(string)1, channels=(int)1, channel-positions=(int)1, payload=(int)96" ! \
gstrtpjitterbuffer do-lost=true ! rtpL16depay ! audioconvert ! alsasink sync=false
</pre>
*gst-launch -v filesrc location=sample.aac ! TIAuddec1 codecName=aachedec engineName=codecServer ! dmaiperf ! alsasink sync=false
 [[Category:DMAI_GStreamer_Plug-InGstreamer]] [[Category:GstreamerSoftware applications]]
4,199
edits