How to forward muxed video-audio to tcp sink

Bart Koppe bk at a-bort.org
Mon May 19 02:29:44 PDT 2014


Thanks, in the end I used the YUV stream that did not give that problem and
also was great quality!

gst-launch v4l2src device=/dev/video1 !
'video/x-raw-yuv,format=(fourcc)YUY2,width=1024,height=576,framerate=15/1'
! \
tee name=t_vid ! queue leaky=1 ! \
xvimagesink sync=false t_vid. ! queue ! \
videorate ! 'video/x-raw-yuv,framerate=20/1' ! queue leaky=1 !
ffmpegcolorspace ! x264enc ! h264parse ! \
mux. pulsesrc device="alsa_input.pci-0000_04_04.0.analog-stereo" !
'audio/x-raw-int,rate=44100,channels=2,depth=16' ! queue ! \
audioconvert ! voaacenc bitrate=65536 ! aacparse ! \
mux. mpegtsmux name=mux ! \
tee name=t ! \
queue ! filesink location=captured.mp4 t. ! \
queue ! tcpserversink host=192.168.22.170 port=5000


On Mon, May 19, 2014 at 9:27 AM, Sebastian Dröge
<sebastian at centricular.com>wrote:

> On So, 2014-05-11 at 15:41 +0200, Bart Koppe wrote:
> > Would there be a reason to choose matroskamux or webmux above mpegtsmux?
>
> Well, Matroska supports many more codecs but is not that well suited for
> streaming. In the end both should be fine for your use case, assuming
> that all the clients can handle them.
>
> > My audio dropping presumably had to do with the framerate (I used 30).
> Now
> > I set it to 15/1 and now i see the video stop a few mini-seconds every
> > second or so..
> >
> > How can I smooth this out?
>
> You could try if videorate could make your stream more happy (in front
> of the encoder).
>
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>


-- 
/\/\/\---------------------------------|
Bart Koppe
mediakunstenaar | http://bartkoppe.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140519/fcd1f43b/attachment.html>


More information about the gstreamer-devel mailing list