add -nostdin back to ffmpeg commandline

when -nostdin is not present and ffmpeg is run without a stdin, some
kind of overflow happens and ffmpeg reads garbage as its stdin, causing
all sorts of problems

try it:
    $ transcode.sh 1 test.wav &
fix: exits rightaway when getting a signal
api: add number of favourites to long user objects
api: add timestamp to tracks