Hi,
I can capture an image using, gst-launch v4l2src num-buffers=1 ! jpegenc ! filesink location=image.jpg Now I want to send this image to a remote computer (Windows) on the same network using udp or tcp. Can anyone provde me sender and receiver piplines. |
Hi, Sorry if I misunderstood. I'm also new with gstreamer I believe you should not send image, but video stream. And on the receiver side, the client will convert the video stream into image Thanks Sharuzzaman Ahmat Raslan On Jul 6, 2017 2:35 AM, "Farzan" <[hidden email]> wrote: Hi, _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Farzan
Hi
On Thu, Jul 6, 2017 at 1:01 AM, Farzan <[hidden email]> wrote: > > gst-launch v4l2src num-buffers=1 ! jpegenc ! filesink location=image.jpg > > Now I want to send this image to a remote computer (Windows) on the same > network using udp or tcp. Can anyone provde me sender and receiver piplines. How about these: $ gst-launch-1.0 -v tcpserversrc host=0.0.0.0 port=50002 ! gdpdepay ! autovideoconvert ! autovideosink $ gst-launch-1.0 -v v4l2src num-buffers=1 ! gdppay ! tcpclientsink host=0.0.0.0 port=50002 -- yashi _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
The pipelines you mentioned are not working the sender side is stuck at Setting pipeline to PAUSED...., and the receiver pipeline exits as soon as I start it.
Currently I am using the following, for sender, gst-launch-1.0 udpsrc -v filesrc location=/home/pi/image0.jpg ! udpsink host=xxx.xxx.xxx.xxx port=6000 sync=false for receiver, gst-launch-1.0 udpsrc port=6000 ! filesink location="C:\Users\Desktop\image0.jpg" sender pipeline executes properly but the reciever side is stuck at Setting pipeline to PLAYING... do you have any idea why this is happenning? |
The solution suggested by SHOJI works fine. Also tried on OS X Also works fine. gst-launch-1.0 -v tcpserversrc host=0.0.0.0 port=50002 ! gdpdepay ! jpegdec ! autovideoconvert ! osxvideosink gst-launch-1.0 -v wrappercamerabinsrc mode=2 ! queue ! jpegenc ! gdppay ! tcpclientsink host=0.0.0.0 port=50002 On Thu, Jul 6, 2017 at 1:03 PM, Farzan <[hidden email]> wrote: The pipelines you mentioned are not working the sender side is stuck at You are most likely getting it wrong with either port or IP. WHat does your sender report ? Please paste output.
Of course it does. How should receiver side detect end-of-data?
Yes, you are using the wrong tools for what you said you wanted to do. Do you want to copy a file from one computer to another or do you want to stream a video? Regards _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |