Implement cmdutils.c:read_file(), and use it in ffmpeg.c for reading