Avcodec.PacketPacket.
type side_data = [ | `Replaygain of replaygain| `Strings_metadata of (string * string) list| `Metadata_update of (string * string) list ]Packet side_data (incomplete)
val get_size : 'media t -> intReturn the size of the packet.
val get_stream_index : 'media t -> intReturn the stream index of the packet.
val set_stream_index : 'media t -> int -> unitSet the stream index of the packet.
val get_pts : 'media t -> Stdlib.Int64.t optionReturn the packet PTS (Presentation Time) in its stream's base_time unit.
val set_pts : 'media t -> Stdlib.Int64.t option -> unitSet the packet PTS (Presentation Time) in its stream's base_time unit.
val get_dts : 'media t -> Stdlib.Int64.t optionReturn the packet DTS (Decoding Time) in its stream's base_time unit.
val set_dts : 'media t -> Stdlib.Int64.t option -> unitSet the packet DTS (Decoding Time) in its stream's base_time unit.
val get_duration : 'media t -> Stdlib.Int64.t optionReturn the packet duration in its stream's base_time unit.
val set_duration : 'media t -> Stdlib.Int64.t option -> unitSet the packet duration in its stream's base_time unit.
val get_position : 'media t -> Stdlib.Int64.t optionReturn the packet byte position in stream.
val set_position : 'media t -> Stdlib.Int64.t option -> unitSet the packet byte position in stream.
val to_bytes : 'media t -> bytesReturn a fresh bytes array containing a copy of packet datas.
val create : string -> 'media tAdvanced users: create a packet with the given data.
val content : 'media t -> stringAdvanced users: return the packet's content.