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

Mux failed and decryption failed on a segmented dynamic live MPD #367

Open
endmarsfr opened this issue Mar 3, 2024 · 0 comments
Open

Mux failed and decryption failed on a segmented dynamic live MPD #367

endmarsfr opened this issue Mar 3, 2024 · 0 comments

Comments

@endmarsfr
Copy link

endmarsfr commented Mar 3, 2024

I got this error when trying to download an mpd live stream for the following command:

17:42:30.081 ERROR: Mux failed
17:42:30.082 ERROR: Failed
./N_m3u8DL-RE.exe "https://*******/live/210/1/live.mpd" --mp4-real-time-decryption --key-text-file ./keys.txt --live-keep-segments true --live-real-time-merge --live-record-limit "00:02:00"
--auto-select --log-level ERROR -M format=mkv --del-after-done --save-name "decrypted" --save-dir "d:\output" -mt TRUE --thread-count 12 `.

Even though I have the keys, decryption failed on the non-muxed streams.
The streams are segmented. I also tried decrypting each segment, but that also failed.
On non-live streams everything works fine (decrypt, mux, play).

The mpd is protected with "urn:mpeg:dash:mp4protection:2011".

I looked at the source code of N_m3u8DL and found that segmented downloads are decrypted using AES_128_ECB or AES_128 or CHACHA20.
How can I make sure that the segments are decrypted using the appropriate method for "urn:mpeg:dash:mp4protection:2011"?

Can you help me?

Best regards

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

1 participant