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

Zelalem Sintayehu zelalems at hotmail.com
Tue Jun 2 09:05:22 CEST 2009


Hi Sudarshan, thank you very much. It is working. I really appreciate your assistance. I think this is the proper way of doing it as it doesn't require the decoding and encoding of an already encoded video stream. The quality would deteriorate. BTW, the error message in Gstream is not user friendly, it should have said that it is incorect syntax or something similar. Anyway, I am happy. BTW, have you seen the first frame from the file? It is very blurred. When I play the video from the file it starts with a very blurred frame. What do you think is the reason?

Thanks again for your support.

Best regards,

- Zelalem S. 

Date: Tue, 2 Jun 2009 10:07:20 +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 Zelalem 
             Use the following pipeline, here i have set the proper caps between rtph263pdepay and avimux . Make sure at whatever width, height and framerate you are capturing at source side use the same numbers here on receiver side also.  This works on my machine. ( I think this suggestion i have already given earlier but i missed (fraction) part in framerate caps ) 

 
            
               gst-launch 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=320,height=240,framerate=(fraction)25/1' ! avimux ! filesink location=test.avi




On Mon, Jun 1, 2009 at 7:08 PM, sudarshan bisht <bisht.sudarshan at gmail.com> wrote:


Hi ,
 
  Actually i treid following pipeline on my machine , and it works . ( I dont have webcam so tried it using videotestsrc) .
 
gst-launch videotestsrc ! 'video/x-raw-yuv,width=320,heigh=240,framerate=(fraction)25/1,format=(fourcc)I420' !  ffenc_h263p ! rtph263ppay ! udpsink port=5000
 
  gst-launch  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 ! avimux ! filesink location=test.avi

 
 
 And ensure that u have latest Gstreamer installed . 



 
 
 



_________________________________________________________________
Windows Live™: Keep your life in sync. Check it out!
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090602/416c6662/attachment.htm>


More information about the gstreamer-devel mailing list