record localstreamname=TestStream1 pathtofile=/var/evostreamms/media type=mp4
and it will create TestStream1.mp4 in /var/evostreamms/media.
I think the EMS server was not able to record to /var/evostreamms/media because of permission issue. You can do
sudo chmod 0775 /var/evostreamms/media
If that still fails, can you do
ls -al /var/evostreamms
and send us the result?
Let us know how it goes.
Thanks
Xai