Hello Experts,
My objective is I have try to stream a video from raspberry pi camera over UDP. I used following pipeline: gst-launch-1.0 --gst-debug-level=3 -v v4l2src device=/dev/video0 ! capsfilter caps="video/x-raw,width=640,height=480,framerate=30/1" ! queue ! omxh264enc ! queue ! rtph264pay ! udpsink host=192.168.5.1 port=8080 RESULT: After I Run above pipeline, I will not get any kind of error and I check in VLC Player(Client side) but streaming video is not display. Please suggest me This is Right pipelining or not ? OR Any missing element in this pipeline ?
Thanks,Aditya Oza _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
doesn't look too bad. Try receiving with gstreamer first
gst-launch-1.0 udpsrc port=5000 ! \ application/x-rtp,\ encoding-name=H264,payload=96 ! \ rtph264depay ! h264parse ! avdec_h264 ! \ autovideosink There's also a special element for the RPI camera (gst-rpicamsrc) which already does the h264 encoding. You can also try first without hardware encoding: gst-launch-1.0 v4l2src ! \ video/x-raw,width=640,height=480 ! \ x264enc ! h264parse ! rtph264pay ! \ udpsink host=127.0.0.1 port=5000 *Disclaimer: I haven't tried these commands with a recent Gstreamer Rg, Arnaud On 5/3/19 11:05 AM, Aditya Oza wrote: > Hello Experts, > > My objective is I have try to stream a video from raspberry pi camera > over UDP. > > I used following pipeline: > > gst-launch-1.0 --gst-debug-level=3 -v v4l2src device=/dev/video0 ! > capsfilter caps="video/x-raw,width=640,height=480,framerate=30/1" ! > queue! omxh264enc! queue ! rtph264pay ! udpsink host=192.168.5.1 port=8080 > > RESULT: After I Run above pipeline, > I will not get any kind of error and I check in VLC Player(Client side) > but streaming video is not display. > Please suggest me This is Right pipelining or not ? OR > Any missing element in this pipeline ? > Thanks, > Aditya Oza > > > _______________________________________________ > 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 |
This post was updated on .
Arnaud Loonstra,
Consider me a beginner in Gstreamer. First i Configure Raspberry pi as a Acess point and I am trying to stream video over udp and check in VLC player(client side) but it doesn't display stream. I take session via SSH putty so autovideosink not used as outputsink. I also try, 1. I open two terminal. 2. In one terminal I run transmitter side following pipeline: gst-launch-1.0 --gst-debug-level=3 -v v4l2src device=/dev/video0 ! capsfilter caps="video/x-raw,width=640,height=480,framerate=30/1" ! queue ! omxh264enc ! queue ! rtph264pay ! udpsink host=127.0.0.1 port=8080 3. And in second terminal I run receiving pipeline: gst-launch-1.0 udpsrc port=8080 ! application/x-rtp, encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink They both pipeline running well but still doesn't display streaming in VLC player(client side). Can you Suggest me in Details how i used this pipeline?? OR Any Other way to getting stream in VLC player ?? OR Can I use RTSP protocol instead of UDP protocol for better streaming option? Thanks, Aditya -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list gstreamer-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
This is too vague, are the two terminals on the same machine? Then who
is 192.168.5.1? If you are on the same machine try replacing 192.168.5.1 with 127.0.0.1. And one the sender command you are using port 8080 and on the receiver port 5000. Of course you have to use the same port on sender and reveiver. I can't help you with VLC. Just forget about VLC for now. Rg, Arnaud On 5/3/19 12:39 PM, Aditya Oza wrote: > Arnaud Loonstra, > > Consider me a beginner in Gstreamer. > > First i Configure Raspberry pi as a Acess point and I am trying to stream > video over udp and check in VLC player(client side) but it doesn't display > stream. > > I take session via SSH putty so autovideosink not used as outputsink. > > I also try, > > 1. I open two terminal. > > 2. In one terminal I run transmitter side following pipeline: > > gst-launch-1.0 --gst-debug-level=3 -v v4l2src device=/dev/video0 ! > capsfilter caps="video/x-raw,width=640,height=480,framerate=30/1" ! queue ! > omxh264enc ! queue ! rtph264pay ! udpsink host=192.168.5.1 port=8080 > > 3. And in second terminal I run receiving pipeline: > > gst-launch-1.0 udpsrc port=5000 ! application/x-rtp, > encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! > autovideosink > > > They both pipeline running well but still doesn't display streaming in VLC > player(client side). > > > Can you Suggest me in Details how i used this pipeline?? > > OR > > Any Other way to getting stream in VLC player ?? > > OR > > Can I use RTSP protocol instead of UDP protocol for better streaming > option? > > Thanks, > Aditya > > > > -- > Sent from: http://gstreamer-devel.966125.n4.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 |
Arnaud Loonstra,
I apologize for my typing mistake:( I have use same port and ip for both sender and receiver terminal. ip: 127.0.0.1 port:8080 Sender: gst-launch-1.0 --gst-debug-level=3 -v v4l2src device=/dev/video0 ! capsfilter caps="video/x-raw,width=640,height=480,framerate=30/1" ! queue ! omxh264enc ! queue ! rtph264pay ! udpsink host=127.0.0.1 port=8080 Receiver: gst-launch-1.0 udpsrc port=8080 ! application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink And I check streaming in VLC player(client side) but still doesn't display stream. Please guide me because I am a beginner in Gstreamer. Suggest me a Right way. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
By default VLC player choose mpeg2ts depayloader.
use rtpmp2tpay to test once: gst-launch-1.0 --gst-debug-level=3 -v v4l2src device=/dev/video0 ! capsfilter caps="video/x-raw,width=640,height=480,framerate=30/1" ! queue ! omxh264enc ! queue ! h264parse ! mpegtsmux ! rtpmp2tpay ! udpsink host=127.0.0.1 port=8080 and trt rtp://@:8080 in VLC. VLC pay have option to choose depayloader but haven't tried it. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
This post was updated on .
Thank you for reply Vinod Kesti,
gst-launch-1.0 --gst-debug-level=3 -v v4l2src device=/dev/video0 ! capsfilter caps="video/x-raw,width=640,height=480,framerate=30/1" ! queue ! omxh264enc ! queue ! h264parse ! mpegtsmux ! rtpmp2tpay ! udpsink host=127.0.0.1 port=8080 it's working fine on local server.. :) Now I try to change 127.0.0.1 to my Acess point 192.168.5.1(Raspberry pi) and run a command on a terminal but not display stream in client side. ERROR: VLC is unable to open the MRL 'rtp://192.168.5.1:8080/'. Check the log for details. Give me some suggestion in it. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list gstreamer-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
my Acess point 192.168.5.1(Raspberry pi) Did you mean Rasberry Pi IP ??
uspsink host should be the destination client machine IP not the RB Pi IP. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Vinod Kesti,
first I Configure my Raspberry pi as Access point(192.168.5.1.). My Main Objective is, In Server(Raspberry pi) side, I Try to stream over rtp from my raspberry pi camera. In Client(Laptop)side, First I Connect with Server(Raspberry pi) and after connect with it, I open VLC player >> Media >> Open Network Stream >>and type rtp://192.168.5.1:8080/ and try to watch stream. ERROR: Your input can't be opened: VLC is unable to open the MRL 'rtp://192.168.5.1:8080/'. Check the log for details. Please Suggest me where I am wrong?? -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Adidtya,
rtp is over UDP. There is no server and client here. Directly give your VLC host IP in udpsink. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Vinod Kesti,
Let me Describe in Details, what I am looking for. As above I mention, first I Configure my Raspberry pi as Access point(192.168.5.1.). I Try to stream rtp is over udp from my raspberry pi camera. my raspberry pi IP address 192.168.5.1. I used following pipeline: gst-launch-1.0 --gst-debug-level=3 -v v4l2src device=/dev/video0 ! capsfilter caps="video/x-raw,width=640,height=480,framerate=30/1" ! queue ! omxh264enc ! queue ! h264parse ! mpegtsmux ! rtpmp2tpay ! udpsink host=192.168.5.1 port=8080 After run this command, I connect my laptop to this Access point(192.168.5.1) and open VLC media player. My laptop IP is 192.168.5.139 I open VLC player >> Media >> Open Network Stream >>and type rtp://192.168.5.1:8080/ and try to watch stream. ERROR: Your input can't be opened: VLC is unable to open the MRL 'rtp://192.168.5.1:8080/'. Check the log for details. suggest me where I am wrong? OR suggest me a better option. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
This post was updated on .
Use your laptop IP as udpsink host.
e.x: gst-launch-1.0 --gst-debug-level=3 -v v4l2src device=/dev/video0 ! capsfilter caps="video/x-raw,width=640,height=480,framerate=30/1" ! queue ! omxh264enc ! queue ! h264parse ! mpegtsmux ! rtpmp2tpay ! udpsink host=192.168.5.139 port=8080 In VLC rtp://192.168.5.139:8080 -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list gstreamer-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Vinod Kesti,
Thank you for quick reply, As you mention, Use your laptop IP as udpsink host but i have not used raspberry pi with my laptop. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |