MJPEG transcoding
Most important is transcoding of MJPEG stream. I’ve looked at transcode API and tried but without success. Here is the API call I’m doing:
transcode source=http://192.168.1.34:81/videostream.cgi?loginuse=user&loginpas=pass destinations=zodiak909
EMS list of streams is empty after “transcode” command execution:
getStreamsCount
P{"data":{"count":0},"description":"Active streams count","status":"SUCCESS"}
Does transcode API support MJPEG to H.264 conversion? And if so, how it should be used?
We have managed to convert MJPEG stream to H.264 by avconv tool (from LibAV library) and add it to EMS:
avconv -f mjpeg -i "http://192.168.42.127:81/videostream.cgi?loginuse=admin&loginpas=admin" -c:v h264 -f rtsp -metadata title=mjpeg-stream -muxdelay 0.1 rtsp://127.0.0.1:5544/mjpeg-stream
But there is still a question: can we use avconv for the conversion or we should prefer transcode API EMS? What are the pros and cons of using each of them?