[gst-devel] RE : RE : Re: RE : Re: How to get a Buffer/data Continous Stream even with packet drops

SP GLE spglegle at yahoo.fr
Mon Nov 26 10:53:45 CET 2007


Hi,
I think we may have found a solution using existing Gstreamer
functionnalities. 

-Considering that each RTP packet / GstBuffer contains the same
duration (20ms for ex.)

The problem could be solved using :
- a buffer probe on a element for incoming buffers (from RTP), probe is
calling a function setting a variable to the timestamp of the last
packet received 
- a periodic Clock calling a function each 20ms, this function check
for the timestamp of the last packet received (set by previous
function), if this timestamp is too old a new buffer is creating and
pushed in the pipeline.

What do you think of this solution ?

Regards.

      Laurent.

--- SP GLE <spglegle at yahoo.fr> a écrit :

> Hi,
>   we need it to  record RTP streams from Network, we need to be sure
> that the record contains silence to compensate RTP packet drop.
> Regards.
> 
>      Laurent.
> 
> --- Edward Hervey <bilboed at gmail.com> a écrit :
> 
> > Hi,
> > 
> >   Why exactly do you need a continuous data stream ? This might
> help
> > figure out other ways to solve this issue.
> > 
> >    Edward
> > 
> > On Sun, 2007-11-25 at 16:18 +0100, SP GLE wrote:
> > > Hi,
> > > thanks for your answer but we already tried with audiorate
> element
> > and
> > > it works the way you describe it....It has to get some packets to
> > > compensate missing ones.
> > > 
> > > I was looking for something complementary to a jitter buffer, to
> > > compensate missing packets by recreating missing media buffers,
> > having
> > > some latency is not a problem, data have to be played in the 400
> > > milliseconds following receive.
> > > 
> > > Regards.
> > > 
> > >           Laurent.
> > > 
> > > --- Edward Hervey <bilboed at gmail.com> a écrit :
> > > 
> > > > Hi,
> > > > 
> > > >   You can use audiorate to insert blank packets... but those
> > packets
> > > > will only be generated once it receives the packet following
> the
> > > > blank.
> > > > Also, that element will introduce some latency equal to *at
> > least*
> > > > the
> > > > duration of one buffer in the case where no packet was
> dropped...
> > and
> > > > go
> > > > as high as the total duration that was dropped on the network.
> > > >   Unless you are not going to be displaying the output in
> > real-time
> > > > it
> > > > will not really help you.
> > > > 
> > > >   Edward
> > > > 
> > > > On Fri, 2007-11-23 at 16:09 +0100, SP GLE wrote:
> > > > > Hi,
> > > > > I would like to get a time/data continuous stream even if
> some
> > > > network
> > > > > packets are lost. The following simple pipeline simulates the
> > > > context :
> > > > > 
> > > > > GST_DEBUG="identity*:3" gst-launch audiotestsrc ! netsim
> > > > > drop-probability=0.3 duplicate-probability=0 !  identity
> > > > > check-perfect=true ! fakesink sync=true
> > > > > 
> > > > > I need something (an element) to compensate lost packets and
> > create
> > > > new
> > > > > ones to fill the gap (with silence in this case).
> > > > > 
> > > > > Does anyone know how I could do that ?
> > > > > 
> > > > > Thanks for your help.
> > > > > Regards.
> > > > > 
> > > > > 
> > > > >      
> > > >
> > >
> >
>
_____________________________________________________________________________
> > > > 
> > > > > Ne gardez plus qu'une seule adresse mail ! Copiez vos mails
> > vers
> > > > Yahoo! Mail 
> > > > > 
> > > > >
> > > >
> > >
> >
>
-------------------------------------------------------------------------
> > > > > This SF.net email is sponsored by: Microsoft
> > > > > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > > > _______________________________________________
> > > > > gstreamer-devel mailing list
> > > > > gstreamer-devel at lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> > > > 
> > > > 
> > > 
> > > 
> > > 
> > >      
> >
>
______________________________________________________________________________
> > 
> > > Yahoo! Mail : un mail innovant avec Messenger compatible Windows
> > Live + stockage illimité. http://mail.yahoo.fr
> > 
> > 
> 
> 
> 
>      
>
______________________________________________________________________________
> 
> Yahoo! Mail : un mail innovant avec Messenger compatible Windows Live
> + stockage illimité. http://mail.yahoo.fr
> 
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 



      ____________________________________________________________________________________________
Yahoo! Mail innove : interface hyper pratique, messenger intégré, couleurs - http://mail.yahoo.fr




More information about the gstreamer-devel mailing list