matrix86 / flowdownloader Goto Github PK
View Code? Open in Web Editor NEWSimple software to download HLS encrypted files used by FlowPlayer video player
License: GNU General Public License v3.0
Simple software to download HLS encrypted files used by FlowPlayer video player
License: GNU General Public License v3.0
I am getting the following error when I try to download encrypted videos from players other than flowplayer (link):
flowdownloader -k "MzliZDRmNmRlOTg4ZDliZA==" -u "https://video.dious.cc/20200724/GmYb4Mmm/index.m3u8" -debug
←[1mflowdownloader v1.1.2←[0m ←[2m(built for windows amd64 with go1.17.3)←[0m
←[2mAuthor: Gianluca 'Matrix86' Braga←[0m
[2020-12-18 13:11:13] ←[2m←[30m←[100mdbg←[0m base url: 'https://video.dious.cc/20200724/GmYb4Mmm/'←[0m
Choose resolution/bandwidth:
0) [1280x546] 1000000
> 0
[2020-12-18 13:11:16] ←[97m←[41merr←[0m resolution selection: http request error: http response status: 404 Not Found←[0m
But it's downloading when AES key is empty. Can we generalize the flowdownloader to support more players?
flowdownloader -s -u https://sod.bunediy.com/20211118/qGLm7MfT/index.m3u8
←[1mflowdownloader v1.1.2←[0m ←[2m(built for windows amd64 with go1.17.3)←[0m
←[2mAuthor: Gianluca 'Matrix86' Braga←[0m
[2020-12-18 13:17:10] ←[97m←[43mwar←[0m AES key is empty←[0m
[2020-12-18 13:17:11] ←[97m←[42minf←[0m download is starting...←[0m
After It downloaded the file, it is still unplayable with VLC. It detected the key and downloaded and decyrpted the file. But doesn;t work still.
In my case, the primary and secondary index files and also the ts files are behind an authentication system that doesn't allow accessing the files for the second time. I have copied the primary and secondary m3u8 files by copying them from the Chrome cache. I have also downloaded the key. Is there a way to pass all the files to your command locally?
primary index:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=483328,RESOLUTION=640x360,NAME="360"
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_360p.m3u8&expires=1604774885&signature=b0ab6deb8173345a19c87dd73a4fcf5b
#EXT-X-STREAM-INF:BANDWIDTH=790528,RESOLUTION=854x480,NAME="480"
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_480p.m3u8&expires=1604774885&signature=a8b70ce63843f6cd049e70762a587451
#EXT-X-STREAM-INF:BANDWIDTH=1404928,RESOLUTION=1280x720,NAME="720"
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_720p.m3u8&expires=1604774885&signature=9dbf4c9fb64e6530282a7cb63b54a4ac
#EXT-X-STREAM-INF:BANDWIDTH=1916928,RESOLUTION=1920x1080,NAME="1080"
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p.m3u8&expires=1604774885&signature=d439a194ceecbd6a67384c438d4e6534
secondary index:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:17
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-KEY:METHOD=AES-128,URI="https://dl4.example.com/key?path=dlv/2020/keys/key&expires=1604774901&signature=434ea3db798136367f10bd674facabb4",IV=0xb755aa7b44a34f55e624b326e627233b
#EXTINF:16.666667,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0000.ts&expires=1604774901&signature=383fcb26388c809fa6f503f9380f9483
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0001.ts&expires=1604774901&signature=0a264e5f8c2162ced894cc53775d24b3
#EXTINF:12.933333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0002.ts&expires=1604774901&signature=951fa2359e0f01b31afabd5e3f6ec52f
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0003.ts&expires=1604774901&signature=42582c98ab6dd21ebc1e122367f3a1dd
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0004.ts&expires=1604774901&signature=fdd0387ab9de489f1166309dd56c9a18
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0005.ts&expires=1604774901&signature=a3e3f2536f8c10795d1130a11766cb76
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0006.ts&expires=1604774901&signature=0bff16d295aac5fb02048825eaa079c7
#EXTINF:16.666667,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0007.ts&expires=1604774901&signature=fbbcffd4713c75100f9efa2ea5afa11e
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0008.ts&expires=1604774901&signature=4f28ba2309ea858cd8e03ae968788fef
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0009.ts&expires=1604774901&signature=604ad5a49d6d609a5c83d4474a3db3e4
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0010.ts&expires=1604774901&signature=9a9887972f1911a8fb9b4690261836de
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0011.ts&expires=1604774901&signature=0868d6688b2d7480df0c16cde214b032
#EXTINF:16.666667,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0012.ts&expires=1604774901&signature=02053f08acceadca23ce878cf6e7d5dd
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0013.ts&expires=1604774901&signature=826e4bc40f025d038165954c9389e411
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0014.ts&expires=1604774901&signature=d1eb3f2b91ab4d0d445103f8c363d204
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0015.ts&expires=1604774901&signature=aa0ef8536061e69602066425e5ee7027
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0016.ts&expires=1604774901&signature=1eecf38843d8cc40c1637df88a44cba0
#EXTINF:16.666667,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0017.ts&expires=1604774901&signature=c6948c226d6e9bf5c6ea44cd70d9b4b3
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0018.ts&expires=1604774901&signature=797211683c3c866db64d2b2684f1be61
#EXTINF:5.966667,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0019.ts&expires=1604774901&signature=99af3eb3e024ff8026f4b25c114bd6bc
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0020.ts&expires=1604774901&signature=4313f72da6c3e28edd59d194982654e6
#EXTINF:16.666667,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0021.ts&expires=1604774901&signature=b37606ad24494e74e49b58b4d05cb0b0
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0022.ts&expires=1604774901&signature=6d96c82b9dd8e24db913f8e4e7a6d068
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0023.ts&expires=1604774901&signature=d9de89dc46566953ac41ffc9954eeb8d
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0024.ts&expires=1604774901&signature=a5b8ae5da0ebec0cdcf60af1c14e1a20
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0025.ts&expires=1604774901&signature=4f667293f64f4c71e879311c77b7568a
#EXTINF:16.666667,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0026.ts&expires=1604774901&signature=4309dd57b9b52b2e94e79c92afb74758
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0027.ts&expires=1604774901&signature=e8315bb349cdbf4b22b78f409382610f
#EXTINF:8.333333,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0028.ts&expires=1604774901&signature=9ce5860979dd0f78143352b15ea0ba4c
#EXTINF:0.600000,
https://dl4.example.com/stream.m3u8?path=dlv/2020/tutorial_1080p_0029.ts&expires=1604774901&signature=00c615c1c5ef889ba48b05b2786df1e4
#EXT-X-ENDLIST
Key file:
Œ�“O]�~g�„H�™|Ê5
Which one is the key?
#EXT-X-KEY:METHOD=AES-128,URI="https://dl4.example.com/key?path=dlv/2020/keys/key&expires=1604774901&signature=434ea3db798136367f10bd674facabb4",IV=0xb755aa7b44a34f55e624b326e627233b
The one in IV or the file in the path?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.