How to send an image to a remote machine on the same network

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to send an image to a remote machine on the same network

Farzan
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.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to send an image to a remote machine on the same network

Sharuzzaman Ahmat Raslan
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,
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.





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-send-an-image-to-a-remote-machine-on-the-same-network-tp4683697.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to send an image to a remote machine on the same network

Yasushi SHOJI-2
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to send an image to a remote machine on the same network

Farzan
 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?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to send an image to a remote machine on the same network

Peter Maersk-Moller-2
The solution suggested by SHOJI works fine. Also tried on OS X

  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

Also works fine.

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
Setting pipeline to PAUSED...., and the receiver pipeline exits as soon as I
start it.

You are most likely getting it wrong with either port or IP. WHat does your sender report ? Please paste output.


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...

Of course it does. How should receiver side detect end-of-data?
 

do you have any idea why this is happenning?

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
Loading...