1
I have an application written in Node.Js that needs to record the camera video in an mp4 file and also stream it via streaming to a specific url. For test and learning purposes, I made a code using the laptop 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