iPhone MP4 视频播放列表
我有一个 MP4 容器内编码为 H.264/AAC 的素材库。现在我可以使用 Apache 和 mod_h264 成功地将素材传输到 iPhone。
我想要做的是告诉 iPhone 连续播放三个剪辑。
自然的解决方案似乎是创建一个 .m3u8 播放列表并将播放器指向该位置,但是当我这样做时,我只能听到音频而没有视频。我不确定这是否是因为 iPhone 仅支持编码为 Mpeg2 传输流 (.ts) 的播放列表视频,或者我是否做错了什么。
有人有过将 MP4 文件以播放列表的形式传输到 iPhone 的经历吗?
I have a library of footage encoded as H.264/AAC inside MP4 containers. Right now I can successfully stream the footage to the iPhone using Apache and mod_h264.
What I'd like to be able to do is tell the iPhone to play three clips back to back.
The natural solution seems to be to create a .m3u8 playlist and point the player at that, however when I do I get audio and no video. I'm not sure if this is because the iPhone only supports playlist video thats encoded as an Mpeg2 Transport Stream (.ts) or if I'm doing something wrong.
Has anyone had any experience streaming MP4 files to the iPhone in a playlist?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来他们只支持 MPEG-2 传输流。
来自 HTTP 直播常见问题解答
如果您愿意转换文件,我建议您采用以下方法:
It looks like they only support MPEG-2 transport streams.
From the HTTP Live Stream FAQ
If you're open to converting your files, I would suggest the following approach:
以下是从客户端角度(使用 itunes)的一些信息:
http://www.macworld.com/article/140935/2009/06 /video_playlists_iphone.html
iPhone 确实支持 .m3u8 播放列表,因此您应该能够使其正常工作。
您是否尝试过从 iTunes 导出智能播放列表?
Here is a little info from the client perspective (using itunes):
http://www.macworld.com/article/140935/2009/06/video_playlists_iphone.html
iphone does support .m3u8 playlists, so you should be able to get it to work.
Have you tried exporting a smart playlist from itunes?