PDA

View Full Version : can i add a url before .ts files in a m3u8 file to batch download all .ts parts?


ItsAngel
09-14-2015, 03:55 AM
hey guys, sorry for the confusing title. is there any way to add one url for all the .ts files to download from? i have to use ffmpeg on the m3u8 file AFTER i edit the key file url (if i try and download via http://example.m3u8 then the file has the wrong key file URL thus wont download. so i must download it and edit it) But when i do that i get this in the .M3u8

#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-KEY:METHOD=AES-128,URI="http://Example.key"
#EXTINF:10,
x_xxxx_xxx_xxx_xxx_.ts
#EXTINF:10,
x_xxxx_xxx_xxx_xxx_.ts
#EXTINF:10,
x_xxxx_xxx_xxx_xxx_.ts
#EXTINF:10,

I know the url that goes before all the x_xxxx_xxx_xxx_xxx_.ts so is there anyway to batch download without me having to physically go through all (over 1,000 in this case) and paste the first half of the .ts urls? maybe a some script or something?
Thanks in advanced!

EDIT: i edited all the file/url names out due to this being a recently "patched" way to download files from a certain site and i dont want it to get patched again. :D

surya987
09-14-2015, 10:39 PM
download key and put in same folder as m3u8 file and than edit m3u8 file to use it locally ....

ItsAngel
09-18-2015, 03:25 PM
download key and put in same folder as m3u8 file and than edit m3u8 file to use it locally ....

That would work, but the M3u8 file doesn't have the full urls so it doesn't work. I added all of them manually (it sucked and took forever) but it worked. Just searching for a way to do this where I don't have to individually paste the missing URL 1 by 1

hoopjon
09-18-2015, 11:19 PM
download key and put in same folder as m3u8 file and than edit m3u8 file to use it locally ....

Could you help me with this step?

Do you mean the line where it says #EXT-X-KEY:METHOD=AES-128,URI="http://Example.key" change the URI to the location of the .key file?

Thank you