Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with national characters #923

Open
radpopl opened this issue Feb 27, 2024 · 6 comments
Open

Problem with national characters #923

radpopl opened this issue Feb 27, 2024 · 6 comments

Comments

@radpopl
Copy link

radpopl commented Feb 27, 2024

Steps to reproduce:

  1. Create folder "ąćęłńóśżź" as a working folder.
  2. Enter:
    N_m3u8DL-RE.exe https://vcze131.cda.pl/1670449/1670449.mpd?uid=5983825771 --key 65353534306438366535346135346161:39303439626631336363393537303934 -M format=mkv
  3. Output mp4 isn't decrypted.

With --use-shaka-packager file is decrypted correctly.

@barbibulle
Copy link
Contributor

You may be confusing Bento4 with some other tool. There is no such program as N_m3u8DL-RE.exe that is part of Bento4.

@radpopl
Copy link
Author

radpopl commented Feb 28, 2024

N_m3u8DL-RE.exe uses mp4decrypt to decrypt a video.

@barbibulle
Copy link
Contributor

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?

@radpopl
Copy link
Author

radpopl commented Mar 1, 2024

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.

@barbibulle
Copy link
Contributor

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)

@radpopl
Copy link
Author

radpopl commented Mar 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants