You read this object out of {@link IContainer} objects when decoding, and pass to an {@link IStreamCoder} object to decode.
You pass this object to a {@link IStreamCoder} to encode data, and then
Lastly, the units of timestamps in an {@link IPacket} are determined by the {@link IContainer} it came from (or is going to). For example, FLV {@link IPacket}s are always in milliseconds (1/1000 of a second). You cannot assume these timestamps are in any given timeunit without getting an {@link IStream} object and finding out what Time Base that stream operates in.
For convenience, the Xuggler API always uses Microseconds for raw data ( {@link IVideoPicture} and {@link IAudioSamples} objects), and will convert to the right time stamp unit when decoding or encoding data (with an {@link IStreamCoder}) from or to an {@link IContainer}.
|
|
|
|
|
|
|
|