Code Sample |
#!/bin/bash # # /opt/tcode/tcode160 - A small Emelfm script to transcode a single mp3 # file into a new 160kb mp3 file in the other directory # window pane. # # This new mp3 filetype association action COMMAND should be created in Emelfm: # # /opt/tcode/tcode160 %f %D # # Do NOT select multiple mp3 files at the same time when using this command. # # Script begins here filename="$1" output_path="$2" newfile=`echo $filename | awk -F .mp3 '{print $1}'` lame --mp3input "$filename" -h -v -b 160 "$output_path/$newfile-160.mp3" exit |