OK merci pour l’info, je ne m’inquiète pas pour les ressources. je voulais essayer de gagner en qualité. je vais voir coté caméra si je peux améliorer le snapshot …
Merci
OK merci pour l’info, je ne m’inquiète pas pour les ressources. je voulais essayer de gagner en qualité. je vais voir coté caméra si je peux améliorer le snapshot …
Merci
Youpi !!!
J’ai cherché une solution depuis un lonnnng moment. mais avec le bon mot clé et Gogole !!!
Ça fonctionne en snapshot avec une bonne résolution.
il fallait rajouter &res=0 à la fin de l’URL.
Pour résumer, pour les personnes qui ont une VSTARCAM C7824WIP.
Commande de mouvements :
HAUT : /decoder_control.cgi?loginuse=admin&loginpas=#password#&command=0&onestep=1
BAS : /decoder_control.cgi?loginuse=admin&loginpas=#password#&command=2&onestep=1
GAUCHE : /decoder_control.cgi?loginuse=admin&loginpas=#password#&command=4&onestep=1
DROIT : /decoder_control.cgi?loginuse=admin&loginpas=#password#&command=6&onestep=1
Vous pouvez mémoriser des positions préféré :
Mémoriser la position courante en position 1 :
/decoder_control.cgi?loginuse=admin&loginpas=#password#&command=30&onestep=1
Mémoriser la position courante en position 2 :
/decoder_control.cgi?loginuse=admin&loginpas=#password#&command=32&onestep=1
Mémoriser la position courante en position 3:
/decoder_control.cgi?loginuse=admin&loginpas=#password#&command=34&onestep=1
Aller en position 1 :
/decoder_control.cgi?loginuse=admin&loginpas=#password#&command=31&onestep=1
Aller en position 2 :
/decoder_control.cgi?loginuse=admin&loginpas=#password#&command=33&onestep=1
Aller en position 3:
/decoder_control.cgi?loginuse=admin&loginpas=#password#&command=35&onestep=1
Bonjour à Tous,
Merci pour ce petit Tuto qui m’a beaucoup aider à voir ma caméra sur Jeedom.
C’est une XM530_R80X20, une nième caméra chinoise pour l’extérieur qui est ONVIF et PTZ.
Avec l’application ONVIFER sur mon téléphone, aucun problème pour utiliser les commandes PTZ. Par contre, pour Jeedom, je n’arrive pas à trouver les url pour pouvoir l’utiliser.
la commande node getStatus.js me donne bien les caractéristiques de la caméra.
Est-ce que quelqu’un pourrait m’aider à trouver les url à mettre pour pouvoir la faire bouger?
Merci d’avance!!!
Bonjour,
Je peux rajouter mon eau au moulin,
J’ai une Camera Xiaovv Q6S (PTZ, ONVIF,RTSP)
Via TinyCam monitor sur mon Android elle est configurée comme ceci , le PTZ est dispo :
ça récupere tout seul l’adresse du flux RTSP en (RTSP over TCP) etc… si je regarde les infos une fois configuré :
Hors avec jeedom j’ai essayé moultes combinaisons en modele onvif
j’ai toujours le GetCapabilities: Communication error, par ou devrait je commencer à chercher pour ne pas avoir cette erreur et acceder enfin aux controles PTZ? serait-ce lié à l’histoire du type de profil ONVIF (G, Q, S , T) ?
En revanche en mode RTSP habituel (modèle aucun + URL du flux rtsp direct) , pas de souci , le flux est dispo
je ne comprends pas je retrouve rien dans les logs nicamera , ni event… des idées ou chercher ?
onvif manager sur windows pareil
il arrive à utilisr les parametres PTZ
Camera Chinoise sans marque Onvif. Pas de souci pour le flux video mais comment obtenir le pilotage PTZ à partir de jeedom?
J’ai recup le status de camera avec node :
const onvif = require('node-onvif');
// Create an OnvifDevice object
let device = new onvif.OnvifDevice({
xaddr: 'http://192.168.0.122/onvif/device_service',
user : 'admin',
pass : ''
});
// Initialize the OnvifDevice object
device.init().then(() => {
let profile = device.getCurrentProfile();
console.log(JSON.stringify(profile, null, ' '));
}).then(() => {
console.log('Done!');
}).catch((error) => {
console.error(error);
});
Résultat :
λ node C:\Users\ericr\Downloads\status.js
{
"token": "Profile_1",
"name": "mainStream",
"snapshot": "http://192.168.0.122/onvif/snapshot",
"stream": {
"udp": "rtsp://192.168.0.122:554",
"http": "rtsp://192.168.0.122:80",
"rtsp": "rtsp://192.168.0.122:554"
},
"video": {
"source": {
"token": "VideoSourceToken",
"name": "VideoSourceConfig",
"bounds": {
"width": 1920,
"height": 1080,
"x": 0,
"y": 0
}
},
"encoder": {
"token": "VideoEncoderToken_1",
"name": "VideoEncoder_1",
"resolution": {
"width": 1920,
"height": 1080
},
"quality": 10,
"framerate": 0,
"bitrate": 0,
"encoding": "H264"
}
},
"audio": {
"source": {
"token": "AudioSourceConfigToken",
"name": "AudioSourceConfig"
},
"encoder": null
},
"ptz": {
"range": {
"x": {
"min": null,
"max": null
},
"y": {
"min": null,
"max": null
},
"z": {
"min": null,
"max": null
}
}
}
}
Done!
Ma config :
Commande vide (devrait être peuplé à la sauvegarde, si j’ai bien compris):
Pas de PTZ à l’affichage:
PTZ onvif ok sous Onvif device manager :
alors jai pas essayé avec Node (Node-Red je suppose?)
J’ai l’impression que c’est surtout au niveau du profile onvif que les choses se passent, Le profile permets à un logiciel de savoir comment piloter une caméra et ses capacités mais pet-être (et j’insiste sur le peut-être) jeedom n’utilise pas le profile pour découvrir comment utiliser une cam
je me trompe peut être totallement mais je me dis que si tiny cam et onvif manager peuvent le faire jeedom, qui est notre champion devrait pouvoir le faire !
Non nodejs le vrai, le pur, la merveille https://nodejs.org/fr/
node-onvif est une bibliothèque node que l’on installe avec npm https://www.npmjs.com/package/onvif
Yep, I think so
Je me dis également que les commandes PTZ Onvif sont inclus dans un protocol standard Onvif. Il faut « juste » connaitre l’URL (et le port…80 sur ma cam) du type http://192.168.0.122/onvif/PTZ (avec un POST et la structure type json qui va bien je suppose). C’est ce que j’ai entrevu sur Wireshark… il me faudrait du temps pour approfondir mais je ne l’ai pas!!
Un jeune « geek » Jeedom va bien passer par là
ben tout ce que je sais c’est que si je tape sur le port ONVIF (8899) via browser ,moi j’ai ça :
<SOAP-ENV:Fault xmlns:SOAP-ENV=« http://schemas.xmlsoap.org/soap/envelope/ » xmlns:SOAP-ENC=« http://schemas.xmlsoap.org/soap/encoding/ » xmlns:xsi=« http://www.w3.org/2001/XMLSchema-instance » xmlns:xsd=« XML Schema » xmlns:wsa=« http://schemas.xmlsoap.org/ws/2004/08/addressing » xmlns:wsdd=« http://schemas.xmlsoap.org/ws/2005/04/discovery » xmlns:chan=« http://schemas.microsoft.com/ws/2005/02/duplex » xmlns:wsa5=« WS-Addressing 1.0 Namespace » xmlns:c14n=« Exclusive XML Canonicalization Version 1.0 » xmlns:wsu=« http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd » xmlns:xenc=« XML Encryption Syntax and Processing » xmlns:wsc=« http://schemas.xmlsoap.org/ws/2005/02/sc » xmlns:ds=« XML-Signature Syntax and Processing » xmlns:wsse=« http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd » xmlns:xmime=« Bing » xmlns:xop=« http://www.w3.org/2004/08/xop/include » xmlns:tt=« http://www.onvif.org/ver10/schema » xmlns:tds=« http://www.onvif.org/ver10/device/wsdl » xmlns:tev=« http://www.onvif.org/ver10/events/wsdl » xmlns:wsnt=« http://docs.oasis-open.org/wsn/b-2 » xmlns:timg=« http://www.onvif.org/ver20/imaging/wsdl » xmlns:tmd=« http://www.onvif.org/ver10/deviceIO/wsdl » xmlns:tptz=« http://www.onvif.org/ver20/ptz/wsdl » xmlns:trc=« http://www.onvif.org/ver10/recording/wsdl » xmlns:trt=« http://www.onvif.org/ver10/media/wsdl »>
SOAP-ENV:Client
HTTP GET method not implemented
</SOAP-ENV:Fault>
personne a une idée par hasard ?
Slt…
Avec Wireshark effectivement on récupère les infos mais en mode http…
Sinon en décodant la page html ( si on y a accés) déjà pal mal d’info ( en tout cas pour moi)…
Pour ma CAM Type IPCAM Type C6F0SoZ3N0PcL2… Marque: Jeenov Type: T-séries
Et c’est là que je m’aperçois que le logiciel n’autorise pas l’accès à la page SD et enregistrement , que sur Microsoft Internet Explorer
merci bcp de ta reponse, dans mon cas c’est plus compliqué car il n’y pas d’interface web…
la caméra en question est une Xiaovv Q6S PTZ
à entre 12-16€ c’est une affaire franchement, bon sauf le soft apparement
Slt…
Il faut regarder son adresse IP et port, tu as quand même accès par un prog ?
Après on scan les appels à cette adresse…
hello, oui
ya meme une app sur windows, cette app fait partie d’une genre de norme entre plusieurs constructeurs chinois qui utilisent tous la meme app qui s’appelle V380
je tenterais de regarder avec du wireshark si c’est pas du https
le seul truc c’est du SOAP derriere j’ai l’impression et c’est pas du tout mon domaine
Des fois, seulement en affichant le code source de la page, on a assez d’info pour s’y retrouver, après c’est pas pour cela que l’on arrive à l’intégrer facilement dans Jeedom
ben dans mon cas, ya pas de code source à proprement dire seulement un retour d’erreur HTTP GET qui semble faire référence à des methodes POST d’apres mon url IP:8899
Slt…
On a tous les mêmes types de message si on appel le port du onvif, car c’est du xml…
Il te faut voir l’accès http et récupérer le port…Ou scruter avec « Wireshark »
@+DÖM (Ô¿Ô)
mmmh ces camera V380 sont vraiement intriguantes… Donc ma fameuse Xiaovv Q6S, avec ONVIFER sur Android le PTZ fonctionne aussi direct
En faisant un tilt down je vois cecidans les traces ONVIFER (extrait du log ) :
2020-08-12 22:58:46.810 8/20
Tilt-down button pressed.
2020-08-12 22:58:46.810 7/20
bPTZActive upon entering DoContinuousPanTilt(): true
2020-08-12 22:58:46.810 6/20
bPTZActive before sending ContinuousMove: true
2020-08-12 22:58:46.810 5/20
entering bPTZActive watchdog: true
2020-08-12 22:58:46.810 4/20
Sending command: ContinuousMove Authentication time:Wed Aug 12 22:58:47 GMT+02:00 2020
http://192.168.2.4:8899/onvif/PTZ
2020-08-12 22:58:46.810 3/20
Entering SOAP call loop.
2020-08-12 22:58:46.810 2/20
Response: <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl"><SOAP-ENV:Header><wsa5:Action SOAP-ENV:mustUnderstand="true">http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><tptz:ContinuousMoveResponse></tptz:ContinuousMoveResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2020-08-12 22:58:46.810 1/20
Continuous P/T.
P/T Start Response Time (ms): 35
Speed: x: 0.0 y: -0.2
2020-08-12 22:58:46.810 0/20
Continuous P/T successful response.
2020-08-12 22:58:46.910 7/20
Tilt-down button released.
2020-08-12 22:58:46.911 6/20
bPTZActive.bValue set to false
2020-08-12 22:58:46.911 5/20
Tilt-down button pressed.
2020-08-12 22:58:46.911 4/20
bPTZActive upon entering DoContinuousPanTilt(): true
2020-08-12 22:58:46.911 3/20
entering bPTZActive watchdog: true
2020-08-12 22:58:46.911 2/20
bPTZActive before sending ContinuousMove: true
2020-08-12 22:58:46.911 1/20
Sending command: ContinuousMove Authentication time:Wed Aug 12 22:58:47 GMT+02:00 2020
http://192.168.2.4:8899/onvif/PTZ
2020-08-12 22:58:46.911 0/20
Entering SOAP call loop.
2020-08-12 22:58:47.011 8/20
Response: <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl"><SOAP-ENV:Header><wsa5:Action SOAP-ENV:mustUnderstand="true">http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><tptz:ContinuousMoveResponse></tptz:ContinuousMoveResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2020-08-12 22:58:47.011 7/20
Continuous P/T.
P/T Start Response Time (ms): 45
Speed: x: 0.0 y: -0.2
2020-08-12 22:58:47.012 6/20
Continuous P/T successful response.
2020-08-12 22:58:47.012 5/20
Tilt-down button released.
2020-08-12 22:58:47.012 4/20
bPTZActive.bValue set to false
2020-08-12 22:58:47.012 3/20
leaving bPTZActive watchdog: false
2020-08-12 22:58:47.012 2/20
Sending stop command to stop either continuous or relative move. bPTZActive: false
2020-08-12 22:58:47.012 1/20
Sending command: Stop Authentication time:Wed Aug 12 22:58:47 GMT+02:00 2020
http://192.168.2.4:8899/onvif/PTZ
2020-08-12 22:58:47.012 0/20
Entering SOAP call loop.
2020-08-12 22:58:47.112 9/20
Response: <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl"><SOAP-ENV:Header><wsa5:Action SOAP-ENV:mustUnderstand="true">http://www.onvif.org/ver20/ptz/wsdl/Stop</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><tptz:StopResponse></tptz:StopResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2020-08-12 22:58:47.112 8/20
Tilt-down button pressed.
2020-08-12 22:58:47.112 7/20
bPTZActive upon entering DoContinuousPanTilt(): true
2020-08-12 22:58:47.112 6/20
bPTZActive before sending ContinuousMove: true
2020-08-12 22:58:47.112 5/20
entering bPTZActive watchdog: true
2020-08-12 22:58:47.112 4/20
Sending command: ContinuousMove Authentication time:Wed Aug 12 22:58:48 GMT+02:00 2020
http://192.168.2.4:8899/onvif/PTZ
2020-08-12 22:58:47.112 3/20
Entering SOAP call loop.
2020-08-12 22:58:47.112 2/20
Response: <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl"><SOAP-ENV:Header><wsa5:Action SOAP-ENV:mustUnderstand="true">http://www.onvif.org/ver20/ptz/wsdl/ContinuousMove</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><tptz:ContinuousMoveResponse></tptz:ContinuousMoveResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
2020-08-12 22:58:47.112 1/20
Continuous P/T.
P/T Start Response Time (ms): 49
Speed: x: 0.0 y: -0.2
2020-08-12 22:58:47.112 0/20
Continuous P/T successful response.
2020-08-12 22:58:47.213 12/20
Tilt-down button released.
2020-08-12 22:58:47.213 11/20
bPTZActive.bValue set to false
2020-08-12 22:58:47.213 10/20
leaving bPTZActive watchdog: false
2020-08-12 22:58:47.213 9/20
Sending stop command to stop either continuous or relative move. bPTZActive: false
2020-08-12 22:58:47.213 8/20
Sending command: Stop Authentication time:Wed Aug 12 22:58:47 GMT+02:00 2020
http://192.168.2.4:8899/onvif/PTZ