iknow4x / Android-Video-Trimmer

The Android-Video-Trimmer project implements the selection of clips for long and short videos. It uses MediaMetadataRetriever to obtain video frames, and uses ffmpeg for video cropping and video compression.
Apache License 2.0
1.11k stars 264 forks source link

如果裁剪的VIDEO_MAX_TIME不是10的话页面上存在一个显示bug #59

Closed Noah1991 closed 4 years ago

Noah1991 commented 4 years ago

等VIDEO_MAX_TIME不等于10的时候,裁剪时,底部seekbar所显示的视频时长不正确。

Noah1991 commented 4 years ago

将MAX_COUNT_RANGE设置为VIDEO_MAX_TIME后,可以规避这个问题,但是出现个新问题,seekbar显示的时长比真实时长差1秒。 还有就是以上问题我是用30秒以上的视频测试的

Noah1991 commented 4 years ago

将 public static final int THUMB_WIDTH = (SCREEN_WIDTH_FULL - RECYCLER_VIEW_PADDING 2) / VIDEO_MAX_TIME; 改为 public static final int THUMB_WIDTH = (SCREEN_WIDTH_FULL - RECYCLER_VIEW_PADDING 2) / MAX_COUNT_RANGE; 后正常了

cuk2dn95 commented 2 years ago

@Noah1991 thanks, for everyone wants to change VIDEO_MAX_TIME just change public static final int THUMB_WIDTH = (SCREEN_WIDTH_FULL - RECYCLER_VIEW_PADDING * 2) / MAX_COUNT_RANGE;