Download m3u8 to ts with multithreading
downloader = Downloader(50)
downloader.run('http://m3u8.test.com/test.m3u8', '/home/video/')
Download m3u8 to ts with multithreading
有没有遇到ts文件合并后,视频播放没有声音的情况?
如题目所示
Traceback (most recent call last):
File "src\gevent\greenlet.py", line 854, in gevent._gevent_cgreenlet.Greenle
t.run
File "m3u8.py", line 86, in _join_file
os.remove(os.path.join(self.dir, file_name))
WindowsError: [Error 32] : 'video\Bbi7W6T7.ts'
2020-06-22T23:54:26Z <Greenlet at 0x2a72250: <bound method Downloader._join_file
of <main.Downloader instance at 0x027F7DC8>>> failed with WindowsError
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in
start(fakepyfile,mainpyfile)
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start
exec(open(mainpyfile).read(), main.dict)
File "", line 96, in
File "", line 39, in run
TypeError: a bytes-like object is required, not 'str'
比如flv之类的。
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.