Just remove the --external-ffmpeg script, drop the fernetmenta patch (which is in specific version based on ffmpeg 1.2 already in), change the git hash to that specific branch with last commit id and here you go.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.