【发布时间】:2016-08-30 07:17:34
【问题描述】:
我正在尝试使用 Android 的 MediaExtractor 从视频文件中提取帧,但由于某种原因,readSampleData() 的第一个结果是 -1。我做错了什么?
文件本身当然是可以播放的。
编辑 2:This is the link to the source code for the MediaExtractor that has this problem
【问题讨论】:
-
developer.android.com/reference/android/media/…, int) 。如果没有更多样本可用,则返回 -1。“我做错了什么”不知道,因为您没有提供任何代码。