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

access SD card data on IP camera with ONVIF on python #116

Open
tib-sim opened this issue Aug 31, 2023 · 2 comments
Open

access SD card data on IP camera with ONVIF on python #116

tib-sim opened this issue Aug 31, 2023 · 2 comments

Comments

@tib-sim
Copy link

tib-sim commented Aug 31, 2023

I am trying to access the SD card of my IP camera in a remote way.

The set of functions available is here https://www.onvif.org/onvif/ver20/util/operationIndex.html.

I can easily use the ones under DeviceMgmt by calling mycam.devicemgmt or the ones under PTZ by calling first ptz=mycam.create_ptz_service() and then mycam.ptz. I am not so sure about this difference by the way.

However if I tried to do the same with Recording (with I guess the functions allowing to get SD card data), but it does not work.

I ran mycam.devicemgmt.GetCapabilities() and can see that PTZ and Recording are not "organized" in the same way (see below) because in the structure PTZ is "acessible" directly while recording is under something called Extension with a set of different "functions" like DeviceIO.

How can I use the the Recording functions, what should be the python syntax?

    'PTZ': {
        'XAddr': 'http://XXX.XXX.XXX.XXX/onvif/PTZ',
        '_value_1': None,
        '_attr_1': None
    },
    'Extension': {
        '_value_1': [
            <Element {http://www.onvif.org/ver10/schema}DeviceIO at 0x2722de89f00>,
            <Element {http://www.onvif.org/ver10/schema}Recording at 0x2722de89ec0>,
            <Element {http://www.onvif.org/ver10/schema}Search at 0x2722de89e40>,
            <Element {http://www.onvif.org/ver10/schema}Replay at 0x2722de89f40>
        ]
}```
@smsver2
Copy link

smsver2 commented Jun 26, 2024

@tib-sim Have you found any answer to the question, I'm facing the same problem and tryig to get access to the sd card footages but facing so many problem, thanks in advance.

@tib-sim
Copy link
Author

tib-sim commented Jun 27, 2024

I am sorry we did not resolve this issue. We ended up using a software called motioneye https://github.com/motioneye-project/motioneye/wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants