Hey guys,

I'm using yt-dlp to download encrypted m4a and m4p files. The command I use is as follows:

Code:
yt-dlp --allow-u --format-sort quality,proto:dash -v -f "bv*[format_id$=-0][ext=mp4],ba*[format_id$=-0][ext=m4a]" https://players.brightcove.net/6057955896001/default_default/index.html?videoId=6081537057001
I use the brightcove site, because it is very easy for me to get the videoIds of the content I need.

As I'm currently building a small toolchain with https://getwvkeys.cc/ API to automatically download, decrypt, merge and rename the files, I was wondering if there is an easy way to have yt-dlp save the mpd file to extract the pssh key and licens-url?

Best I came up with is the -v switch to have the .mpd url displayed.

If there is no already built in option, I would just change the source code of yt-dlp to dump the url to file instead of printing it to the screen, but maybe there is a more convinient option already in place?

thx
Darky