Originally Posted by maxhud
Even for the php version?
PHP has no built in way to do this. You must run it through an exec or similar system call in order to do a conversion.
Alternatively, you'll be writing bit parsers to transcode, which will take hours in a language like PHP to run.