stream video saved in pc

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

stream video saved in pc

saev
Hi
I am currently able to stream the videotestsrc video to network using below command(for testing purpose i have streamed it to localhost):
gst-launch -v  videotestsrc !  video/x-raw-yuv,width=640,height=480,framerate=10/1 ! clockoverlay ! rtpvrawpay ! udpsink host=localhost port=5000 sync=false

And at the receiver end I get the streamed video by following command:
gst-launch -v udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:2, depth=(string)8, width=(string)640, height=(string)480, colorimetry=(string)SMPTE240M, payload=(int)96, ssrc=(guint)376280206, clock-base=(guint)452682360, seqnum-base=(guint)7282" ! rtpvrawdepay ! autovideosink

These are working fine. Now I want to stream a video saved in my PC. Can any1 plz tell me what will be the command to stream the local saved video file into network?
Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: stream video saved in pc

Mike Mitchell
Start with a filesrc, but it's going to depend on your format. In you example below, you are streaming raw video, which is hardly practical. 

Start with some good examples here:

Mike Mitchell


On Fri, Sep 30, 2011 at 3:56 AM, saev <[hidden email]> wrote:
Hi
I am currently able to stream the videotestsrc video to network using below
command(for testing purpose i have streamed it to localhost):
gst-launch -v  videotestsrc !
video/x-raw-yuv,width=640,height=480,framerate=10/1 ! clockoverlay !
rtpvrawpay ! udpsink host=localhost port=5000 sync=false

And at the receiver end I get the streamed video by following command:
gst-launch -v udpsrc port=5000 caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000, encoding-name=(string)RAW,
sampling=(string)YCbCr-4:2:2, depth=(string)8, width=(string)640,
height=(string)480, colorimetry=(string)SMPTE240M, payload=(int)96,
ssrc=(guint)376280206, clock-base=(guint)452682360, seqnum-base=(guint)7282"
! rtpvrawdepay ! autovideosink

These are working fine. Now I want to stream a video saved in my PC. Can
any1 plz tell me what will be the command to stream the local saved video
file into network?
Thanks in advance.


--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/stream-video-saved-in-pc-tp3859432p3859432.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel