Adjust codec parameters
Debug file writing works