nilaoda / N_m3u8DL-RE

Cross-Platform, modern and powerful stream downloader for MPD/M3U8/ISM. English/简体中文/繁體中文.
MIT License
4.69k stars 497 forks source link

--select-audio regex filter limitation #479

Closed chatcoda closed 1 week ago

chatcoda commented 2 weeks ago

If I have these audio streams:

23:14:44.181 INFO : Aud *CENC audio_fra=128000 | 128 Kbps | mp4a.40.2 | fr | 2CH | 744 Segments | Main | ~01h39m06s
23:14:44.240 INFO : Aud *CENC audio_fra_1=128000 | 128 Kbps | mp4a.40.2 | fr | 2CH | 744 Segments | Alternate | ~01h39m06s
23:14:44.299 INFO : Aud *CENC audio_ita=128000 | 128 Kbps | mp4a.40.2 | it | 2CH | 744 Segments | Main | ~01h39m06s
23:14:44.301 INFO : Aud *CENC audio_fra=64000 | 64 Kbps | mp4a.40.2 | fr | 2CH | 744 Segments | Main | ~01h39m06s
23:14:44.307 INFO : Aud *CENC audio_fra_1=64000 | 64 Kbps | mp4a.40.2 | fr | 2CH | 744 Segments | Alternate | ~01h39m06s
23:14:44.386 INFO : Aud *CENC audio_ita=64000 | 64 Kbps | mp4a.40.2 | it | 2CH | 744 Segments | Main | ~01h39m06s

I would have expected --select-audio bwMin=128 to select all three 128 Kbps streams, but it only takes the first one. Is it a bug or by design? Thanks!

nilaoda commented 1 week ago

--select-audio bwMin=128:for=all

chatcoda commented 1 week ago

It works perfectly indeed, thank you!