Android sdk cut/trim video file

前端 未结 5 1430
庸人自扰
庸人自扰 2020-11-29 02:33

Is there any way to cut a video (mp4 or 3gp) on android, like use only the last 5 seconds of the movie... on iphone this is possible using the AVAssetExportSession but on an

5条回答
  •  暖寄归人
    2020-11-29 03:10

    You can try INDE Media for Mobile - https://software.intel.com/en-us/articles/intel-inde-media-pack-for-android-tutorials

    It has transcoding\remuxing functionality as MediaComposer class and a possibility to select segments for resulted files. Since it uses MediaCodec API inside it is very battery friendly and works as fast as possible

    enter image description here

提交回复
热议问题