pub fn decode(input_path: &str, output_path: &str) -> Result<()>