<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Dear Marco Ballesio thanks a lot for the comment. I'll try to do what you advised me. By the way, I have some expereince with gstreamer. I had written a code that captures and saves a video from a webcam into a file and also send it across the network. Another program I wrote was for videomail recorder. But this was last year. So I'll read the manual again for more info. I'll try and come back if i get a problem. <br><br>Once again thank you for the direction.<br><br>Best regards,<br><br>- Zelalem S. <br><br><br>> Date: Fri, 26 Nov 2010 12:33:09 +0200<br>> From: gibrovacco@gmail.com<br>> To: gstreamer-devel@lists.sourceforge.net<br>> Subject: Re: [gst-devel] How to create a video recording buffer from a live broadcast and read from it at the same time<br>> <br>> Hi,<br>> <br>> a few pointers below, but I suggest you to anyway read the online<br>> documentation/check the sources to know something more.<br>> <br>> On Fri, Nov 26, 2010 at 11:40 AM, Zelalem Sintayehu<br>> <zelalems@hotmail.com> wrote:<br>> > Hi Marco Ballesio thank you again for the support. Before I start to<br>> > implement your proposals, I want to ask you some questions. Let me respond<br>> > to your request first<br>> >> only. Do you have special requirements about using SIP in your AS<br>> >> media controller?<br>> > No, I don't have. I can use RTSP.<br>> ><br>> >> Wim's rtsp streaming server will probably help you with all of this:<br>> > Thank you. I'll download and check it.<br>> ><br>> > My questions are:<br>> > - Is it possible to read from a file that is being written by another<br>> > process? I mean the second server is going to read from teh file that the<br>> > first server is writing to.<br>> <br>> Yes it is and it *should* work as long as the consumer is not faster<br>> than the producer. What I don't exactly know is if the server<br>> connected to the camera will continue recording even when no rtsp<br>> clients are connected to it, but maybe you could give it a try.<br>> <br>> ><br>> >> by periodically looping (through a timer) on the first server you may<br>> >> implement a basic way to re-start the file each n minutes.<br>> ><br>> > Please clarify what you mean by restart the file.<br>> <br>> In GStreamer terms, going to NULL, and then to PLAYING again. Check<br>> the "Application development manual":<br>> <br>> http://www.gstreamer.net/data/doc/gstreamer/head/manual/html/index.html<br>> <br>> for more info.<br>> <br>> ><br>> >> More elegant ways may involve a valve element and transitions to NULL<br>> >> state/eos for the filesink element only.<br>> ><br>> > What will this (valve) element do?<br>> <br>> Here it is:<br>> <br>> http://www.gstreamer.net/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-valve.html<br>> <br>> basically you can dynamically connect/disconnect elements to a<br>> pipeline when setting it to drop buffers. I'd suggest you to<br>> investigate on it only after you've maturised a basic knowledge about<br>> gstreamer.<br>> <br>> Regards<br>> <br>> ><br>> > Thank you.<br>> ><br>> > Best regards,<br>> ><br>> ><br>> > - Zelalem S.<br>> ><br>> ><br>> >> Date: Thu, 25 Nov 2010 19:59:05 +0200<br>> >> From: gibrovacco@gmail.com<br>> >> To: gstreamer-devel@lists.sourceforge.net<br>> >> Subject: Re: [gst-devel] How to create a video recording buffer from a<br>> >> live broadcast and read from it at the same time<br>> >><br>> >> Hi,<br>> >><br>> >> On Thu, Nov 25, 2010 at 3:33 PM, Zelalem Sintayehu <zelalems@hotmail.com><br>> >> wrote:<br>> >> > Hi Dear Marco Ballesio thank you for your prompt response. I'm a student<br>> >> > and<br>> >> > want to do this as a project. Basically I want to have a kind of network<br>> >> > based recorder which is controlled by either SIP or RTSP from an<br>> >> > application<br>> >> > server. Those are the two protocols that I was thinking about to use.<br>> >> > Currently I have an RTSP proxy that I developed which is controlled by a<br>> >> > SIP<br>> >> > Application Server (AS) and delivers the media to a client. So I want to<br>> >> > extend it a little further so that when it is told to pause, it will<br>> >> > pause<br>> >> > the stream it gets from the server (which basically means recording it<br>> >> > for<br>> >> > later use) and again when told to resume starts the delivery from the<br>> >> > place<br>> >> > where it was paused. The client (a SIP) is just a passive media<br>> >> > reciever.<br>> >><br>> >> in my understanding it should be possible to do all of this with RTSP<br>> >> only. Do you have special requirements about using SIP in your AS<br>> >> media controller?<br>> >><br>> >> > the media control comes from the application server. I also want to use<br>> >> > a<br>> >> > client with basic RTSP capability but still the media control comes from<br>> >> > the<br>> >> > AS or media controller. With regard to bandwith limitation I don't have<br>> >> > badndwidth costraints, but I'm thinking that the recorder should have a<br>> >> > limited (specified) buffer size. It can't go on recording forever. I<br>> >> > also<br>> >> > only want this to work for one client. Hope I have attended your<br>> >> > queries.<br>> >> ><br>> >> > Once again thank you for your support.<br>> >><br>> >> A few ideas. Disclaimer: I've not personally tried them, so your<br>> >> mileage to get the thing working may vary..<br>> >><br>> >> Wim's rtsp streaming server will probably help you with all of this:<br>> >><br>> >> http://people.freedesktop.org/~wtay/<br>> >><br>> >> in my understanding, you would need to setup two servers:<br>> >><br>> >> - the first one streaming from the camera AND locally saving to file<br>> >> (through, between the others, a tee element and an mp4mux with the<br>> >> option "faststart" set to true).<br>> >><br>> >> - the second one providing the file saved from the first one.<br>> >><br>> >> by periodically looping (through a timer) on the first server you may<br>> >> implement a basic way to re-start the file each n minutes. More<br>> >> elegant ways may involve a valve element and transitions to NULL<br>> >> state/eos for the filesink element only.<br>> >><br>> >> Regards<br>> >><br>> >> ><br>> >> > Best regards,<br>> >> ><br>> >> > - Zelalem S.<br>> >> ><br>> >> ><br>> >> ><br>> >> ><br>> >> >> Date: Thu, 25 Nov 2010 13:39:37 +0200<br>> >> >> From: gibrovacco@gmail.com<br>> >> >> To: gstreamer-devel@lists.sourceforge.net<br>> >> >> Subject: Re: [gst-devel] How to create a video recording buffer from a<br>> >> >> live broadcast and read from it at the same time<br>> >> >><br>> >> >> Hi,<br>> >> >><br>> >> >> On Wed, Nov 24, 2010 at 12:13 PM, Zelalem Sintayehu<br>> >> >> <zelalems@hotmail.com> wrote:<br>> >> >> > Hi I want to create a program using gstreamer that when activated<br>> >> >> > starts<br>> >> >> > to<br>> >> >> > record a live broadcast and when requested starts to deliver what is<br>> >> >> > being<br>> >> >> > recorded from the beginning of the record while keeping on recording<br>> >> >> > on<br>> >> >> > the<br>> >> >> > other end (the live broadcast). At some point I want to ignore<br>> >> >> > recording<br>> >> >> > and<br>> >> >> > go live. I hope gstreamer could be used to do this. Basically my<br>> >> >> > problem<br>> >> >> > is<br>> >> >> > to create a buffer of a file that I can read and write into it at the<br>> >> >> > same<br>> >> >> > time. Please advice me how I can do this.<br>> >> >><br>> >> >> Imo there are many ways for achieving this, some of which being easy,<br>> >> >> other more difficult. The freedom you'll have in your design depends<br>> >> >> on some variables:<br>> >> >><br>> >> >> - You'll anyway have to use a signalling protocol (e.g. RTSP, SIP,<br>> >> >> XMPP, etc..) to make it working, so you'll have to carefully pick the<br>> >> >> one which better suits your requirements (e.g. RTSP is pretty well<br>> >> >> supported from GStreamer from both sides, for SIP or XMPP I suggest<br>> >> >> you to give a look to the telepathy framework).<br>> >> >><br>> >> >> - Are you planning to make it compatible with standard clients? If<br>> >> >> yes, which protocols do they use? If not, are you planning to write<br>> >> >> the client application as well?<br>> >> >><br>> >> >> - Do you have resource constraints (network bandwidth, CPU, disk,<br>> >> >> memory)?<br>> >> >><br>> >> >> - Is it possible that multiple clients will connect to the same server?<br>> >> >><br>> >> >> If you can clarify the points of above it would be possible to give<br>> >> >> you, in turn, an appropriate answer.<br>> >> >><br>> >> >> Regards<br>> >> >><br>> >> >> ><br>> >> >> > Thank you.<br>> >> >> ><br>> >> >> > Best regards,<br>> >> >> ><br>> >> >> > - Zelalem S.<br>> >> >> ><br>> >> >> ><br>> >> >> ><br>> >> >> ><br>> >> >> ><br>> >> >> > ------------------------------------------------------------------------------<br>> >> >> > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!<br>> >> >> > Tap into the largest installed PC base & get more eyes on your game<br>> >> >> > by<br>> >> >> > optimizing for Intel(R) Graphics Technology. Get started today with<br>> >> >> > the<br>> >> >> > Intel(R) Software Partner Program. Five $500 cash prizes are up for<br>> >> >> > grabs.<br>> >> >> > http://p.sf.net/sfu/intelisp-dev2dev<br>> >> >> > _______________________________________________<br>> >> >> > gstreamer-devel mailing list<br>> >> >> > gstreamer-devel@lists.sourceforge.net<br>> >> >> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<br>> >> >> ><br>> >> >> ><br>> >> >><br>> >> >><br>> >> >><br>> >> >> ------------------------------------------------------------------------------<br>> >> >> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!<br>> >> >> Tap into the largest installed PC base & get more eyes on your game by<br>> >> >> optimizing for Intel(R) Graphics Technology. Get started today with the<br>> >> >> Intel(R) Software Partner Program. Five $500 cash prizes are up for<br>> >> >> grabs.<br>> >> >> http://p.sf.net/sfu/intelisp-dev2dev<br>> >> >> _______________________________________________<br>> >> >> gstreamer-devel mailing list<br>> >> >> gstreamer-devel@lists.sourceforge.net<br>> >> >> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<br>> >> ><br>> >> ><br>> >> > ------------------------------------------------------------------------------<br>> >> > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!<br>> >> > Tap into the largest installed PC base & get more eyes on your game by<br>> >> > optimizing for Intel(R) Graphics Technology. Get started today with the<br>> >> > Intel(R) Software Partner Program. Five $500 cash prizes are up for<br>> >> > grabs.<br>> >> > http://p.sf.net/sfu/intelisp-dev2dev<br>> >> > _______________________________________________<br>> >> > gstreamer-devel mailing list<br>> >> > gstreamer-devel@lists.sourceforge.net<br>> >> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<br>> >> ><br>> >> ><br>> >><br>> >><br>> >> ------------------------------------------------------------------------------<br>> >> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!<br>> >> Tap into the largest installed PC base & get more eyes on your game by<br>> >> optimizing for Intel(R) Graphics Technology. Get started today with the<br>> >> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.<br>> >> http://p.sf.net/sfu/intelisp-dev2dev<br>> >> _______________________________________________<br>> >> gstreamer-devel mailing list<br>> >> gstreamer-devel@lists.sourceforge.net<br>> >> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<br>> ><br>> > ------------------------------------------------------------------------------<br>> > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!<br>> > Tap into the largest installed PC base & get more eyes on your game by<br>> > optimizing for Intel(R) Graphics Technology. Get started today with the<br>> > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.<br>> > http://p.sf.net/sfu/intelisp-dev2dev<br>> > _______________________________________________<br>> > gstreamer-devel mailing list<br>> > gstreamer-devel@lists.sourceforge.net<br>> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<br>> ><br>> ><br>> <br>> ------------------------------------------------------------------------------<br>> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!<br>> Tap into the largest installed PC base & get more eyes on your game by<br>> optimizing for Intel(R) Graphics Technology. Get started today with the<br>> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.<br>> http://p.sf.net/sfu/intelisp-dev2dev<br>> _______________________________________________<br>> gstreamer-devel mailing list<br>> gstreamer-devel@lists.sourceforge.net<br>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<br>                                            </body>
</html>