Hello,
I use avconv to generate snapshots from a camera that doesn't support this feature (avconv -i http://user:[email protected]/img/video.asf -update 1 -vsync 1 -r .5 -an /home/pi/Samba/WVC54GC-MEZZANINE.jpg )
Then I have a symbolic link to get the snapshot within domoticz web domain (/home/pi/domoticz/www/iot_CAM> ln -s /home/pi/Samba/WVC54GC-MEZZANINE.jpg ./WVC54GC-MEZZANINE)
Up to this step, everything works fine.
But I can't success to use the snapshots with Domoticz. You can see in the screenshot below the parameters I use in Edit Camera Mode. In this edit mode, I can get the snapshot if the username is null.
The issues I get :
- when in Edit mode I save the parameters, the username doesn't stay null, I get my login user name and then I can't get the snapshots anymore,
- It doesn't work at all in ShowCameraLiveSteam (when you click at the camera icon of the switch linked to the camera).
What is wrong? How do you parameter Domoticz to use snapshots generated by avconv?
[SOLVED] Need Help: How to use a snapshot generated by avconv/ffmpeg Topic is solved
Moderator: leecollings
- Antori91
- Posts: 136
- Joined: Sunday 12 February 2017 17:12
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10717
- Location: France
- Contact:
[SOLVED] Need Help: How to use a snapshot generated by avconv/ffmpeg
Last edited by Antori91 on Wednesday 14 February 2018 8:24, edited 1 time in total.
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
- Antori91
- Posts: 136
- Joined: Sunday 12 February 2017 17:12
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10717
- Location: France
- Contact:
[SOLVED] Re: Need Help: How to use a snapshot generated by avconv/ffmpeg
OK Solved. I've found the trick. You have to use a snapshot name corresponding to a fake cgi url with user/password
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
-
- Posts: 52
- Joined: Wednesday 04 October 2017 11:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [SOLVED] Re: Need Help: How to use a snapshot generated by avconv/ffmpeg
Did you create an ImageURL.cgi file or something that redirects to the image?
What does the cgi file contain to do this?
I can't really seem to find a good example of the contents of a camera.cgi file.
- Antori91
- Posts: 136
- Joined: Sunday 12 February 2017 17:12
- Target OS: NAS (Synology & others)
- Domoticz version: 4.10717
- Location: France
- Contact:
Re: [SOLVED] Need Help: How to use a snapshot generated by avconv/ffmpeg
Hello,
I did this using Apache with cgi support.
I've changed my cameras and don't use anymore this. As far as I remember, the cookbook is:
First to get the avconv snapshots in Apache, use symbolic link:
[/var/www/html]> ln -s .../AVCONV/MY_SNAPSHOT.jpg ./CGIProxy.fcgi.MY_SNAPSHOT.usr=MY_USER_NAME
Then in Domoticz, enter
IP Address: Apache IP address
Port: Apache Port number
Username: MY_USER_NAME
Password: leave blank
imageUrl: /CGIProxy.fcgi.MY_SNAPSHOT.usr=#USERNAME
I did this using Apache with cgi support.
I've changed my cameras and don't use anymore this. As far as I remember, the cookbook is:
First to get the avconv snapshots in Apache, use symbolic link:
[/var/www/html]> ln -s .../AVCONV/MY_SNAPSHOT.jpg ./CGIProxy.fcgi.MY_SNAPSHOT.usr=MY_USER_NAME
Then in Domoticz, enter
IP Address: Apache IP address
Port: Apache Port number
Username: MY_USER_NAME
Password: leave blank
imageUrl: /CGIProxy.fcgi.MY_SNAPSHOT.usr=#USERNAME
Domoticz High Availability Cluster: Synology Dz V4.10693 (Main) - Raspberry Dz V4.10717 (Backup) - Scripts Node.js
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
Alarm server: Raspberry - motionEye - iot_ALARM-SVR Node.js
Sensors/Actuators: ESP8266-Arduino
https://github.com/Antori91/Home_Automation
-
- Posts: 52
- Joined: Wednesday 04 October 2017 11:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [SOLVED] Need Help: How to use a snapshot generated by avconv/ffmpeg
Thanks. I will try thatAntori91 wrote: ↑Sunday 03 March 2019 18:10 Hello,
I did this using Apache with cgi support.
I've changed my cameras and don't use anymore this. As far as I remember, the cookbook is:
First to get the avconv snapshots in Apache, use symbolic link:
[/var/www/html]> ln -s .../AVCONV/MY_SNAPSHOT.jpg ./CGIProxy.fcgi.MY_SNAPSHOT.usr=MY_USER_NAME
Then in Domoticz, enter
IP Address: Apache IP address
Port: Apache Port number
Username: MY_USER_NAME
Password: leave blank
imageUrl: /CGIProxy.fcgi.MY_SNAPSHOT.usr=#USERNAME
Who is online
Users browsing this forum: No registered users and 1 guest