package ffmpeg-avcodec
Library
Module
Module type
Parameter
Class
Class type
Packet.
val get_size : 'media t -> int
Return the size of the packet.
val get_stream_index : 'media t -> int
Return the stream index of the packet.
val set_stream_index : 'media t -> int -> unit
Set the stream index of the packet.
Return the packet PTS (Presentation Time) in its stream's base_time unit.
Set the packet PTS (Presentation Time) in its stream's base_time unit.
Return the packet DTS (Decoding Time) in its stream's base_time unit.
Set the packet DTS (Decoding Time) in its stream's base_time unit.
Return the packet duration in its stream's base_time unit.
Set the packet duration in its stream's base_time unit.
val to_bytes : 'media t -> bytes
Return a fresh bytes array containing a copy of packet datas.
val parse_data : 'media parser -> ('media t -> unit) -> Avutil.data -> unit
Avcodec.Packet.parse_data parser f data
applies function f
to the parsed packets frome the data
array according to the parser
configuration.
Raise Error if the parsing failed.
Same as Avcodec.Packet.parse_data
with bytes array.