从.ts文件即时生成.m3u8 [英] Generate .m3u8 on the fly from .ts files

查看:194
本文介绍了从.ts文件即时生成.m3u8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有遵循此模式的.ts文件段列表

I have a list of .ts file segments that follow this pattern

http://www.someaddress.com/file_11223344.ts
http://www.someaddress.com/file_11223345.ts
http://www.someaddress.com/file_11223346.ts
...

由于我需要一个m3u8文件才能打开此视频,因此有没有办法例如在.php中手动生成此m3u8(从ts片段).原始的m3u8仅在具有用户/密码的情况下才受保护和生成.这是实时流,始终根据时间戳进行更新和生成

Since I need a m3u8 file in order to open this videos, is there a way to generate this m3u8 manually (from ts segments) in .php for example. Original m3u8 is protected and generated only if I have user/pass id etc. This is live stream that is always updated and generated based on a timestamp

推荐答案

如果您有主文件,则说:

if you have the main file, let's say : http://www.someaddress.com/file_11223344.ts you don't have to convert anything. just change the end of the URL from .ts to .m3u8 that's it :)

这篇关于从.ts文件即时生成.m3u8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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