I'm trying to make a bash script for nautilus that converts a flv-file to mpg. I can't rename the new file properly. The file name.flv should be called name.mpg when converted. Pretty simple. The basic idea is this:
#triple backspace to delete flv-ending in filename
ffmpeg -i "$1" "$1""$b"mpg
"$1": is input filename
"$1""$b"mpg: is output filename
I've tried many different versions of this, but the best of them only converts to a filename where the backspace characters are reckognized as some weird symbol. How do I manipulate the string properly?