Video Streaming over socket

Yaroslav yaroslavrakhnenko at gmail.com
Thu Feb 4 10:20:52 UTC 2016


Thanks, Peter!
I just started to learn gstreamer. Now i try do my task using tcpserversink
and tcpclientsrc. But again faced with the problem.

if I use only 
/gst-launch-0.10 v4l2src device=/dev/video2 ! 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/

all right!

if i try 

server
/gst-launch-0.10 v4l2src device=/dev/video2 ! tcpserversink port=3000/

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
ERROR: from element /GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0:
Internal data flow error.
Additional debug info:
gstbasesrc.c(2574): gst_base_src_loop ():
/GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0:
streaming task paused, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline .../

Please, help me to understand.









--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Video-Streaming-over-socket-tp4675658p4675664.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list