I have an application written in Node.Js that needs to record the video of the camera in an archival mp4 and also transmit it via streaming to a specific url. For testing and learning purposes, I made a code using the notebook's webcam as data input, however, I would like to know how to change the original code that is working perfectly to use an IP camera as data input.
RTMP Protocol would solve the problem?
Code:
ffmpeg -f dshow -rtbufsize 2048M -i video="Integrated Webcam" -t 300 -codec:v mpeg1video
meuvideo.mp4 -f mpegts -q:v 5 -codec:v mpeg1video -t 300 http://127.0.0.1:4000/token