#!/bin/bash tmp_dir=$1 both_channels=$2 ffmpeg -i $both_channels -map_channel 0.0.0 $tmp_dir/left.wav -map_channel 0.0.1 $tmp_dir/right.wav