I’ve seen other formulas in the web, but this is the one that worked for me.
First mak sure you have Homebrew, then run:
$ brew update && brew upgrade # just to be sure
$ brew install ffmpeg
$ brew install rtmpdump
Finally get the latest version of get_iplayer and place the files somewhere appropriate for you.