rurico / flutter_video_compress

Generate a new file by compressed video, and provide metadata. Get video thumbnail from a video path, supports JPEG/GIF. To reduce app size not using FFmpeg in IOS.
MIT License
188 stars 73 forks source link

Fixed duration issue on android #20

Closed vlada3003 closed 5 years ago

vlada3003 commented 5 years ago

Problem was that duration should have been seconds and not milliseconds in videoToGif conversion. This was changed by removing 1000 multiplier.

vlada3003 commented 5 years ago

I'm sorry I have introduced these two issues in your repo. I see that you have fixed the ios naming issue with gif file that shouldn't have been named .mov. The other is that I have mistakenly used milliseconds for duration and not seconds as per documentation. Also, I have added deletion of compressed video file on ios, and reduced frame rate to 15 on android.