Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
m3u8解密合并脚本(python3)
Experiences and Insight
466
views ·
2
replies ·
To
floor
Go
q77190858
deepin
2019-09-19 10:17
Author
我们经常用手机qq浏览器或者UC缓存视频,但是缓存的文件有的加密了,自己写了一个py脚本,自动解密合并缓存视频
decode.py.zip
使用方法:
decode.py xxx.m3u8
Copy the Code
输出视频名称,路径和m3u8文件一致,输出格式为MP4
特点:
1、自动判断是否加密,智能选择是否解密
2、输入m3u8文件可以和decode.py不在同一路径下,智能识别路径
要求环境:
为什么不用python2,因为python2到2020年就会停止支持,而且我python2运行通不过
sudo apt-get install python3
Copy the Code
安装pip,这是python3的pip
sudo apt-get install python3-pip
Copy the Code
用pip3来安装Crypto模块
sudo pip3 install crypto
Copy the Code
我的电脑是deepin15.11可以正常安装crypto,没有出现网上说的找不到包(pip源在国外网速不行的话另说)
详细说明参见我的博客:
https://blog.mxslly.com/archives/123.html
Reply
Like 0
Favorite
View the author
All Replies
iraining
deepin
2019-09-19 16:05
#1
m3u8可以直接用vlc来播放
Reply
Like 0
View the author
Comments
q77190858
2019-09-19 19:43
是的,这个是下载的m3u8视频缓存合并成视频文件的工具
三山
deepin
2022-05-11 07:05
#2
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
UOS AI Hardware Diagnostics
Popular Events
More
decode.py.zip
使用方法:
输出视频名称,路径和m3u8文件一致,输出格式为MP4
特点:
1、自动判断是否加密,智能选择是否解密
2、输入m3u8文件可以和decode.py不在同一路径下,智能识别路径
要求环境:
为什么不用python2,因为python2到2020年就会停止支持,而且我python2运行通不过
安装pip,这是python3的pip
用pip3来安装Crypto模块
我的电脑是deepin15.11可以正常安装crypto,没有出现网上说的找不到包(pip源在国外网速不行的话另说)
详细说明参见我的博客:https://blog.mxslly.com/archives/123.html