#!/bin/bash [ "$1" ] || { echo use: $0 file... exit 0 } for file in "$@"; do ffmpeg -i "$file" -acodec libmp3lame -aq 100 "$file.mp3" done
This script should work on most audio or video formats and makes variable bit rate high quality mp3 files.
#!/bin/bash [ "$1" ] || { echo use: $0 file... exit 0 } for file in "$@"; do ffmpeg -i "$file" -acodec libmp3lame -aq 100 "$file.mp3" done
/etc/udev/rules.d/storage.rules
ATTRS{idVendor}=="0bc2", ATTRS{idProduct}=="5031", ATTRS{serial}=="NA0B3DKV", ENV{DEVTYPE}=="partition", ACTION=="add", RUN+="/usr/local/sbin/mount-storage"
/usr/local/sbin/mount-storage
#!/bin/sh mount -t vfat -o uid=nobody,gid=nogroup,dmask=000,fmask=111 \ "$DEVNAME" /mnt/store