Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Split Stereo Files (ffmpeg)
LFILE=$(SND="$INFILE" python -c "import os; print '{0}.L{1}'.format(*os.path.splitext(os.environ['SND']))")
RFILE=$(SND="$INFILE" python -c "import os; print '{0}.R{1}'.format(*os.path.splitext(os.environ['SND']))")
echo "Splitting $INFILE into:"
echo " LEFT: $LFILE"
echo " RIGHT: $RFILE"
ffmpeg -i "$INFILE" -map_channel 0.0.0 "$LFILE" -map_channel 0.0.1 "$RFILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.