nilaoda / N_m3u8DL-RE

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

SegmentTemplate formatting not recognized #388

Open whitesnakeftw opened 5 months ago

whitesnakeftw commented 5 months ago

I have an mpd from Sling TV that has:

<SegmentTemplate timescale="1000" duration="2048" startNumber="22999" initialization="audio/$RepresentationID$/init.mp4" media="audio/$RepresentationID$/$Number%08x$.m4s" presentationTimeOffset="47096746"></SegmentTemplate>

where the $Number%08x$ is not translated properly. It should translate to something like 00006ea4.m4s, but instead N_m3u8DL-RE searches for literally $Number%08x$.m4s obviously not finding anything and yielding a 400 bad request.

Example command: N_m3u8DL-RE --live-pipe-mux --key 5be46121259c40fa809d5d35f69c1a0d:7a30c5538c83d43560f3a517dfaa5f6a https://p-cdn8-d-cg14-linear-cbd46b77.movetv.com/clipslist/18/20240503T010232Z/20240503T033000Z.mpd (mpd needs US VPN)

bryanyeong97 commented 5 months ago

The correct format is:N_m3u8DL-RE.exe "mpdurl" --save-name test --key KID:KEY --live-real-time-merge --live-pipe-mux

under your download folder must be have two software:N_m3u8DL-RE & mp4decrypt