Live Streaming

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Live Streaming

frknml
   
    Hi Everyone;

 I'm trying to design real time video streamer.Firstly i tried it in my local system with my webcam.The senario is,I'm sending my webcam capture via udp at the same time i'm receiving this data from my local network.I could succeed to show my webcam capture but I couldn't overcome the latency and the video is not smooth.I wrote my command below,please advise me how can i handle these problems.


Receiver
gst-launch udpsrc buffer-size=16777216 port=1234 ! ffdemux_mpegts ! ffdec_mpeg2video ! autovideosink

Sender
gst-launch v4l2src ! video/x-raw-yuv,width=320,height=240,framerate=\(fraction\)30/1 ! ffenc_mpeg2video ! ffmux_mpegts ! udpsink  host="10.0.0.217" port=1234


Faruk

Reply | Threaded
Open this post in threaded view
|

Re: Live Streaming

Sudarshan Bisht
 
         Why video is not smooth is because you are not forming  rtp packets of encoded data and that's why some of the packets are getting lost or not reaching in proper order while transferring data from sender to receiver. Its would be better if you use rtp packetizer and depacketizer plugins at respective side.
 
So pipeline should be  something like this,
 
Sender:
 gst-launch v4l2src ! video/x-raw-yuv,width=320,height=240,framerate=\(fraction\)30/1 ! ffenc_mpeg2video ! rtpmp2tpay ! udpsink host="10.0.0.217" port=1234 Faruk
Receiver:
gst-launch udpsrc buffer-size=16777216 port=1234 ! rtpmp2tdepay ! ffdec_mpeg2video ! autovideosink
 
 


 
On Tue, Dec 14, 2010 at 9:17 PM, frknml <[hidden email]> wrote:
Hi Everyone; I'm trying to design real time video streamer.Firstly i tried it in my local system with my webcam.The senario is,I'm sending my webcam capture via udp at the same time i'm receiving this data from my local network.I could succeed to show my webcam capture but I couldn't overcome the latency and the video is not smooth.I wrote my command below,please advise me how can i handle these problems. Receiver gst-launch udpsrc buffer-size=16777216 port=1234 ! ffdemux_mpegts ! ffdec_mpeg2video ! autovideosink Sender gst-launch v4l2src ! video/x-raw-yuv,width=320,height=240,framerate=\(fraction\)30/1 ! ffenc_mpeg2video ! ffmux_mpegts ! udpsink host="10.0.0.217" port=1234 Faruk

View this message in context: Live Streaming
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel