emarsden / dash-mpd-cli

Download media content from a DASH-MPEG or DASH-WebM MPD manifest
https://emarsden.github.io/dash-mpd-cli/
MIT License
331 stars 34 forks source link

Issue with Clearkey encoded audio #73

Closed richardjdunn closed 5 months ago

richardjdunn commented 5 months ago

Hi there! Absolutely love this tool, thank you so much. (also if there is somewhere I can donate some $ as a thank you, let me know).

I'm having an issue with some Clearkey encoded media. I believe I have the correct decryption key, and everything works as expected (including seeing the correct video), but there is no audio. I did a bunch of debugging, and the audio that is downloaded seems right (ffprobe shows the right length) but it's just... wrong. When I try to convert it using ffmpeg there are just a ton of random errors. The audio is just fine when I play off the source website in my browser.

dash-mpd-cli shows "ffmpeg stderr: [aac @ 0x137604c70] channel element 2.9 is not allocated" when it tries to mux. ffprobe shows the same error when I save just the audio and try to use that command on it

Have you seen anything like this before? Thanks again!

emarsden commented 5 months ago

I probably can't help much here. Two suggestions:

richardjdunn commented 5 months ago

Looks like it was actually an issue with mp4decrypt. I had done some research and I guess shaka just handles more stuff. I switched to shaka and it's working now. Thank you again!