Function packet_duration

Source
fn packet_duration(exe: &Path, path: &str, sel: &str) -> f64
Expand description

Duration of stream sel from its packets: max(pts_time + duration_time) - min(pts_time); when no packet carries a pts (raw .h264) the durations are summed instead. Full demux, so only for files whose container has no duration. 0.0 on failure.