Muxing two tcpclientsrc sources to rtmp server
Chuck Crisler
ccrisler at mutualink.net
Thu Jul 17 11:55:44 PDT 2014
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.
On Thu, Jul 17, 2014 at 12:49 PM, soylent <soylent.tv at gmail.com> wrote:
> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140717/eb3dbe25/attachment.html>
More information about the gstreamer-devel
mailing list