josephcappadona / m3u8downloader Goto Github PK
View Code? Open in Web Editor NEWa Python library to download video at m3u8 url
a Python library to download video at m3u8 url
hi sorry for my bad english,
i have problem,
if i doing this:
downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o E:\TestUrl\Test.mp4 --tempdir E:\TestUrl\
it work,
but if:
downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o E:\Test Url\Test.mp4 --tempdir E:\Test Url\
it not work,
i tried to add " like this:
downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o "E:\Test Url\Test.mp4" --tempdir "E:\Test Url\"
it still not work, please help
I'm using this command to install m3u8downloader
pip install --user m3u8downloader
and when i using this command to download m3u8 videos
downloadm3u8 -o ~/Downloads/foo.mp4 https://example.com/path/to/foo.m3u8
get this error:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python311\Scripts\downloadm3u8.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'm3u8downloader.main'
how to solve this ?
┌──(venv)─(root💀vizvasrj)-[/tmp]
└─# downloadm3u8 'https://b-g-eu-8.feetcdn.com:2223/v3-hls-playback/db0816de2695b28393c715545c03ed782c88d64cba262c90088373c65f351de347b0a719d205eeb6f0a50a4e7b74e3f6cd7d83686f2440e1033e3e1a766a3df361c276b29224498c212862870fe42bb4cffa08633ec0ad8647d1a21855d8cf72ed3c434575fceaeb3a91b1cedda64f07b6b648995a15fbf60be5236ac8038c98bf486a0e9c88a6e56d846f89fa13e3c2a93742dfed8c80c51cd87a77e96595b16faad3882487d3afb0cde73e91b75d46518810c9990239a6a4c76c261c39be05/720/index.m3u8' -o ./her.mp4
Traceback (most recent call last):
File "/root/Github/venv/bin/downloadm3u8", line 8, in <module>
sys.exit(main())
File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 507, in main
downloader.start()
File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 270, in start
self.download_m3u8_link(self.start_url)
File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 457, in download_m3u8_link
self.process_media_playlist(url, content)
File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 402, in process_media_playlist
self.media_playlist_localfile, _ = self.mirror_url_resource(url)
File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 312, in mirror_url_resource
ensure_dir_exists_for(local_file)
File "/root/Github/venv/lib/python3.9/site-packages/m3u8downloader/main.py", line 104, in ensure_dir_exists_for
os.makedirs(os.path.dirname(full_filename), exist_ok=True)
File "/usr/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
OSError: [Errno 36] File name too long: '/root/.cache/m3u8downloader/her/v3-hls-playback/db0816de2695b28393c715545c03ed782c88d64cba262c90088373c65f351de347b0a719d205eeb6f0a50a4e7b74e3f6cd7d83686f2440e1033e3e1a766a3df361c276b29224498c212862870fe42bb4cffa08633ec0ad8647d1a21855d8cf72ed3c434575fceaeb3a91b1cedda64f07b6b648995a15fbf60be5236ac8038c98bf486a0e9c88a6e56d846f89fa13e3c2a93742dfed8c80c51cd87a77e96595b16faad3882487d3afb0cde73e91b75d46518810c9990239a6a4c76c261c39be05'
When using the randomfilenames option, the program creates a buffer
file called, for example, 3ea23754-2065-4c9c-82ab-f753581fc949..
Note that the filename lacks an extension.
As such, ffmpeg (at least version 2024-01-04-git-33698ef891)
throws the following error:
Not detecting m3u8/hls with non standard extension and non standard mime type
Last message repeated 3 times
[in#0 @ 00000239880fec80] Error opening input: Invalid data found when processing input
Error opening input file C:\Users\MyName\MyFile\abfca6a5-1af1-4a25-bf79-462140281844.
Error opening input files: Invalid data found when processing input
sorry for my bad English,
i tried downloading with a URL like this
https://m3u8.blablabla.com/us.php?key=aUtsYmpxcmhpYmIzdUNxSktBc1M2YlhybnJkNEhpcGRoUnVPRWd6UW8rN3d3NXVhcGhtL1JZY1RHSkxzNzVicXo1Q0w4ODhkV2JuZlhQWS85L2JsbUpodzExNUc3YkswLzNUVkwzUkEyYnhuRWZ1T1hGTU5NTEFrSkF2K3VvZFJkYnY5QXZTM3p4TUp0YngrUVV6VURweVJaVFV0Z3hYa0tUTW0wMkhyMzRjPQ==&hash=c29d5a735aca1c840055e79908d9be92c88fbc49143a560b8ec3fbde94640d37e866ca6765bae666f1f7334b980366c13c7f7bcba3e4408eeca7ba017bf695b7&vid=2097
(the blablabla is censored because of some rule in certain sites)
and my Windows 11 is blue screens, yes that blue screens,
so i downloaded that us.php as us,m3u8, and the inside file is normal .m3u8 playlist
I can play it on Media Player Classic,
but i cannot download it using FFmpeg
Do you have any tips to download it to mp4?
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.