Generate .m3u8 on the fly from .ts files

29,868

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 :)

Share:
29,868
Bojan VukasovicTest
Author by

Bojan VukasovicTest

Updated on April 20, 2020

Comments

  • Bojan VukasovicTest
    Bojan VukasovicTest about 4 years

    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
    ...
    

    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

  • norcal johnny
    norcal johnny over 7 years
    You are correct my man! I just used this method with Atom editor creating a Roku app and it did indeed work! Just had to make sure there was no BOM and yup, it works.
  • Senõr Ganso
    Senõr Ganso almost 5 years
    It works, but it appears to lose information along the way (like additional audio streams). Any workarounds for that?