Answer for Problem with ‘restarting’ encoding process

I just ran a quick test. I get the message when issuing the encoding command:
{"data":null,"description":"Destination stream (1) to EMS already exists!","status":"FAIL"}
The stream list is:
{"data":[{"appName":"evostreamms","audio":{"bytesCount":7643,"codec":"AAAC","codecNumeric":4702111241970122752,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":42},"bandwidth":564,"connectionType":0,"creationTimestamp":1.395168936522043E12,"edgePid":0,"farIp":"127.0.0.1","farPort":61031,"ip":"127.0.0.1","name":"a1","nearIp":"127.0.0.1","nearPort":1935,"outStreamsUniqueIds":null,"port":1935,"processId":7095,"processType":"origin","queryTimestamp":1.395168939119804E12,"type":"INR","typeNumeric":5282249572905648128,"uniqueId":4,"upTime":2597.761,"userAgent":"FMLE/3.0 (compatible; FMSc/1.0)","video":{"bytesCount":67583,"codec":"VH264","codecNumeric":6217274493967007744,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":174}}],"description":"Available streams","status":"SUCCESS"}
The listCondig straight after the FAIL occurs:
{"data":{"hds":[],"hls":[],"mss":[],"process":[{"arguments":"rtsp://localhost:5544/a1 180000 428x240 na 64000 1 48000 na na na na na na -f\ flv\ tcp://localhost:6666/ 1","configId":1,"fullBinaryPath":"/evostreamms-1.6.5.2959-x86_64-MacOSX_10.9/bin/emsTranscoder.sh","groupName":"encoder_1","keepAlive":false,"operationType":7,"status":{"current":{"code":0,"description":"Streaming","timestamp":1395168793,"uniqueStreamId":0},"previous":{"code":1,"description":"Connecting","timestamp":1395168793,"uniqueStreamId":0}}}],"pull":[],"push":[],"record":[]},"description":"Run-time configuration","status":"SUCCESS"}
Edit: actually, it seems that even though I remove the config when encoding is finished, it still shows up in the list. I though about adding a random number, but that gives the problem that the number is needed for the directory the files are stored in. Edit2: Actually, I think specifically removing the encoding process (even with keepAlive=0) seems to work, I had a bug in my code so the name of the group was wrong.

Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.