video encoding works, but hangs for large files.