xpcrts / Steaming-IP-Camera-Nodejs

Real time streaming IP/Network security camera on web browser using NodeJS
MIT License
149 stars 52 forks source link

Invalid data found and Procotol not found error #14

Open andrepesi opened 1 year ago

andrepesi commented 1 year ago

I have a problem trying to use the sample code. I have a camera that I bought in China, it doesn't have much documentation. When I run the code I get the error 'Protocol not found' or the error 'tcp://admin:123456@192.168.18.7:8554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif: Invalid data found when processing input ' and 'rstp://admin:123456@192.168.18.7:8554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif: Protocol not found'. I tried to run with other protocols but without success. It is not an error in the code because when executing these commands in ffplay or ffmpeg the same thing happens. Can someone help me ?

image

buithikieu11 commented 1 year ago

you can run this command: npm install node-onvif -s to install protocol before run