FFMpegCore
FFMpegCore copied to clipboard
MediaAnalysis.Duration only considers the Primary streams
I'm looking at a sample media files with multiple audio tracks of slightly different durations. In this particular case, the primary one is the shortest. The format duration is longer than any of the individual streams, so that ends up being used as the overall duration. Perhaps in practice the format duration will always be at least as long as any of the streams, but if this is the case, then there is no need to compute the max at all. Shouldn't the overall duration be the maximum duration of any of the streams and the format?