#!/bin/bash [[ -n "$1" ]] && ffmpeg -f dshow -i audio="$1" -c:a libmp3lame -b:a 128k OUTPUT.mp3 || echo "no audio device in argument"