lwindex: Write stream durations only for video or audio streams.