yt-dlp, successor to youtube-dl, can access the iplayer database to extract the url of any programme file which contains code for ordinary HD at 720p. However, the 8 character code can be changed to that for Full HD at 1080p which is at much higher resolution!! Now to find the 4k code!!