From: Felipe C. <fel...@gm...> - 2007-10-24 18:32:59
|
Hi, On 10/24/07, Stefan Kost <en...@ho...> wrote: > Quoting Volter Yen <vol...@16...>: > > > 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 |