Comments (4)
What the streams look like? Please paste the streams screenshot
from n_m3u8dl-re.
the ones I'd want to auto select are the 1280x720 with one segment and the highest bitrate, and then the audio as well with 1 segment and the highest bitrate
from n_m3u8dl-re.
FYI what i do is grab the output then regex on the segment count to check for e.g. the below. it checks if there is 4 digits of segment count, then 3 etc etc.. on the 1080p stream.
you could adapt yours to do similar. change the 1080 to 720, etc
(code in python)
proc = subprocess.run(f'N_m3u8DL-RE "{self.mpd}"',stdout=subprocess.PIPE, text=True)
try:
regex_video_id = re.search("1080.+(video=\d{7}).+\s.\s\d{**4**}",proc.stdout)
print(regex_video_id.group(1))
regex_audio_id = re.search(".(audio.+=\d{6})\s.+mp4a.{1,25}\d{4}\sSegment",proc.stdout)
print(regex_audio_id.group(1))
except:
print("failed first regex")
try:
regex_video_id = re.search("1080.+(video=\d{7}).+\s.\s\d{3}",proc.stdout)
print(regex_video_id.group(1))
except:
....
from n_m3u8dl-re.
Available in new version
from n_m3u8dl-re.
Related Issues (20)
- 无法下载
- drm流可以一有数据就开始解密,ffmpeg,pipe推流吗?
- An error occurred when the N_m3u8DL-RE program downloaded parts of temporar
- 求助,如何使用视频流的m3u8文件和音频流的m3u8混流为一个视频文件
- 410 expired issue on Hulu livestreams
- Folder is not deleted once file is merged successful HOT 1
- N_m3u8DL-RE --selection-{type} and authorized characters HOT 1
- udpxy代理的单播录制问题
- --mux-import 引号问题
- dmm的dcv原档可以破解了 HOT 22
- dmm的tv也可以破解啊 HOT 1
- golang调用本程序报错退出 HOT 1
- Base64 TTML subtitles not converting properly
- 小白不懂就问 请问这个工具怎么才能像N_m3u8DL-CLI一样随时中断 打开目录也是一个完整的文件 HOT 12
- SegmentTemplate formatting not recognized HOT 1
- mp4decrypt not found! HOT 1
- 这种是下载不了吗?或者怎么用才能使用两个--custom-hls-key
- GPU Capability
- 此应用无法在你的电脑上运行
- m3u8通过excel得到可直接运行cmd命令
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from n_m3u8dl-re.