A php script that crawls a directory of videos and converts uses FFMPEG.