Hello,
I am trying to send video stream from my Raspberry Pi to PC using UDP protocol. RPi and PC connected to same Wi-FI network with static IP 77.87.xxx.xx On RPi: gst-launch-1.0 -v rpicamsrc preview=0 bitrate=1000000 ! video/x-h264, width=1280, height=720, framerate=25/1, profile=high ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=77.87.xxx.xx port=5000 On PC: gst-launch-1.0 -v udpsrc port=5000 ! application/x-rtp, encoding-name=H264, payload=96 ! rtph264depay ! avdec_h264 ! autovideosink sync=false Also on router (Zyxel Viva) I created a NAT rule: With such setup I cant get anything, while with host=192.168.1.5 it works correct. Where is the problem? Thanks |
My knowledge about IP network is a little old but I will give some suggestions. Your 2 devices are not in the same IP network(differents IP address) do you have a router between them? Le Dimanche 10 avril 2016 15h27, Vassiliev <[hidden email]> a écrit : Hello, I am trying to send video stream from my Raspberry Pi to PC using UDP protocol. RPi and PC connected to same Wi-FI network with static IP 77.87.xxx.xx On RPi: gst-launch-1.0 -v rpicamsrc preview=0 bitrate=1000000 ! video/x-h264, width=1280, height=720, framerate=25/1, profile=high ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=77.87.xxx.xx port=5000 On PC: gst-launch-1.0 -v udpsrc port=5000 ! application/x-rtp, encoding-name=H264, payload=96 ! rtph264depay ! avdec_h264 ! autovideosink sync=false Also on router (Zyxel Viva) I created a NAT rule: <http://gstreamer-devel.966125.n4.nabble.com/file/n4676807/nat.png> With such setup I cant get anything, while with host=192.168.1.5 it works correct. Where is the problem? Thanks -- View this message in context: http://gstreamer-devel.966125.n4.nabble.com/UDP-connection-over-Internet-tp4676807.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 |
They connected to one router and have same IP
|
In reply to this post by Vassiliev
Hm your rabs is 77.xx.xx.xx and your pc 192.xx.xx.xx there are not in the same IP network. Give a 192.xx.xx.xxto your rabs first an see what's happen Le Dimanche 10 avril 2016 15h27, Vassiliev <[hidden email]> a écrit : Hello, I am trying to send video stream from my Raspberry Pi to PC using UDP protocol. RPi and PC connected to same Wi-FI network with static IP 77.87.xxx.xx On RPi: gst-launch-1.0 -v rpicamsrc preview=0 bitrate=1000000 ! video/x-h264, width=1280, height=720, framerate=25/1, profile=high ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=77.87.xxx.xx port=5000 On PC: gst-launch-1.0 -v udpsrc port=5000 ! application/x-rtp, encoding-name=H264, payload=96 ! rtph264depay ! avdec_h264 ! autovideosink sync=false Also on router (Zyxel Viva) I created a NAT rule: <http://gstreamer-devel.966125.n4.nabble.com/file/n4676807/nat.png> With such setup I cant get anything, while with host=192.168.1.5 it works correct. Where is the problem? Thanks -- View this message in context: http://gstreamer-devel.966125.n4.nabble.com/UDP-connection-over-Internet-tp4676807.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 |
77.87.xxx.xx - my router's global IP, so all devices connected to it have the same global IP.
Now RPi and PC connected to this router and I want stream video from RPi to PC throw the Internet, so later I can connect RPi to another network. 192.168.1.5 - PC's LOCAL IP and 192.168.1.12 - RPi's local IP. And I already made streaming from 192.168.1.12 to 192.168.1.5 in local network. Now I want to stream from yy.yy.yyy.yy - which is RPi's possible IP (now it is 77.87.xxx.xx) to 77.87.xxx.xx which is my PC's IP also.
|
Ok, did you know about port forwarding? configure a port forwarding to transfert the traffic on router 's port 5000 to your pc at IP 192.168.1.5 at port 5000 Le Lundi 11 avril 2016 13h09, Vassiliev <[hidden email]> a écrit : 77.87.xxx.xx - my router's global IP, so all devices connected to it have the same global IP. Now RPi and PC connected to this router and I want stream video from RPi to PC throw the Internet, so later I can connect RPi to another network. 192.168.1.5 - PC's LOCAL IP and 192.168.1.12 - RPi's local IP. And I already made streaming from 192.168.1.12 to 192.168.1.5 in local network. Now I want to stream from yy.yy.yyy.yy - which is RPi's possible IP (now it is 77.87.xxx.xx) to 77.87.xxx.xx which is my PC's IP also. narcisse doudieu siewe wrote > Hm your rabs is 77.xx.xx.xx and your pc 192.xx.xx.xx there are notin the > same IP network. Give a 192.xx.xx.xxto your rabs first an seewhat's happen > > > > Le Dimanche 10 avril 2016 15h27, Vassiliev < > Valera.Vassiliev@ > > a écrit : > > > Hello, > > I am trying to send video stream from my Raspberry Pi to PC using UDP > protocol. RPi and PC connected to same Wi-FI network with static IP > 77.87.xxx.xx > > On RPi: > gst-launch-1.0 -v rpicamsrc preview=0 bitrate=1000000 ! video/x-h264, > width=1280, height=720, framerate=25/1, profile=high ! h264parse ! > rtph264pay config-interval=1 pt=96 ! udpsink host=77.87.xxx.xx port=5000 > > On PC: > gst-launch-1.0 -v udpsrc port=5000 ! application/x-rtp, > encoding-name=H264, > payload=96 ! rtph264depay ! avdec_h264 ! autovideosink sync=false > > Also on router (Zyxel Viva) I created a NAT rule: > <http://gstreamer-devel.966125.n4.nabble.com/file/n4676807/nat.png> > > With such setup I cant get anything, while with host=192.168.1.5 it works > correct. > Where is the problem? > > Thanks > > > > -- > View this message in context: > http://gstreamer-devel.966125.n4.nabble.com/UDP-connection-over-Internet-tp4676807.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 -- View this message in context: http://gstreamer-devel.966125.n4.nabble.com/UDP-connection-over-Internet-tp4676807p4676828.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 |
Free forum by Nabble | Edit this page |