rm ffmpeg working dir before we commit local changes so it's not merged
back after pull from upstream (we want fresh recompile)
libcec-2.2.0 compat split.
part1 - backport from Helix
part2 - override value if bigger than 500ms
cleanups