我有一些视频,从http播放,但不会播放SD卡。视频完全相同。 Log cat是:
02-04 11:17:21.139: E/PlayerDriver(24273): Creating Non-Tunnel mode playback - uncompressed MIO
02-04 11:17:21.219: E/QCvdec(24273): get_parameter: unknown param 0ff7a347
02-04 11:17:21.219: W/MediaPlayer(15066): info/warning (1, 26)
02-04 11:17:21.229: I/MediaPlayer(15066): Info (1,26)
02-04 11:17:21.229: W/QCvdec(24273): ======================================================================
02-04 11:17:21.229: W/QCvdec(24273): Open Max Statistics
02-04 11:17:21.229: W/QCvdec(24273): ======================================================================
02-04 11:17:21.229: W/QCvdec(24273): empty this buffer rate = NaN
02-04 11:17:21.229: W/QCvdec(24273): empty this buffer total time = 0
02-04 11:17:21.229: W/QCvdec(24273): empty this buffer count = 0
02-04 11:17:21.229: W/QCvdec(24273): ======================================================================
02-04 11:17:21.229: E/PlayerDriver(24273): Command PLAYER_PREPARE completed with an error or info PVMFErrNoResources
02-04 11:17:21.229: E/MediaPlayer(15066): error (1, -15)
02-04 11:17:21.239: E/MediaPlayer(15066): Error (1,-15)
02-04 11:17:21.239: D/VideoView(15066): Error: 1,-15
02-04 11:17:21.239: W/PlayerDriver(24273): PVMFInfoErrorHandlingComplete
但我认为这不是完全记录,因为在Android源代码中我发现:
DEBUG_PRINT_LOW("\n get_parameter returning Height %d , Width %d \n",
m_height, m_width);
我没有找到,如何启用低日志。
在其他设备(如三星galaxy S3,android 4.1.3)上,视频播放来自http和sdcard。我试图将视频转换为更小的尺寸,因此720x480是最大的尺寸。视频大小可能有问题吗?
我还检查过,如果视频无法从VideoView播放,它也无法播放默认的Android媒体播放器应用程序。
我的手机是三星galaxy ace(android 2.3.5)
也许某人有同样的错误并建立了解决方案?或者有人可以告诉接下来的步骤更深入地调试这个问题吗?