Video Streaming over socket
Peter Maersk-Moller
pmaersk at gmail.com
Thu Feb 4 09:45:50 UTC 2016
Hi Yaroslav.
You really should drop GStreamer-0.10 and start using a more recent
GStreamer-1.0 version.
Besides that, your client has no way of knowing, what it is reading, so
obviously, your ffmpegcolorspace has no way of knowing what it should be
converting from. You need to add a format spec between filesrc and
ffmpegcolorspace like
'video/x-raw,format=I420,width=320,height=240.......'
Please *NOTE* the format spec shown here is in GStreamer-1.0 format, which
is not compatible with GStreamer-0.10. However you can see the format when
starting your server side.
Note that 'filesrc' has a typefind option, but obviously you can't detect
the type of a stream consisting of raw video data, so this won't work.
Also note that using fifo files has some properties/effects that sometimes
can be undesired. You will find out which when trying. Why not using
tcpserversink and tcpclientsrc ?
Best regards
Peter
On Thu, Feb 4, 2016 at 9:07 AM, Yaroslav <yaroslavrakhnenko at gmail.com>
wrote:
> Server and Client are on the same machine.I need
> On server I need to read data from v4l2src and write it in socket, on
> client
> - read data from soket and write it in file.
>
> Server:
> gst-launch-0.10 v4l2src device=/dev/video0 ! filesink location=/home/pipe
>
> Client:
> gst-launch-0.10 filesrc location=/home/pipe ! ffmpegcolorspace ! jpegenc !
> avimux ! filesink location=/home/video.avi
>
>
>
> When server run container in "PAUSED...". When i start client:
>
> gstbasetransform.c(2541): gst_base_transform_handle_buffer ():
> /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0:
> not negotiated
>
> after it client and server close. What am I doing wrong?
>
>
>
>
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Video-Streaming-over-socket-tp4675658.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/20160204/eca1a354/attachment.html>
More information about the gstreamer-devel
mailing list