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

Felipe Contreras felipe.contreras at gmail.com
Wed Oct 24 20:32:57 CEST 2007


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.

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.

-- 
Felipe Contreras




More information about the gstreamer-devel mailing list