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

A better example app #26

Closed GustavoContreiras closed 5 years ago

GustavoContreiras commented 5 years ago

Pick video from gallery or camera and then see the results on screen or on console.

I/flutter (15547): [Compressing Video] start
I/flutter (15547): FlutterVideoCompress: You can try to subscribe to the
I/flutter (15547):     compressProgress$ stream to know the compressing state.
D/FFmpeg  (15547): Build.CPU_ABI : armeabi-v7a
D/FFmpeg  (15547): ffmpeg is ready!
D/FFmpeg  (15547): Running publishing updates method
I/flutter (15547): [Compressing Video] done! 18s
I/flutter (15547): [Getting Thumbnail BytesList] start
I/flutter (15547): [Getting Thumbnail BytesList] done! 0s
I/flutter (15547): [Getting Thumbnail File] start
I/flutter (15547): [Getting Thumbnail File] done! 0s
I/flutter (15547): [Getting Gif File] start
D/FFmpeg  (15547): Build.CPU_ABI : armeabi-v7a
D/FFmpeg  (15547): ffmpeg is ready!
D/FFmpeg  (15547): Running publishing updates method
I/flutter (15547): [Getting Gif File] done! 23s

Obs: couldn't make it show the video perfectly with VideoPlayer plugin, it's too buggy. Obs²: compressing is flipping width size with height size

Screenshot_20190620-013937

Screenshot_20190620-013946

rurico commented 5 years ago

@GustavoContreiras Obs: I will add it later. Obs²: I should be doing some testing.