From: Sameer N. <sa...@da...> - 2007-10-24 19:40:36
|
On Wed, 2007-10-24 at 21:32 +0300, Felipe Contreras wrote: > 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. > 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. > |