Ha már raspberry pi, akkor nézd meg mondjuk a libreelec-et, hogy az hogyan kezeli. Az is opengl (es) alapon tolja a kodit.