Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is ONVIF possible? #5

Open
SargFowler opened this issue Jan 29, 2020 · 30 comments
Open

Is ONVIF possible? #5

SargFowler opened this issue Jan 29, 2020 · 30 comments
Labels
feature request question Further information is requested

Comments

@SargFowler
Copy link

I'd like to hook up an ESP32-CAM to my NVR recorder, but this requires ONVIF protocol.
Is that something that can be incorporated?

@bkeevil
Copy link
Owner

bkeevil commented Jan 29, 2020

@SargFowler The camera driver only outputs an mjpeg stream and I think ONVIF requires MP4. They work well with the linux motion package if you keep the resolution low.

@bkeevil bkeevil added the question Further information is requested label Jan 29, 2020
@melvinisken
Copy link

@SargFowler If you have a spare PC available, it seems that you can turn mjpg-streams into onvif-protocols using an extra SDK: https://www.instructables.com/id/How-to-turn-an-USB-camera-with-Raspberry-Pi-into-a/ (only use step 3, the ozeki sdk). At least it looks like what you need (not a perfect solution though). I expect that you could use a number of mjpeg cameras and convert all of them in parallel with the SDK.

@bkeevil
Copy link
Owner

bkeevil commented Feb 3, 2020

ONVIF 2.0 does support MJPEG streams so it ought to possible to add this feature to the board. It wouldn't be full ONVIF support though. I think I will add it to the project roadmap and maybe someone will take that feature on at some point. Changing to feature request.

@SargFowler
Copy link
Author

That's good to know.
Thanks for the response!

@ant1fr1z
Copy link

onvif really will be very useful when using esp32-sam with aliexpress nvr

@redeyedjack
Copy link

I just got this from reddit for Blue Iris:
Blue_Iris_With_ESP32_Cam2020-05-29 140112

@turcotronics
Copy link

I confirm the code streams correctly from my ESP32-CAM to a recorder with parameters set to:
Cam: Generic
Model: Generic
Request: http://192.168.0.103:81/stream
Protocol: Server push (MJPEG)
Login: empty

Not a standard ONVIF sure but it works :-)
I'll try to play with ONVIF profile S as soon as possible.

@SargFowler
Copy link
Author

SargFowler commented Jun 4, 2020

Unfortunately, I can't get this to work with my Aliexpress NVR.
I can't set the protocol in the settings, but can confirm the stream appears in a web browser when pointed to the camera address port 81 as above.
I only have IPC or ONVIF selection, IP address and port.
Has anyone else been able to connect to their NVR?

@ant1fr1z
Copy link

