Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Problem with local m3u/m3u8 files #22383
Comments
|
Here's a copy of the m3u file used above, edited to include FQDNs.
|
|
As a workaround, I tried handling the m3u file as a local URL.
That failed, apparently as a result of a previous security fix, #8228
While that security fix makes sense, and a command-line option alone would be a poor way to over-ride it, I'm wondering if a config-file option and a command-line option together may be a reasonable way to over-ride that security fix. Ultimately, the fix for this problem should be some combination of (a) a command-line option to force local files to be interpreted as m3u/m3u8 files, (b) automatic recognition of m3u/m3u8 files by parsing, (c) automatic recognition of m3u/m3u8 files by filename extension. |
|
Python is not a strong point of mine, but it looks like this is where remote URLs are parsed to see if they're M3U files - youtube-dl/youtube_dl/extractor/generic.py Line 2349 in 7cb51b5 Should be fairly easy to apply the same test to local files...? |
|
Batch file has nothing to do with m3u8 and not supposed to be used with |
|
Setting up a local web-server is not always a viable option. Parsing a local file (automatically and/or with a command-line option) should be available. Is there any reason why a local file could not be an M3U file??? |
Checklist
Verbose log
After that finishes, I have these files:
Description
When using a remote m3u8 file, youtube-dl performs as expected. All individual files are downloaded and properly concatenated.
This works as expected:
youtube-dl https://walterebert.com/_/playground/videos/ts/640x360.m3u8and outputs a single mp4 file,
640x360-640x360.mp4.When using a local copy of an m3u8 file, in this case edited to include FQDNs, youtube-dl treats it as a normal batch-file and just downloads the transport-stream "pieces".
youtube-dl -v --ignore-config -a ./640x360-test.m3u8Expected behaviour would be for youtube-dl to recognise that the batch-file is actually an m3u/m3u8 file and behave accordingly. Alternatively, there should be a command-line option to "force" a local file to be interpreted as an m3u/m3u8 file.