我不断得到的是一个对话框,上面写着:
“无法播放视频”
“抱歉,这部影片无法播放.”
在LogCat中报告了错误,但我不理解它们,我试图在互联网上搜索没有任何运气的进一步解释.见下文:
03-30 05:34:26.807: ERROR/QCOmxcore(51): OMxcore API : Free Handle 390d403-30 05:34:26.817: ERROR/QCOmxcore(51): Unloading the dynamic library for OMX.qcom.vIDeo.decoder.avc03-30 05:34:26.817: ERROR/PlayerDriver(51): Command PLAYER_PREPARE completed with an error or info PVMFErrnoresources03-30 05:34:26.857: ERROR/MediaPlayer(14744): error (1,-15)03-30 05:34:26.867: ERROR/MediaPlayer(14744): Error (1,-15)
有时我也得到这个:
03-30 05:49:49.267: ERROR/PlayerDriver(51): Command PLAYER_INIT completed with an error or info PVMFErrResource03-30 05:49:49.267: ERROR/MediaPlayer(19049): error (1,-17)03-30 05:49:49.347: ERROR/MediaPlayer(19049): Error (1,-17)
这是我正在使用的代码(在我的onCreate()方法中):
this.setContentVIEw(R.layout.main);//just a simple VIDeoVIEw loading files from the SD cardVIDeoVIEw myIntroVIEw = (VIDeoVIEw) this.findVIEwByID(R.ID.VIDeoVIEw01);MediaController mc = new MediaController(this);myIntroVIEw.setMediaController(mc);myIntroVIEw.setVIDeoPath("/sdcard/test.mp4");myIntroVIEw.requestFocus();myIntroVIEw.start();
请帮忙!
解决方法 好的,这里有.我一直在Adobe PremIEre上工作的视频应该是480×800(WxH),但是我有Adobe Media Encoder使用“UYVY”视频编解码器输出序列作为“未压缩的Microsoft AVI”,帧速率为24fps,渐进式,方形像素和尺寸:720×800(WxH).这会在视频内容的两侧输出一个相当大的文件,其中包含120px黑色边框.然后我将视频带入Handbrake 0.9.4并使用以下设置(我从Regular-> normal预设开始):Container: MP4 fileLarge file size: [un-Checked]Web-optimized: [un-Checked]iPod 5G support: [un-Checked]WIDth: 320 (this is key,any higher than 320 and it won’t work)Height: 528Keep Aspect Ratio: [Checked]Anamorphic: NoneCrop left: 120Crop Right: 120Everything under the "VIDeo Filter" tab set to "Off"VIDeo Codec: H.264(x264)Framerate: same as source2-Pass EnCoding: [Checked]Turbo first pass: [un-Checked]Avg Bitrate: 384Create chapter markers: [un-Checked]Reference Frames: 2Mixed References: [un-Checked]B-Frames: 0Motion Estimation Method: Uneven Multi-HexagonSub-pixel Motion Estimation: 9Motion Estimation Range: 16Analysis: Default8x8 DCT: [un-Checked]CABAC Entropy Coding: [un-Checked]No Fast-P-Skip: [un-Checked]No DCT-Decimate: [un-Checked]Deblocking: Default,DefaultPsychovisual Rate distortion: [MAX]
我的主要问题是我试图输出480×800(WxH)尺寸的mp4文件.将宽度更改为320(更高的值不起作用),但保持正确的宽高比后,输出视频现在可以正常播放.我希望这可以帮助其他有类似问题的人.
旁注:我希望AndroID视频限制得到更好的记录.
总结以上是内存溢出为你收集整理的Android – 无法播放任何视频(mp4 / mov / 3gp /等)?全部内容,希望文章能够帮你解决Android – 无法播放任何视频(mp4 / mov / 3gp /等)?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)