<div dir="ltr">H264 encoders are rather picky. They generally only want I420 on input. If you use gst-inspect x264enc you will see the caps that x264enc expects for input. It will fail if you try to supply anything else due to a 'not linked' error.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 17, 2014 at 12:49 PM, soylent <span dir="ltr"><<a href="mailto:soylent.tv@gmail.com" target="_blank">soylent.tv@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Finally I got it :)<br>
<br>
gst-launch-1.0 -v tcpclientsrc port=@VPORT ! videoparse format=15<br>
width=@CWIDTH height=@CHEIGHT framerate=@RATE/1 ! queue max-size-buffers=0<br>
max-size-time=0 ! videorate ! videoscale ! videoconvert ! video/x-raw,<br>
format=I420, framerate=@RATE/1, width=@CWIDTH, height=@CHEIGHT !<br>
videoconvert ! x264enc pass=cbr threads=0 bitrate=@VBITRATE tune=zerolatency<br>
! flvmux streamable=true name=mux tcpclientsrc port=@APORT ! audioparse<br>
raw-format=5 rate=@FREQ channels=@CHANNELS ! queue max-size-buffers=0<br>
max-size-time=0 ! audioconvert ! audioresample ! audiorate ! lamemp3enc<br>
bitrate=@ABITRATE ! mpegaudioparse ! mux. mux. ! queue max-size-buffers=0<br>
max-size-time=0 ! rtmpsink location=@URL sync=false<br>
<br>
I had to use "audioparse raw-format=5 rate=@FREQ channels=@CHANNELS" in the<br>
audio part instead of "audio/x-raw, format=S16BE, channels=@CHANNELS,<br>
rate=@FREQ".<br>
<br>
The only thing i don't understand is why I have to convert the TCP parsed<br>
raw rgb video in another format (I420) before x264enc. If I leave it in rgb<br>
format I got audio but no video at all.<br>
Writing my founds here was very useful :)<br>
Thanks.<br>
karl.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Muxing-two-tcpclientsrc-sources-to-rtmp-server-tp4667922p4667975.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Muxing-two-tcpclientsrc-sources-to-rtmp-server-tp4667922p4667975.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>