Ditch stream-record because it is broken, opt for external shell script (record-toggle.sh) for recording stream.