Thread: [Solved] M3U and M3U8 general support
View Single Post
  #1  
Old 19.03.2016, 01:25
mostafaz4 mostafaz4 is offline
Junior Loader
 
Join Date: Aug 2012
Posts: 13
Lightbulb M3U and M3U8 general support

m3u and m3u8 playlists are commonly used in online media streaming that store media in fragments that requires a browser to decrypt fragments to view them.

What i'm talking about is general m3u parser that parse any m3u/m3u8 files into a media file.

Why?: Because some media hosters are not supported as a plugin in jdownloader, so with a m3u8 file we can download media from any hoster.


Suggested steps for the plugin:

1. Download fragments:
Code:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:11
#EXT-X-KEY:METHOD=AES-128,URI="f7f7ff0f0ff777f7f77fff7f7f777f7f.key",IV=0x654fbe654f65b48ee65465efb4ef5b46
#EXTINF:10.007800,
fragment0.ts
OR
**External links are only visible to Support Staff**

2. Decrypt fragments using the key file and iv provided in the m3u8 file:
Code:
#EXT-X-KEY:METHOD=AES-128,URI="f7f7ff0f0ff777f7f77fff7f7f777f7f.key",IV=0x654fbe654f65b48ee65465efb4ef5b46

3. Combine fragments into one file:
"fragment0.ts"+"fragment1.ts"+"fragment3.ts" --> movie.mp4

So, input would be something like: **External links are only visible to Support Staff****External links are only visible to Support Staff**
Output shall be: something.mp4

**This is already implemented in some hoster plugins so it won't be difficult, but i think a plugin for general m3u8 files would be useful if the hoster is not supported.

Thanks,:biggrin:
Reply With Quote