[gst-devel] How to save a stream from a network into a file

sudarshan bisht bisht.sudarshan at gmail.com
Mon Jun 1 10:22:34 CEST 2009


Hi ,

 for exapmle try these  :-

         gst-launch-0.10 udpsrc port=5000 caps="application/x-rtp,
media=(string)video,clock-rate=(int)90000, encoding-name=(string)H263-1998"
num-buffers=5000 ! queue ! rtph263pdepay !
'video/x-h263,width=176,height=144,framerate=25 '   !    avimux ! filesink
location=test.avi

or

 gst-launch-0.10 udpsrc port=5000 caps="application/x-rtp,
media=(string)video,clock-rate=(int)90000, encoding-name=(string)H263-1998"
num-buffers=5000 ! queue ! rtph263pdepay !  'video/x-h263 '   !    avimux !
filesink location=test.avi




On Mon, Jun 1, 2009 at 1:00 PM, Zelalem Sintayehu <zelalems at hotmail.com>wrote:

> Hi Sudarshan, thank you for your prompt response. But, I am new to gstream
> and I think I don't understand your comment. Sorry to bother you again. I
> tried to set the caps property of the rtpdepayloader by putting
> caps="application/x-rtp, media...." for the rtph263pdepay element, but I get
> the following error: WARNING: erroneous pipeline: no property "caps" in
> element "rtph263pdepay0". So, do i need to include a new element in between
> the two elements (rtp263depay and avimux) or how can i provide caps?
>
> Thank you again for your assistance.
>
> - Zelalem S.
>
> ------------------------------
> Date: Sun, 31 May 2009 10:58:31 +0530
> From: bisht.sudarshan at gmail.com
> To: gstreamer-devel at lists.sourceforge.net
> Subject: Re: [gst-devel] How to save a stream from a network into a file
>
>
>
> Hi,           Hi ,,
>          Try providing caps between  rtph263pdepay and avimux .
>
>
>
> On Sat, May 30, 2009 at 8:28 PM, Zelalem Sintayehu <zelalems at hotmail.com>wrote:
>
> Hi, I was trying to transfer video and audio using network. I used teh
> examples from the net to do that and succeeded. But now I wanted to save the
> stream into file and faced with some problem. Please look at the following
> command:
>
> gst-launch-0.10 udpsrc port=5000 caps="application/x-rtp,
> media=(string)video,clock-rate=(int)90000, encoding-name=(string)H263-1998"
> num-buffers=5000 ! queue ! rtph263pdepay ! ffdec_h263 ! xvimagesink   -----
> this is what i used to accept and display a video stream.
>
> So, to save the stream into a file I changed the last two elements (the
> ffmpeg decoder and xvimake sink). I thought that since the packet coming
> from the other machine is already encoded in h263p codec, replacing these
> two elements  with the following elements would solve my problem: I used
> these elments: avimux ! filesink location=testnet.avi . That is, i connected
> the rtph263pdepay element to the avimux element and to the file sink element
> sequentially as follows.
>
>  gst-launch-0.10 udpsrc port=5000 caps="application/x-rtp,
> media=(string)video,clock-rate=(int)90000, encoding-name=(string)H263-1998"
> num-buffers=5000 ! queue ! rtph263pdepay ! avimux ! filesink
> location=test.avi
>
> But I got an error, that says: streaming task paused, reason not-negotiated
> (-4)
>
> Please help me on how I can save a stream.
>
> Thank you.
>
> - Zelalem S.
>
>
>
> ------------------------------
> Invite your mail contacts to join your friends list with Windows Live
> Spaces. It's easy! Try it!<http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
> ------------------------------
> check out the rest of the Windows Live™. More than mail–Windows Live™ goes
> way beyond your inbox. More than messages<http://www.microsoft.com/windows/windowslive/>
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>


-- 
Regards,

Sudarshan Bisht
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090601/387a80c7/attachment.htm>


More information about the gstreamer-devel mailing list