meh/rust-ffmpeg

Streams with invalid duration

tindzk opened this issue · 1 comments

metadata returns an invalid duration for the streams of this file:

stream index 0:
        duration (stream timebase): -9223372036854775808
        duration (seconds): -9223372036854776.00
stream index 1:
        duration (stream timebase): -9223372036854775808
        duration (seconds): -9223372036854776.00

As a workaround I will rely on context.duration() which seems to be correct.

I am having this issue also. Because 2^64 / 2 = 2^63 so it is reading msb is1 and the rest are 0.