在 MediaPlayer 初始化时出现 PVMFFailure,但在 Nexus one 上则不然

发布于 11-26 10:38 字数 655 浏览 3 评论 0原文

我有一个 VideoView 正在播放 sdcard 中的一些 .mp4 文件。该代码在 Nexus one (2.3)、Samsung Galaxy(2.2 上的 TMobile 和 AT&T 版本)甚至 Viewsonic 平板电脑上运行良好,但当我在 2.1 上的 Samsung Moment 上尝试时,我收到一个弹出窗口“抱歉,该视频无法播放”,并且 logcat 有一些相当简洁的消息(如下),这些消息主要涉及流媒体或 MP3 文件的问题。视频是 H.264/AAC - 是否需要是 H.264/MP3?

日志猫:

W/MediaPlayer(2538): 信息/警告 (1, 26)
I/MediaPlayer(2538):信息(1,26)
E/PlayerDriver(1891):命令 PLAYER_INIT 已完成,但出现错误或信息 PVMFFailure
E/MediaPlayer(2538):错误(1,-1)
E/MediaPlayer(2538):错误(1,-1)
D/VideoView(2538):错误:1,-1
W/PlayerDriver(1891):PVMFInfoErrorHandlingComplete

谢谢, 格雷格

I have a VideoView that is playing back some .mp4 files from sdcard. The code works fine on a Nexus one (2.3), Samsung Galaxy (both TMobile and AT&T versions on 2.2), even a Viewsonic tablet, but when I try it on a Samsung Moment on 2.1, I get a pop-up saying "Sorry, this video can not be played", and the logcat has some rather terse messages (below), which mostly pull up issues with streaming or MP3 files. The video is H.264/AAC - does it need to be H.264/MP3?

Logcat:

W/MediaPlayer( 2538): info/warning (1, 26)
I/MediaPlayer( 2538): Info (1,26)
E/PlayerDriver( 1891): Command PLAYER_INIT completed with an error or info PVMFFailure
E/MediaPlayer( 2538): error (1, -1)
E/MediaPlayer( 2538): Error (1,-1)
D/VideoView( 2538): Error: 1,-1
W/PlayerDriver( 1891): PVMFInfoErrorHandlingComplete

Thanks,
Greg

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

Oo萌小芽oO2024-12-03 10:38:34

我有类似的问题。点击此链接可能会有所帮助。

在三星设备上播放 mp4 文件时出现 PVMFErrContentInvalidForProgressivePlayback 错误

另外,您可能会发现使用带有 GUI 的 Mp4Box 的一些帮助通过此链接

Android MP4 moov mdat 问题

I had similar problem. Following this link may help.

getting PVMFErrContentInvalidForProgressivePlayback error while playing mp4 files on samsung devices

Also you may find a little help for using Mp4Box with GUI throught this link

Android MP4 moov mdat problem

江湖正好2024-12-03 10:38:34

我认为这是几件事。我联系了三星支持,并得到了一份非常简单的答复,其中包含支持的编解码器和尺寸列表。尺寸?没错,Moment 不支持任何 16:9 格式的视频尺寸。我将其更改为 4:3,但使用 mp4 容器仍然无法播放(即使使用 H.264 应该可以播放)。所以我换成带有H.264的3gp容器,它工作了。以下是三星的列表:

感谢您的来信。

以下是 Samsung Moment (SPH-M900) 支持的视频格式和规格:

编解码器:
MPEG-4 SP
MPEG-4 AVC
H.263

文件格式:
3GP/3G2
MP4
AVI
WMV

视频像素分辨率:
640×480
352×288
320×240
176 X 144

每秒 帧:
15, 30

I think it was a couple things. I contacted Samsung support, and got a very stock reply with the list of codecs and sizes supported. Sizes? That's right, the Moment does not support any 16:9 format video sizes. I changed it to 4:3, but it still didn't play using an mp4 container (even though it should have, using H.264). So I changed to a 3gp container with H.264, and it worked. Here was the list from Samsung:

Thank you for your correspondence.

These are the video formats and specification supported by the Samsung Moment (SPH-M900):

Codecs:
MPEG-4 SP
MPEG-4 AVC
H.263

File Formats:
3GP/3G2
MP4
AVI
WMV

Video Pixel Resolution:
640 X 480
352 X 288
320 X 240
176 X 144

Frames Per Second:
15, 30

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文