cmxl / FFmpeg.NET

.NET wrapper for common ffmpeg tasks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TotalDuration always show 00:00:00

puangpaka20 opened this issue · comments

hello i try follow up the code with "Subscribe to events" tutorial everything fine only the "TotalDuration", While convert the video file it always show 00:00:00

should be fixed by #23
Next version will contain the PR

The TotalDuration property is actually always set to TimeSpan.Zero.
I guess this was an oversight even before forking the mediatoolkit library.
But as a workaround the total duration can be retrieved by GetMetaDataAsync(...)

very thank you for fix this.