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.09k stars 262 forks source link

在小米5手机压缩出现压缩失败 #37

Closed lshAndroid closed 5 years ago

lshAndroid commented 5 years ago

小米手机5,Android 8.0,26.但是出现compress video failed

iknow4x commented 5 years ago

只是压缩失败?程序有奔溃吗? 如果是奔溃请提供下奔溃日志。

J.Chou
发自我的 iPhone

在 2019年2月27日,11:14,Franklin notifications@github.com 写道:

小米手机5,Android 8.0,26.但是出现compress video failed

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

lshAndroid commented 5 years ago

程序没有崩溃, VideoCompressor.compress(this, in, out, new VideoCompressListener() { @Override public void onSuccess(String message) { ToastUtil.longShow(VideoTrimmerActivity.this,"成功"+message); }

  @Override
  public void onFailure(String message) {
    ToastUtil.longShow(VideoTrimmerActivity.this, "失败"+message);
  }

回调onFauilure方法了

iknow4x commented 5 years ago

@lshAndroid 可以在VideoCompressor里查看下compress失败的具体信息。

lshAndroid commented 5 years ago

现在回调成功没问题了,懵逼,谢谢.可能是小米手机缓存问题