首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安卓平板电脑无法播放ts文件

安卓平板电脑无法播放ts文件
EN

Stack Overflow用户
提问于 2012-08-16 18:30:01
回答 1查看 477关注 0票数 0

我正在试着播放我录制的文件。该文件在vlc(linux pc)和Moboplayer(android平板电脑)中播放效果良好。在使用android平板电脑的默认播放器时,它在logcat中显示了这一点。

代码语言:javascript
复制
I/ActivityManager(  201): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.mymediaplayer/.MyVideoView bnds=[656,246][752,342]} from pid 417
I/System.out(20286): MyVideoView.onCreate()
I/System.out(20286): MyVideoView.onResume()
V/TabletStatusBar(  281): setLightsOn(true)
I/AwesomePlayer(  141): setDataSource_l('/sdcard/video/TunerOut.ts')
I/avc_utils(  141): found AVC codec config (720 x 480, Baseline-profile level 3.1)
I/MPEG2TSExtractor(  141): haveAudio=1, haveVideo=1
E/OMXCodec(  141): Attempting to allocate OMX node 'OMX.TI.DUCATI1.VIDEO.DECODER'
E/OMXCodec(  141): Attempting to allocate OMX node 'OMX.Nvidia.h264.decode'
E/OMXCodec(  141): Attempting to allocate OMX node 'OMX.qcom.7x30.video.decoder.avc'
E/OMXCodec(  141): Attempting to allocate OMX node 'OMX.qcom.video.decoder.avc'
E/OMXCodec(  141): Attempting to allocate OMX node 'OMX.TI.Video.Decoder'
E/OMXCodec(  141): Attempting to allocate OMX node 'OMX.SEC.AVC.Decoder'
E/OMXCodec(  141): Successfully allocated OMX node 'OMX.SEC.AVC.Decoder'
I/OMXCodec(  141): [OMX.SEC.AVC.Decoder] AVC profile = 66 (Baseline), level = 31
E/OMXCodec(  141): [OMX.SEC.AVC.Decoder] Video O/P format.eColorFormat 0x40b452b1
I/OMXCodec(  141): [OMX.SEC.AVC.Decoder] video dimensions are 720 x 480
D/OpenGLRenderer(  417): Flushing caches (mode 1)
I/ActivityManager(  201): Displayed com.example.mymediaplayer/.MyVideoView: +323ms
W/InputManagerService(  201): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@4106dc38 (uid=10036 pid=20503)
W/IInputConnectionWrapper(20503): showStatusIcon on inactive InputConnection
E/OMXCodec(  141): Attempting to allocate OMX node 'OMX.Nvidia.mp2.decoder'
**E/MediaPlayer(20286): error (1, -2147483648)
E/MediaPlayer(20286): Error (1,-2147483648)
D/VideoView(20286): Error: 1,-2147483648**
D/OpenGLRenderer(  417): Flushing caches (mode 0)
W/InputManagerService(  201): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41033300
D/AudioHardware(  141): AudioHardware pcm playback is going to standby.

什么是错误1,-2147483648

EN

回答 1

Stack Overflow用户

发布于 2012-09-12 00:36:12

我也犯了这个错误。原因(在我的例子中)是mp3的格式错误,即

代码语言:javascript
复制
MPEG ADTS, layer II, v1, 192 kbps, 44.1 kHz, Stereo

而一个“好的”mp3的格式是:

代码语言:javascript
复制
MPEG ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11985276

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档