JyotsnaT / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

Would be nice to not have StreamCoder re-stamp packets into IStream timebase #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Today, if a StreamCoder knows about an IStream, it always restamps the
time-stamps to the units of that IStream.

However, it would be handy to able to turn this off, so we'll add that.

Original issue reported on code.google.com by art.cla...@gmail.com on 29 Jul 2009 at 5:38

GoogleCodeExporter commented 9 years ago
Implemented in r846.

We didn't change the old behavior, but now you can call
IStreamCoder.setAutomaticallyStampPacketsForStream(false), and we'll no longer 
stamp
the packets.

That said, the IContainer.writePacket() will now translate packets into the 
right
time-base if for some reason they show up with the wrong time-base.  So in 
reality
it's always safe to set this to false, and this now allows you to encode from a
stream-coder set up with one IStream, but still write it to containers with 
different
streams.

Original comment by art.cla...@gmail.com on 29 Jul 2009 at 8:28