similarly, aliexpress NVR does not see the flow from esp32cam (((( sad

@melvinisken
Copy link

Maybe it worth to take a look here: https://github.com/enesbcs/ESP32_RTSP_Cam

@turcotronics
Copy link

turcotronics commented Jul 19, 2020 via email

@DavidAntonin
Copy link

Hello, is there any news on simple ONVIF implementation?
Thank you

@flatsiedatsie
Copy link

flatsiedatsie commented Sep 23, 2020

I don't think anyone has implemented it yet. But from what I read here it should be a matter of generating some XML files. The full Onvif S specification can be found here.

@wyne
Copy link

wyne commented Nov 29, 2020

For anyone else reading this looking for a workaround, this worked very easily for me with Synology Surveillance Station:
https://github.com/circuitrocks/ESP32-RTSP

@DavidAntonin
Copy link

It is not possible to manually specify the RTSP stream in my NVR

@DavidAntonin
Copy link

I confirm the code streams correctly from my ESP32-CAM to a recorder with parameters set to:
Cam: Generic
Model: Generic
Request: http://192.168.0.103:81/stream
Protocol: Server push (MJPEG)
Login: empty

Not a standard ONVIF sure but it works :-)
I'll try to play with ONVIF profile S as soon as possible.

Any update on Onvif? Thank you

@Adorfer
Copy link

Adorfer commented Jul 12, 2021

Any news here? having some of those AliExpress NVRs too, who autodetect ONVIF-devices on the network. no possibility to enter the rtmp-address manually, they get it via a web-page from the device.
(BTW: it's really frustrating that people read the request and then suggest solutions which are clearly not matching the issue 'ONVIF would be helpful'.
the request was clearly not "can i transfor the stream on a separate PC/Raspi", nor "how do i enter the stream manually into a display/recording device".)

@rtek1000
Copy link

Hello,

I believe that the idea of using an NVR is to use the P2P App for Internet access,

With that in mind, I found this other platform, which, despite not solving the current case, because it is still not recommended to use a public network,

But it might be interesting to know a little about how the P2P system works:

https://github.com/nabto/nabto-esp32cam

It may be possible in the future to make a secure P2P connection similar to the NVR, using ESP32,

But I believe it may be necessary to use more RAM, the IP cameras I've seen have RAM chips similar to the one used in Linux routers that support OpenWRT OS:

https://openwrt.org/supported_devices

@rtek1000
Copy link

rtek1000 commented Jan 18, 2022

Hi,

I found this option:

Using ngrok tunnel service
After signing up for the account, go to your email address and activate your account by clicking on the activation link.
Now login to your account and click on the ‘Auth’ button’ to get your Tunnel Authtoken as shown in the figure below. Copy this Tunnel Authtoken, we will need it later on.

https://www.elementzonline.com/blog/Accessing-ESP32-CAM-Video-Streaming-from-anywhere-in-the-world

(Note: I haven't tested it yet.)

@Adorfer
Copy link

Adorfer commented Jan 19, 2022

I believe that the idea of using an NVR is to use the P2P App for Internet access,

never thought of that, but possible that there are actual people with this in mind.
Or to put it in a different way:

no, i would need ONVIF to have it on an NVR. on a site without internet access (not enought upstream for 10+ cameras).

@rtek1000
Copy link

If it's to have on a site without internet then just these software wouldn't solve it? I've used the Raspberry Pi with MotionEyeOs, and that was enough for me.

https://www.ispyconnect.com/camera/esp

espressif/esp32-camera#217

iSpy is described as 'uses your USB webcams, IP cams, capture cards, desktops and microphones to detect and record movement or sound and provides security, surveillance, monitoring and alerting services. Media is recorded directly to H264 mp4 files or AVI files' and is an app in the Video & Movies category. There are more than 50 alternatives to iSpy for a variety of platforms, including Windows, Android, iPhone, Linux and iPad. The best alternative is ZoneMinder, which is both free and Open Source. Other great apps like iSpy are Shinobi (Free Personal, Open Source), AtHome Video Streamer (Free), motionEyeOS (Free, Open Source) and Haven (Free, Open Source).

https://alternativeto.net/software/ispy/

@Adorfer
Copy link

Adorfer commented Jan 19, 2022

NB: This issue is called "ONVIF", not "how to use Raspi with esp32-cam". Please stay on topic!

@rtek1000
Copy link

rtek1000 commented Jan 19, 2022

Does the ESP32 have enough memory to make an ONVIF server?

https://onvif.github.io/specs/doc/index.html

@rtek1000
Copy link

rtek1000 commented Jan 19, 2022

Minimum resources for implementation

onvif/specs#182

@tensiondriven
Copy link

Note that has a supported build of Tasmota for ESP32 / ESPCAM, and it provides HTTP and RTSP out of the box. It can also change resolution using the inbuilt console, and has MQTT enabled. No Onvif though.

@ifdreams
Copy link

ifdreams commented Aug 30, 2022

This guy has implemented ONVIF on ESP32 https://www.bilibili.com/video/BV1jg411D7DE?spm_id_from=333.337.search-card.all.click https://www.youtube.com/watch?v=Oa11X59BZb0&t=4s

@ant1fr1z
Copy link

ant1fr1z commented Sep 25, 2022

looks like a fake, there is no code and the author's page with viruses

This guy has implemented ONVIF on ESP32 https://www.bilibili.com/video/BV1jg411D7DE?spm_id_from=333.337.search-card.all.click https://www.youtube.com/watch?v=Oa11X59BZb0&t=4s

@icyleaf
Copy link

icyleaf commented Jan 29, 2023

This guy has implemented ONVIF on ESP32 https://www.bilibili.com/video/BV1jg411D7DE?spm_id_from=333.337.search-card.all.click https://www.youtube.com/watch?v=Oa11X59BZb0&t=4s

The author released firmware on github https://github.com/trygoto/esp32-onvif today. I'm not test yet.

@codedogz777
Copy link

Is it possible someone made an English tutorial? I tried and failed doing it

@codedogz777
Copy link

as I don't know how to edit bin files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request question Further information is requested
Projects
None yet
Development

No branches or pull requests