首页 > 解决方案 > 使用 android FFMPEG 库处理有限的视频帧

问题描述

我只需要显示视频中的 10 帧,下面的代码带来了视频的所有帧,FFmpeg 中是否有任何查询集可用于 android 中有限数量的帧并显示在 WhatsApp 等视频编辑中。非常感谢下面这样的查询。

String[] complexCommand = {"-y", "-i", yourRealPath, "-an", "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000 , dest.getAbsolutePath()};

标签: android-studioffmpegandroid-ffmpeg

解决方案


推荐阅读