I found that the following works after some time on google and playing around with the code: /usr/bin/vlc -I dummy --stop-time=3600 $INSTREAM ':sout=#transcode{acodec=mpga,ab=96,channels=2}:duplicate{dst=std{access=file,mux=raw,dst="'$OUTFILE'"}}' vlc:quit This quits nicely after being cal...