Running this:
Code: Select all
curl -k -XPOST https://localhost/zm/api/monitors.json -d "Monitor[Id]=101&Monitor[Name]=Front&Monitor[ServerId]=0&Monitor[StorageId]=0&Monitor[Type]=Ffmpeg&Monitor[Function]=Modect&Monitor[Enabled]=1&Monitor[DecodingEnabled]=1&Monitor[Method]=rtpRtsp&Monitor[Path]=rtsp://10.10.100.1/0"
Results in:
Code: Select all
{"message":{"OutputCodec":["Please choose one of the following values : H264, Mjpeg, Mpeg1, Mpeg2","Please choose one of the following values : H264, Mjpeg, Mpeg1, Mpeg2"]}}
Code: Select all
{"success":false,"data":{"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"\/zm\/api\/monitors.json","exception":{"class":"PDOException","code":"22007","message":"SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'h264' for column `zm`.`Monitors`.`OutputCodec` at row 1"}}}
Added: I don't see anywhere in the web UI when defining a monitor to set the OutputCodec.