#!/bin/bash # -ss = seconds to crop from begining, 1800 = 30 min ffmpeg -f alsa -ac 2 -ar 44100 -i hw:0,0 -acodec libmp3lame -nostdin -ss 1800 /opt/SmartAlarm/tmp/tmp.mp3 & /usr/bin/vlc --started-from-file "$*"