change output file mode from 666 to 664. change type of mixer_options to unsigned short.