wmv 中的 h264 剪辑无法在 iPad 上的 HTML5 视频中工作(黑屏)
我需要使 .wmv 文件在 iPad 上的视频标签中播放。使用 Handbrake 我已经在 Chrome 中播放了视频,所以我知道我的语法没问题。我什至可以在 iPad 上播放另一个网站的 mp4,没有任何问题。
这是 ffmpeg 关于我的(不工作)流的说法:
Stream #0.0(und): Video: h264 (Main), yuv420p, 320x238 [PAR 1:1 DAR 160:119], 32 kb/s, 28.77 fps, 90k tbr, 90k tbn, 180k tbc
这是 ffmpeg 关于他们(工作)流的说法:
Stream #0.0(und): Video: h264 (Main), yuv420p, 1280x544 [PAR 1:1 DAR 40:17], 1677 kb/s, 24.99 fps, 50 tbr, 90k tbn, 50 tbc
这是我的标记: html = '' + '' + '
视频失败!
' '; $div.append(html);我认为这是因为 wmv 于 2002 年首次编码导致了该问题,但我无法确定这一点。 以下是 ffmpeg 关于 wmv 的说法:
Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #0, asf, from 'pattySlotFormation.wmv':
Metadata:
WMFSDKVersion : 8.00.00.4477
WMFSDKNeeded : 0.0.0.0000
artist : Craig
copyright : 7/31/2002
Duration: 00:00:13.77, start: 0.000000, bitrate: 691 kb/s
Chapter #0.0: start 3.100000, end 13.779000
Metadata:
title : Clip 73
Stream #0.0: Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
Stream #0.1: Video: wmv1, yuv420p, 320x240, 29.97 tbr, 1k tbn, 1k tbc
I need to make .wmv files play in the video tag on iPad. Using Handbrake I've gotten videos to play in Chrome, so I know my syntax is fine. I've even got another website's mp4 to play on the iPad with no problems.
This is what ffmpeg says about my (not working) stream:
Stream #0.0(und): Video: h264 (Main), yuv420p, 320x238 [PAR 1:1 DAR 160:119], 32 kb/s, 28.77 fps, 90k tbr, 90k tbn, 180k tbc
This is what ffmpeg says about their (working) stream:
Stream #0.0(und): Video: h264 (Main), yuv420p, 1280x544 [PAR 1:1 DAR 40:17], 1677 kb/s, 24.99 fps, 50 tbr, 90k tbn, 50 tbc
Here is my markup:
html = '' +
'' +
'
video fail!
'
';
$div.append(html);
I this that because the wmv's were first encoded in 2002 is causing the issue, but I have no way of being sure of that.
Here is what ffmpeg says about the wmv:
Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #0, asf, from 'pattySlotFormation.wmv':
Metadata:
WMFSDKVersion : 8.00.00.4477
WMFSDKNeeded : 0.0.0.0000
artist : Craig
copyright : 7/31/2002
Duration: 00:00:13.77, start: 0.000000, bitrate: 691 kb/s
Chapter #0.0: start 3.100000, end 13.779000
Metadata:
title : Clip 73
Stream #0.0: Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
Stream #0.1: Video: wmv1, yuv420p, 320x240, 29.97 tbr, 1k tbn, 1k tbc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还没弄清楚为什么会发生这种情况,但我找到了两个解决方案。
将视频上传到 YouTube 并将它们嵌入到您的网页中。
将视频上传到 youtube,然后下载为 mp4。该文件可以在 iPad 上运行。
I haven't figured out why this is happening, but I've found 2 solutions.
Upload the videos to youtube and embed them on your webpage.
Upload the videos to youtube and then download them as an mp4. That file will work on iPad.