Hello folks,
Here is the problem I face with N_m3u8dl-re library while downloading a live stream:
the code snippet I use while downloading the stream:
Code:command = [n_m3u8dl_path, m3u8_url, "--tmp-dir", "2425temp/", "--save-dir", "2425jan/" + formatdate + "_" + gamename, "--save-name", formatdate + "_" + gamename + "_" + suffix, #"--log-level", "DEBUG", "--append-url-params", "--mp4-real-time-decryption", "--live-real-time-merge", "--live-pipe-mux", "--key", key_id, "-sv", 'res="1280*":for=best', "-sa", "lang=en:for=best", "--live-record-limit", "00:11:00" ]
Here is the logs for the successful attempt while downloading the stream:
Code:LOG 2025/02/26 Save Path: C:\Users\dogan\Desktop\nm3s\N_m3u8DL-RE_Beta_win-x6405\Logs Task Start: 2025/02/26 06:53:00 Task CommandLine: C:/Users/dogan/Desktop/nm3s/N_m3u8DL-RE_Beta_win-x6405/N_m3u8DL-RE.exe https://nbalpng.akamaized.net/live-pz/b/hls-wv-sd/g0022400834cha1000457gsw/index.m3u8?addUserInfo=1&start=2025-02-26T01%3A44%3A00Z&end=END&vpmute=0&State=55&PostalCode=55200&Zip=55200&LatLongRadius=41.32%3A36.28&ISO3166=TR&sessionId=38013d44-4692-48b3-98ed-ed0ff1a5bfe4&inMultiview=false&ads=no&_fw_ae=d41d8cd98f00b204e9800998ecf8427e&_fw_h_user_agent=Mozilla%252F5.0%2520(Windows%2520NT%252010.0%253B%2520Win64%253B%2520x64)%2520AppleWebKit%252F537.36%2520(KHTML%252C%2520like%2520Gecko)%2520Chrome%252F133.0.0.0%2520Safari%252F537.36&dai-debug=false&slid=NBA-NG-Comp&ptgt=s&slau=120x45_sync&w=120&h=45&flag=%252Bcmpn&ovpSku=LPP-NBATV-MONTHLY&hdnts=exp%3D1740558537~acl%3D%2F*~hmac%3D1453925fdf6b89c4e87c8771b26c1e39f24f72dcac32affca526a61a3ed74465&platform=web&version=2.5.0&getDeviceType=DESKTOP&devicetype=MF_P_WebChrome --tmp-dir 2425temp/ --save-dir 2425jan/20250226_chagsw --save-name 20250226_chagsw_05 --append-url-params --mp4-real-time-decryption --live-real-time-merge --live-pipe-mux --key ba5956c9bbb24532f9c9a49f68f5d079:bfce2cd75e81498160d4b7bdde75a6f1 -sv "res="1280*":for=best" -sa lang=en:for=best --live-record-limit 00:11:00 06:53:00.039 INFO : N_m3u8DL-RE (Beta version) 20241201 06:53:00.049 EXTRA: ffmpeg => C:\ffmpeg\bin\ffmpeg.exe 06:53:00.050 EXTRA: mp4decrypt => C:\Bento4\bin\mp4decrypt.exe 06:53:00.050 INFO : Loading URL: https://nbalpng.akamaized.net/live-pz/b/hls-wv-sd/g0022400834cha1000457gsw/index.m3u8?addUserInfo=1&start=2025-02-26T01%3A44%3A00Z&end=END&vpmute=0&State=55&PostalCode=55200&Zip=55200&LatLongRadius=41.32%3A36.28&ISO3166=TR&sessionId=38013d44-4692-48b3-98ed-ed0ff1a5bfe4&inMultiview=false&ads=no&_fw_ae=d41d8cd98f00b204e9800998ecf8427e&_fw_h_user_agent=Mozilla%252F5.0%2520(Windows%2520NT%252010.0%253B%2520Win64%253B%2520x64)%2520AppleWebKit%252F537.36%2520(KHTML%252C%2520like%2520Gecko)%2520Chrome%252F133.0.0.0%2520Safari%252F537.36&dai-debug=false&slid=NBA-NG-Comp&ptgt=s&slau=120x45_sync&w=120&h=45&flag=%252Bcmpn&ovpSku=LPP-NBATV-MONTHLY&hdnts=exp%3D1740558537~acl%3D%2F*~hmac%3D1453925fdf6b89c4e87c8771b26c1e39f24f72dcac32affca526a61a3ed74465&platform=web&version=2.5.0&getDeviceType=DESKTOP&devicetype=MF_P_WebChrome 06:53:00.306 INFO : Content Matched: HTTP Live Streaming 06:53:00.307 INFO : Parsing streams... 06:53:00.307 WARN : Master List detected, try parse all streams 06:53:00.309 WARN : Writing meta json 06:53:00.310 INFO : Extracted, there are 9 streams, with 6 basic streams, 3 audio streams, 0 subtitle streams 06:53:00.310 INFO : Vid 1280x720 | 3044 Kbps | 29.97 | avc1.64001F 06:53:00.311 INFO : Vid 960x540 | 1662 Kbps | 29.97 | avc1.4D401F 06:53:00.311 INFO : Vid 640x360 | 843 Kbps | 29.97 | avc1.4D401E 06:53:00.311 INFO : Vid 400x224 | 443 Kbps | 29.97 | avc1.4D400D 06:53:00.312 INFO : Vid 400x224 | 338 Kbps | 14.985 | avc1.4D400C 06:53:00.312 INFO : Vid 400x224 | 238 Kbps | 14.985 | avc1.4D400C 06:53:00.312 INFO : Aud mp4a.40.5-104400-48000-2 | ENG | en | 2CH 06:53:00.313 INFO : Aud mp4a.40.5-73600-44100-2 | ENG | en | 2CH 06:53:00.313 INFO : Aud mp4a.40.5-135200-48000-2 | ENG | en | 2CH 06:53:00.313 EXTRA: VideoFilter => ResolutionReg: 1280* For: best 06:53:00.313 EXTRA: AudioFilter => LanguageReg: en For: best 06:53:00.314 INFO : Parsing streams... 06:53:01.069 WARN : Live stream found 06:53:01.097 INFO : Selected streams: 06:53:01.099 INFO : Vid *SAMPLE_AES_CTR 1280x720 | 3044 Kbps | 29.97 | avc1.64001F | 1937 Segments | ~02h08m52s 06:53:01.102 INFO : Aud *SAMPLE_AES_CTR mp4a.40.5-104400-48000-2 | ENG | en | 2CH | 1937 Segments | ~02h08m52s 06:53:01.104 WARN : Writing meta json 06:53:01.121 INFO : Save Name: 20250226_chagsw_05 06:53:01.123 WARN : set refresh interval to 28 seconds 06:53:01.124 WARN : When enabling real-time decryption, it is recommended to use shaka-packager instead of mp4decrypt/ffmpeg 06:53:01.125 WARN : Live recording duration limit: 11m00s 06:53:01.337 WARN : fMP4 is detected, binary merging is automatically enabled 06:53:01.406 WARN : Type: cenc 06:53:01.407 WARN : PSSH(WV): CAESELpZVsm7skUy+cmkn2j10HkaDG1lZGlha2luZG5iYSIYZzAwMjI0MDA4MzRjaGExMDAwNDU3Z3N3MgA= 06:53:01.408 WARN : KID: ba5956c9bbb24532f9c9a49f68f5d079 06:53:01.428 WARN : Reading media info... 06:53:01.458 INFO : [0x79]: Video, h264 (avc1), 1280x720 06:53:01.569 WARN : Type: cenc 06:53:01.570 WARN : PSSH(WV): CAESELpZVsm7skUy+cmkn2j10HkaDG1lZGlha2luZG5iYSIYZzAwMjI0MDA4MzRjaGExMDAwNDU3Z3N3MgA= 06:53:01.572 WARN : KID: ba5956c9bbb24532f9c9a49f68f5d079 06:53:01.589 WARN : Reading media info... 06:53:01.610 INFO : [0xdf]: Audio, aac (mp4a), 104 kb/s 06:53:03.070 INFO : Named pipe created: RE_pipe_29bd4e00-e715-4645-8f2f-cc90c6370ccf 06:53:04.656 INFO : Named pipe created: RE_pipe_46252f90-70a2-4928-a24c-2b57ca4c8ec5 06:53:04.658 WARN : Mux with named pipe, to 20250226_chagsw_05.ts 07:03:06.783 WARN : Live recording limit reached, will stop recording soon 07:03:07.778 INFO : Done
It produces one .ts file for the designated interval of the live stream and everything is fine.
And here is the problematic one log:
It produces two files. One is for audio, ends with .en.mp4 and one for video, ends with .mp4.Code:LOG 2025/02/26 Save Path: C:\Users\dogan\Desktop\nm3s\N_m3u8DL-RE_Beta_win-x6405\Logs Task Start: 2025/02/26 06:12:30 Task CommandLine: C:/Users/dogan/Desktop/nm3s/N_m3u8DL-RE_Beta_win-x6405/N_m3u8DL-RE.exe https://nbalpng.akamaized.net/live-pz/b/hls-wv-sd/g0022400835dal1000446lal/index.m3u8?addUserInfo=1&start=2025-02-26T01%3A44%3A00Z&end=END&vpmute=0&State=55&PostalCode=55200&Zip=55200&LatLongRadius=41.32%3A36.28&ISO3166=TR&sessionId=9ab266c3-9c2d-436d-a5d0-1a815d569fdb&inMultiview=false&ads=no&_fw_vcid2=2bgrh13t-a68i-dea4-rm0l-8gb6vjfc04rd&_fw_gdpr=0&_fw_gdpr_consent=&_fw_us_privacy=1---&_fw_is_lat=0&_is_lat=0&_fw_cookie_consent=1&_fw_ae=d41d8cd98f00b204e9800998ecf8427e&_fw_h_user_agent=Mozilla%252F5.0%2520(Windows%2520NT%252010.0%253B%2520Win64%253B%2520x64)%2520AppleWebKit%252F537.36%2520(KHTML%252C%2520like%2520Gecko)%2520Chrome%252F133.0.0.0%2520Safari%252F537.36&dai-debug=false&slid=NBA-NG-Comp&ptgt=s&slau=120x45_sync&w=120&h=45&flag=%252Bcmpn&ovpSku=LPP-NBATV-MONTHLY&hdnts=exp%3D1740558537~acl%3D%2F*~hmac%3D1453925fdf6b89c4e87c8771b26c1e39f24f72dcac32affca526a61a3ed74465&platform=web&version=2.5.0&getDeviceType=DESKTOP&devicetype=MF_P_WebChrome --tmp-dir 2425temp/ --save-dir 2425jan/20250226_dallal --save-name 20250226_dallal_01 --append-url-params --mp4-real-time-decryption --live-real-time-merge --live-pipe-mux --key cdae65e07595756c2992742891fdf413:bd8bddd5a033ce3ad44c65cd6d5f59e3 -sv "res="1280*":for=best" -sa lang=en:for=best --live-record-limit 00:11:00 06:12:30.565 INFO : N_m3u8DL-RE (Beta version) 20241201 06:12:30.576 EXTRA: ffmpeg => C:\ffmpeg\bin\ffmpeg.exe 06:12:30.578 EXTRA: mp4decrypt => C:\Bento4\bin\mp4decrypt.exe 06:12:30.578 INFO : Loading URL: https://nbalpng.akamaized.net/live-pz/b/hls-wv-sd/g0022400835dal1000446lal/index.m3u8?addUserInfo=1&start=2025-02-26T01%3A44%3A00Z&end=END&vpmute=0&State=55&PostalCode=55200&Zip=55200&LatLongRadius=41.32%3A36.28&ISO3166=TR&sessionId=9ab266c3-9c2d-436d-a5d0-1a815d569fdb&inMultiview=false&ads=no&_fw_vcid2=2bgrh13t-a68i-dea4-rm0l-8gb6vjfc04rd&_fw_gdpr=0&_fw_gdpr_consent=&_fw_us_privacy=1---&_fw_is_lat=0&_is_lat=0&_fw_cookie_consent=1&_fw_ae=d41d8cd98f00b204e9800998ecf8427e&_fw_h_user_agent=Mozilla%252F5.0%2520(Windows%2520NT%252010.0%253B%2520Win64%253B%2520x64)%2520AppleWebKit%252F537.36%2520(KHTML%252C%2520like%2520Gecko)%2520Chrome%252F133.0.0.0%2520Safari%252F537.36&dai-debug=false&slid=NBA-NG-Comp&ptgt=s&slau=120x45_sync&w=120&h=45&flag=%252Bcmpn&ovpSku=LPP-NBATV-MONTHLY&hdnts=exp%3D1740558537~acl%3D%2F*~hmac%3D1453925fdf6b89c4e87c8771b26c1e39f24f72dcac32affca526a61a3ed74465&platform=web&version=2.5.0&getDeviceType=DESKTOP&devicetype=MF_P_WebChrome 06:12:30.808 INFO : Content Matched: HTTP Live Streaming 06:12:30.808 INFO : Parsing streams... 06:12:30.809 WARN : Master List detected, try parse all streams 06:12:30.811 WARN : Writing meta json 06:12:30.812 INFO : Extracted, there are 9 streams, with 6 basic streams, 3 audio streams, 0 subtitle streams 06:12:30.812 INFO : Vid 1280x720 | 3044 Kbps | 29.97 | avc1.64001F 06:12:30.813 INFO : Vid 960x540 | 1662 Kbps | 29.97 | avc1.4D401F 06:12:30.813 INFO : Vid 640x360 | 843 Kbps | 29.97 | avc1.4D401E 06:12:30.813 INFO : Vid 400x224 | 443 Kbps | 29.97 | avc1.4D400D 06:12:30.814 INFO : Vid 400x224 | 338 Kbps | 14.985 | avc1.4D400C 06:12:30.814 INFO : Vid 400x224 | 238 Kbps | 14.985 | avc1.4D400C 06:12:30.814 INFO : Aud mp4a.40.5-104400-48000-2 | ENG | en | 2CH 06:12:30.814 INFO : Aud mp4a.40.5-73600-44100-2 | ENG | en | 2CH 06:12:30.815 INFO : Aud mp4a.40.5-135200-48000-2 | ENG | en | 2CH 06:12:30.815 EXTRA: VideoFilter => ResolutionReg: 1280* For: best 06:12:30.815 EXTRA: AudioFilter => LanguageReg: en For: best 06:12:30.815 INFO : Parsing streams... 06:12:31.886 INFO : Selected streams: 06:12:31.887 INFO : Vid *SAMPLE_AES_CTR 1280x720 | 3044 Kbps | 29.97 | avc1.64001F | 474 Segments | ~31m37s 06:12:31.887 INFO : Aud *SAMPLE_AES_CTR mp4a.40.5-104400-48000-2 | ENG | en | 2CH | 474 Segments | ~31m37s 06:12:31.887 WARN : Writing meta json 06:12:31.890 INFO : Save Name: 20250226_dallal_01 06:12:31.891 WARN : When enabling real-time decryption, it is recommended to use shaka-packager instead of mp4decrypt/ffmpeg 06:12:31.892 INFO : Start downloading...Vid 1280x720 | 3044 Kbps | 29.97 | avc1.64001F 06:12:31.892 WARN : fMP4 is detected, binary merging is automatically enabled 06:12:31.908 WARN : Type: cenc 06:12:31.909 WARN : PSSH(WV): CAESEM2uZeB1lXVsKZJ0KJH99BMaDG1lZGlha2luZG5iYSIYZzAwMjI0MDA4MzVkYWwxMDAwNDQ2bGFsMgA= 06:12:31.909 WARN : KID: cdae65e07595756c2992742891fdf413 06:12:31.929 WARN : Reading media info... 06:12:31.946 INFO : [0x79]: Video, h264 (avc1), 1280x720 06:13:07.952 INFO : Binary merging... 06:13:09.335 INFO : Start downloading...Aud mp4a.40.5-104400-48000-2 | ENG | en | 2CH 06:13:09.348 WARN : Type: cenc 06:13:09.349 WARN : PSSH(WV): CAESEM2uZeB1lXVsKZJ0KJH99BMaDG1lZGlha2luZG5iYSIYZzAwMjI0MDA4MzVkYWwxMDAwNDQ2bGFsMgA= 06:13:09.349 WARN : KID: cdae65e07595756c2992742891fdf413 06:13:09.368 WARN : Reading media info... 06:13:09.384 INFO : [0xdf]: Audio, aac (mp4a), 104 kb/s 06:13:16.231 INFO : Binary merging... 06:13:16.565 INFO : Done
I think that the main difference between the successful and problematic logs is detecting the live stream.
In fact, all of the problematic stream recordings covers the first 11 mins from the beginning of the stream, same part.
I wanted to asked that what can be the problem. Something maybe I am missing for the command. Or you have encounter similar type of error before. I can provide more details on demand.
Thank you up front!
+ Reply to Thread
Results 1 to 2 of 2
-
-
try to use shaka-packager instead of mp4decrypt
download https://github.com/shaka-project/shaka-packager/releases/download/v3.4.2/packager-win-x64.exe and rename it to shaka-packager
and add command --use-shaka-packager
Similar Threads
-
Need help downloading a live stream from 7plus AU
By sumit in forum Video Streaming DownloadingReplies: 8Last Post: 7th Dec 2024, 10:01 -
N_m3u8DL-R Issues with Concurrently Downloading Multiple Live Streams
By doganjr in forum Video Streaming DownloadingReplies: 10Last Post: 7th Dec 2024, 04:23 -
N_m3u8DL-RE live stream
By Sawyer in forum Video Streaming DownloadingReplies: 1Last Post: 14th Aug 2023, 06:32 -
n_m3u8dl-re restream live stream
By trucblah in forum Video Streaming DownloadingReplies: 1Last Post: 27th Dec 2022, 17:32 -
help downloading live stream
By filipino in forum Video Streaming DownloadingReplies: 9Last Post: 19th Oct 2021, 11:53