function rim set filename $argv set rootname (echo $filename | sed 's/\.[^.]*$//') ffmpeg -i $argv -c copy -metadata account_id= -metadata purchase_data= 1_$argv mv 1_$argv $argv end