Problem with national characters
radpopl opened this issue · comments
Steps to reproduce:
- Create folder "ąćęłńóśżź" as a working folder.
- Enter:
N_m3u8DL-RE.exe https://vcze131.cda.pl/1670449/1670449.mpd?uid=5983825771 --key 65353534306438366535346135346161:39303439626631336363393537303934 -M format=mkv - Output mp4 isn't decrypted.
With --use-shaka-packager file is decrypted correctly.
You may be confusing Bento4 with some other tool. There is no such program as N_m3u8DL-RE.exe that is part of Bento4.
N_m3u8DL-RE.exe uses mp4decrypt to decrypt a video.
I have no idea how exactly N_m3u8DL-RE.exe invokes mp4decrypt
, so it's hard to tell what the issue may be. Can you show what exact mp4decrypt
command line is being used, and what its inputs are?
For me it's impossible because I don't know how. If I get a version of mp4decrypt that allows this, I can send it. Maybe -- Instead of mp4decrypt, I would substitute another application that would display the command line.
It looks like N_m3u8DL
has this option:
--log-level <DEBUG|ERROR|INFO|OFF|WARN>
Can you try running with --log-level DEBUG
, it should print out the mp4decrypt
args when executing (see: https://github.com/nilaoda/N_m3u8DL-RE/blob/8fdb6bc90ba128b91bff32d32ed6152f88584374/src/N_m3u8DL-RE/Util/MP4DecryptUtil.cs#L81)
The resulting file was not decrypted.
[...]
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 89% 1.05GB/1.19GB 20.25MBps 00:00:07 /
Aud 164 Kbps | 2CH ---------------------------------------- 0% - - --:--:-- Fetch: https://vcze131.cda.pl/1670449/v_sd_sd062e812e06a2f3d75802e16bba2b77b1.mp4
13:20:47.220 INFO : Binary merging... Range: bytes=1184890993-
13:21:12.197 INFO : Decrypting... ri/537.36
13:21:12.198 DEBUG: FileName: c:\Users\Właściciel\Downloads\utils\mp4decrypt.exe
13:21:12.200 DEBUG: Arguments: --key 65353534306438366535346135346161:39303439626631336363393537303934 "e:\_na pena\$ test ąćęłCDA\1670449_2024-03-05_13-19-24.mp4" "e:\_na pena\$ test
ąćęłCDA\1670449_2024-03-05_13-19-24_dec.mp4"-------------------------- 100% 1.11GB - 00:00:00
13:21:12.490 DEBUG:
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 100% 1.11GB - 00:00:00
13:21:12.492 INFO : Start downloading...Aud 4 | 164 Kbps | mp4a.40.2 | 2CH% - - --:--:--
13:21:12.492 DEBUG: .2_164935_; tmpDir: e:\_na pena\$ test ąćęłCDA\1670449_2024-03-05_13-19-
13:21:12.494 DEBUG:
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 100% 1.11GB - 00:00:00
Aud 164 Kbps | 2CH ---------------------------------------- 0% - - --:--:-- Fetch: https://vcze131.cda.pl/1670449/a_sd_sd062e812e06a2f3d75802e16bba2b77b1.mp4
13:21:13.868 WARN : Type: cenc Range: bytes=0-10485760
13:21:13.869 WARN : PSSH(WV): EhBlNTU0MGQ4NmU1NGE1NGFhSOPclZsG ri/537.36
13:21:13.870 WARN : KID: 65353534306438366535346135346161
13:21:13.871 WARN : Reading media info...
13:21:13.950 INFO : [0x1]: Audio, aac (LC) (mp4a), 18 kb/s
13:21:13.952 DEBUG:
13:21:13.952 DEBUG:
13:21:13.952 DEBUG:
13:21:13.952 DEBUG: 31.cda.pl/1670449/a_sd_sd062e812e06a2f3d75802e16bba2b77b1.mp4
13:21:13.952 DEBUG: 31.cda.pl/1670449/a_sd_sd062e812e06a2f3d75802e16bba2b77b1.mp4
13:21:13.952 DEBUG: 31.cda.pl/1670449/a_sd_sd062e812e06a2f3d75802e16bba2b77b1.mp4
13:21:13.953 DEBUG: 31.cda.pl/1670449/a_sd_sd062e812e06a2f3d75802e16bba2b77b1.mp4
13:21:13.953 DEBUG: 31.cda.pl/1670449/a_sd_sd062e812e06a2f3d75802e16bba2b77b1.mp4
13:21:13.953 DEBUG: 31.cda.pl/1670449/a_sd_sd062e812e06a2f3d75802e16bba2b77b1.mp4
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 100% 1.11GB - 00:00:00 Fetch: https://vcze131.cda.pl/1670449/a_sd_sd062e812e06a2f3d75802e16bba2b77b1.mp4
Aud 164 Kbps | 2CH ---------------------------------------- 11% - 3.02MBps 00:00:10 | Fetch: https://vcze131.cda.pl/1670449/a_sd_sd062e812e06a2f3d75802e16bba2b77b1.mp4
13:21:13.955 DEBUG: 4-52428804
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 100% 1.11GB - 00:00:00 ri/537.36
Aud 164 Kbps | 2CH ---------------------------------------- 11% - 3.02MBps 00:00:10 |
13:21:13.956 DEBUG: 1-20971521
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 100% 1.11GB - 00:00:00 ri/537.36
Aud 164 Kbps | 2CH ---------------------------------------- 11% - 3.02MBps 00:00:10 |
13:21:13.957 DEBUG: 2-31457282
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 100% 1.11GB - 00:00:00 ri/537.36
Aud 164 Kbps | 2CH ---------------------------------------- 11% - 3.02MBps 00:00:10 |
13:21:13.958 DEBUG: 3-41943043
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 100% 1.11GB - 00:00:00 ri/537.36
Aud 164 Kbps | 2CH ---------------------------------------- 11% - 3.02MBps 00:00:10 |
13:21:13.960 DEBUG: 5-62914565
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 100% 1.11GB - 00:00:00 ri/537.36
Aud 164 Kbps | 2CH ---------------------------------------- 11% - 3.02MBps 00:00:10 |
13:21:13.961 DEBUG: 6-73400326
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 100% 1.11GB - 00:00:00 ri/537.36
Aud 164 Kbps | 2CH ---------------------------------------- 11% - 3.02MBps 00:00:10 |
13:21:13.962 DEBUG: 7-83886087
Vid 1280x722 | 2515 Kbps | 25 ---------------------------------------- 100% 1.11GB - 00:00:00 ri/537.36
Aud 164 Kbps | 2CH ---------------------------------------- 11% - 3.02MBps 00:00:10 |
13:21:19.964 INFO : Binary merging... Range: bytes=83886088-
13:21:20.097 INFO : Decrypting... ri/537.36
13:21:20.100 DEBUG: FileName: c:\Users\Właściciel\Downloads\utils\mp4decrypt.exe
13:21:20.101 DEBUG: Arguments: --key 65353534306438366535346135346161:39303439626631336363393537303934 "e:\_na pena\$ test ąćęłCDA\1670449_2024-03-05_13-19-24.m4a" "e:\_na pena\$ test
ąćęłCDA\1670449_2024-03-05_13-19-24_dec.m4a"-------------------------- 100% 1.11GB - 00:00:00
13:21:20.142 WARN : 1670449_2024-03-05_13-19-24.mp4
13:21:20.143 WARN : 1670449_2024-03-05_13-19-24.m4a
13:21:20.143 WARN : Muxing to 1670449_2024-03-05_13-19-24.MUX.mkv
13:21:20.144 DEBUG: c:\Users\Właściciel\Downloads\utils\ffmpeg.exe: -loglevel warning -nostdin -y -i "e:\_na pena\$ test ąćęłCDA\1670449_2024-03-05_13-19-24.mp4" -i "e:\_na pena\$ test
ąćęłCDA\1670449_2024-03-05_13-19-24.m4a" -map 0 -map 1 -strict unofficial -c:a copy -c:v copy -c:s webvtt -map_metadata -1 -metadata:s:0 language="und" -metadata:s:1 language="und" -disposition:v:0
default -disposition:s 0 -disposition:a:0 default -metadata date="2024-03-05T13:21:20.1442647+01:00" -ignore_unknown -copy_unknown "e:\_na pena\$ test ąćęłCDA\1670449_2024-03-05_13-19-24.MUX.mkv"
13:21:47.032 WARN : Cleaning files...
13:21:47.158 WARN : Rename to 1670449_2024-03-05_13-19-24.mkv
13:21:47.815 INFO : Done
e:\_na pena\$ test ąćęłCDA>
Manual decrypting with full path.:
e:\_na pena\$ test ąćęłCDA>mp4decrypt --key 65353534306438366535346135346161:39303439626631336363393537303934 "E:\_na pena\$ test ąćęłCDA\1670449_2024-03-05_13-19-24.mkv" out.mkv
ERROR: cannot open input file (E:\_na pena\$ test ╣Šŕ│CDA\1670449_2024-03-05_13-19-24.mkv) -4