I would like to write a piece of software that downloads and processes YouTube videos to extract certain metadata, e.g. to identify music playing in the video. I believe that processing the video in this way is a fair use, and my understanding is that it would be off-topic here to ask (so please take it for granted). I also think that it is obvious that if I used my downloaded copy to e.g. just personally listen to the song, then that would not be a fair use.
My question is: does this matter, legally? If my processing is a fair use, does it matter that the same mechanism allows, or makes easy, other uses that are prohibited?
Some things I've considered:
- Violating the ToS: YouTube's ToS do not permit you to download the raw video, even if that would not infringe copyright. However, I don't think this is legally relevant. Using a program like yt-dlp to download the video does not require a YouTube account, or accepting the terms.
- Breaking digital locks: It is illegal to break or circumvent DRM, even if you plan to use the unlocked material for a fair use. However, I don't think YouTube is actually protected by DRM, so I don't think this is legally relevant either.