Video Streaming over socket

Tim Müller tim at centricular.com
Thu Feb 4 11:24:41 UTC 2016


On Thu, 2016-02-04 at 02:20 -0800, Yaroslav wrote:

> client
> /gst-launch-0.10 tcpclientsrc port=3000 ! capsfilter
> caps="video/x-raw-
> yuv,format=(fourcc)UYVY,width=720,height=625,framerate=(fraction)25/4
> "
> ! videocrop top=49 ! deinterlace mode=1 fields=1 ! videoscale !
> capsfilter
> caps="video/x-raw-yuv,width=360,height=270" ! ffmpegcolorspace !
> avimux !
> filesink location=/media/mmcblk1p1/$(date +"%Y.%m.%d_%H:%M:%S").avi/
> 
> on client i see it
> 
> /Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> 
> ** (gst-launch-0.10:1645): WARNING **: videocrop0: size 49152 is not
> a multiple of unit size 900000

Use a (properly configured for format/width/height) "videoparse"
element after tcpclientsrc. That will chunk buffers to the right size.

But you *really* should not be using 0.10 any longer and upgrade to
1.x.

Cheers
 -Tim


--
Tim Müller, Centricular Ltd - http://www.centricular.com




More information about the gstreamer-devel mailing list