Transplant cl_avi.c from ioq3
Support writing video to a named pipe