【发布时间】:2020-02-19 09:15:34
【问题描述】:
我正在为我的 android 项目实施 FFmpeg。
我使用ffmpeg-android-java对音频和视频文件进行编辑。
现在我正在尝试使用 FFmpeg 修剪我的音频文件,而 FFmpeg 会忽略我的修剪开始时间。
我提到了很多帖子,例如:
Trim video with reference to a start time and end time using FFMPEG
https://www.oodlestechnologies.com/blogs/FFMPEG-for-android/
但是,我仍然面临同样的问题。
下面是我的 ffmpeg 命令:
String[] complexCommand = {"-y", "-ss", "00:00:20", "-i", uploadFilePath , "-t", "30", editFilePath};
我也试过
String[] complexCommand = {"-y", "-ss", "00:00:20", "-i", uploadFilePath, "-t", "30", editFilePath};
和
String[] complexCommand = {"-y", "-ss", "00:00:20", "-i", uploadFilePath, "-t", "30", editFilePath};
但 FFmpeg 总是将我的音频文件从开始时间00:00:00 修剪到00:00:30。它会忽略我的开始时间或-ss 时间
如果需要更多文件或信息,请在 cmets 中提及。
【问题讨论】:
标签: android trim android-ffmpeg