[gst-devel] AV SYNC Problem of gstreamer when using customized dsp decoder

Sameer Naik sameer at damagehead.com
Wed Oct 24 21:35:02 CEST 2007


On Wed, 2007-10-24 at 21:32 +0300, Felipe Contreras wrote:
> Hi,
> 
> On 10/24/07, Stefan Kost <ensonic at hora-obscura.de> wrote:
> > Quoting Volter Yen <volter619 at 163.com>:
> >
> > >  Hi Sameer,
> > >  now the problem is that the dsp decoder is blackbox(put encoded datum in,
> > > and get decoded datum out)for me ,It is obvious that it would no set the
> > > outbuffer's TIMESTAMP, so how should I set the correct timestamp of video
> > > outbuffer in my application? how to decide the  timestamp value of the video
> > > outbuffer from my dsp decoder?
> > I would just copy the timestamp from the input. That works quite fine for me.
> 
> Yes, you just need to do that.
> 
> If you only send one buffer at the time then it's easy to do that
> since you always have only one input buffer.
> 

thats right if you can have decoded frame data for every input encoded
frame input. i would recommend this as well.

> Otherwise you'll need to set some kind of application data to the dsp
> buffer your are sending. You can use some ID field as Sameer suggested
> for the timestamp, or you can use it as a pointer to some custom
> GStreamer information.
> 
> Surely there must be some way to know which input buffer generated
> certain output buffer.
> 





More information about the gstreamer-devel mailing list