codec loops, uses ram disk, exits