catmindeye.com have a good post on installing youtube clone requirements (ffmpeg, mencoder, etc…) on shared host with SSH access like dreamhost.
To get it working properly, you need to set some envirnment variables and add some extra lines to your youtube clone script.
You can find more details at