Muxing two tcpclientsrc sources to rtmp server

soylent soylent.tv at gmail.com
Thu Jul 17 09:49:39 PDT 2014


Finally I got it :)

gst-launch-1.0 -v tcpclientsrc port=@VPORT ! videoparse format=15
width=@CWIDTH height=@CHEIGHT framerate=@RATE/1 ! queue max-size-buffers=0
max-size-time=0 ! videorate ! videoscale ! videoconvert ! video/x-raw,
format=I420, framerate=@RATE/1, width=@CWIDTH, height=@CHEIGHT !
videoconvert ! x264enc pass=cbr threads=0 bitrate=@VBITRATE tune=zerolatency
! flvmux streamable=true name=mux tcpclientsrc port=@APORT ! audioparse
raw-format=5 rate=@FREQ channels=@CHANNELS ! queue max-size-buffers=0
max-size-time=0 ! audioconvert ! audioresample ! audiorate ! lamemp3enc
bitrate=@ABITRATE ! mpegaudioparse ! mux. mux. ! queue max-size-buffers=0
max-size-time=0 ! rtmpsink location=@URL sync=false

I had to use "audioparse raw-format=5 rate=@FREQ channels=@CHANNELS" in the
audio part instead of "audio/x-raw, format=S16BE, channels=@CHANNELS,
rate=@FREQ".

The only thing i don't understand is why I have to convert the TCP parsed
raw rgb video in another format (I420) before x264enc. If I leave it in rgb
format I got audio but no video at all.
Writing my founds here was very useful :)
Thanks.
karl.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Muxing-two-tcpclientsrc-sources-to-rtmp-server-tp4667922p4667975.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list