Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
###############################################################
# Script Name: convert-to-320-mp3.sh
# Description: Converts audio files to mp3
# Author: @miseryconfusion.com
# Date: 2025-07-09
# Version: 1.0
# Usage: ./convert-to-mp3.sh file-to-convert ...
# Notes: This script requires ffmpeg to run
#!/bin/sh
# Example usage: ./audio-pitch https://youtube-dl.bandcamp.com/ -0.21
# Above will play the track with pitch adjusted to -21%
link="$(youtube-dl -f bestaudio -g $1)"
ffplay -af "asetrate=44100*(1+$2),aresample=44100" $link