N900 has a hardware decoder for h.264 I did something like that in 2014 https://talk.maemo.org/showthread.php?t=93178