cmxl / FFmpeg.NET

.NET wrapper for common ffmpeg tasks
MIT License
611 stars 99 forks source link

TotalDuration always show 00:00:00 #29

Closed puangpaka20 closed 5 years ago

puangpaka20 commented 5 years ago

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

cmxl commented 5 years ago

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

cmxl commented 5 years ago

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(...)

puangpaka20 commented 5 years ago

very thank you for fix this.