在播放视频的时候,我在日志中看到了这些错误
Logcat:
E/VDO_LOG(132): [Err] ? un-support type of NAL
E/OMXCodec(132): [OMX.MTK.VIDEO.DECODER.AVC] No more output data in fillOutputBuffer, mFilledBuffers size=17
E/FlvExtractor(132): [ERROR]:Not an FLV file!!!它不会使程序崩溃,但有时我在视频中看到了一些错误
视频播放器代码:
String fileName = "android.resource://" + getPackageName() + "/" + R.raw.myVideo;
vv = (VideoView) this.findViewById(R.id.surface);
vv.setVideoURI(Uri.parse(fileName));
vv.setOnCompletionListener(this);
vv.start();视频文件信息:
length : 8 seconds
width : 720 px
height : 1280 px
total data rate : 5403 kbits / s
fps : 25 images / s
type : MP4
codec : H264 - MPEG-4 AVC (part10) (avc1)问题可能是什么,以及如何解决?
发布于 2014-04-11 01:30:00
H264 - MPEG-4 AVC (part10)是问题所在.大多数android设备都不会播放它。你的代码没什么问题。检查这个链接什么是有效的。你需要一个MPEG-4基线流.http://developer.android.com/guide/appendix/media-formats.html#recommendations
https://stackoverflow.com/questions/22239135
复制相似问题