在Android上播放.ts视频文件? [英] Play .ts video file on Android?

查看:1233
本文介绍了在Android上播放.ts视频文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在流视频方面还很陌生,所以请多多包涵. :)

I am pretty new at streaming video, so please bear with me. :)

我正在尝试将m3u8流从iPhone移植到Android.在m3u8供稿中查找,我发现了一些.ts文件.据我所知,.ts文件本身就是包含视频流(基本流)的包装器.

I am trying to port an m3u8 stream over from iPhone to Android. Looking in the m3u8 feed, I found some .ts files. From what I can tell, .ts files are, themselves, wrappers that contain the video stream (Elementary Stream).

是否可以在Android中播放.ts文件? (文档仅列出3gp和mp4作为受支持的格式.)

Is it possible to play a .ts file in Android? (The docs only list 3gp and mp4 as supported formats.)

是否有一种方法可以提取基本流并仅处理视频提要?如果是3gp或mp4,就可以了.

Is there a way to extract the Elementary Stream and just process the video feed? If that is in 3gp or mp4, I should be ok.

Stagefright是否可以处理.ts? Stagefright甚至可用吗?我读到它存在/有问题.

Will Stagefright handle .ts? Is Stagefright even available? I read that there are/were some problems with it.

(作为进一步的警告,我没有从服务器人员那里得到太多帮助.他们正在寻求Flash播放器解决方案,包括专有播放器.它们不会为我提供3gp或mp4提要,但是我我希望可以在.ts文件中找到它.)

(As a further caveat, I am not getting much help from my server guys. They are pushing for a Flash player solution, including a proprietary player. They will not provide me with a 3gp or an mp4 feed, but I'm hoping I can find that in the .ts file.)

我愿意接受其他建议.多谢您对这个新手的耐心配合. :)

I'm open to other suggestions. Thanks for your patience with this newbie. :)

推荐答案

Gingerbread和更低版本中的Android stagefright不支持播放.ts(传输流)或基本流.正如您正确指出的那样,它仅支持MP4/3GP/MP3文件格式.

Android stagefright in Gingerbread and prior versions does not support playback of .ts (transport stream) or elementary stream. As you have rightly pointed out, it only supports MP4/3GP/MP3 file formats.

这篇关于在Android上播放.ts视频文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