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

Clarification - ONVIF API to get/set video standard from/to the camera. #485

Closed
venki5685 opened this issue Oct 24, 2024 · 4 comments
Closed

Comments

@venki5685
Copy link
Contributor

is any ONVIF API currently exists to get video standard i.e PAL/NTSC configured in the camera? Also ONVIF API to set video standard to the camera.

@venki5685 venki5685 changed the title Clarification - do we have any ONVIF API to get/set video standard from/to the camera. Clarification - ONVIF API to get/set video standard from/to the camera. Oct 24, 2024
@kieran242
Copy link
Contributor

With Network IP devices PAL/NTSC Video Standards are not necessary as they generally only apply to Analogue Video Input i.e. USA NTSC analogue at 30fps at a low Fixed Resolution or PAL @25fps at a Low Fixed Rate Resolution.
With IP devices the FPS has shifted to 60fps and at minimum 30/25 Fps negating the need for PAL/NTSC Video Standards.

Not sure here why you need specific API's for PAL/NTSC Video Standards in the ONVIF Specs?

@venki5685
Copy link
Contributor Author

While IP cameras are digital and do not directly use analog standards like NTSC or PAL, these standards can still influence certain aspects of the IP Camera's operation:

  1. Frame Rate:
    The frame rate of the camera may be influenced by the regional video standard. For example, in NTSC regions i.e USA, cameras might default to 30 fps, while in PAL regions i.e In Europe or Asia, they might default to 25 fps.
    Ensuring the correct frame rate can help avoid issues with flicker when using artificial lighting that operates at the local power line frequency (50 Hz(PAL) or 60 Hz(NTSC)) Compatibility.

  2. Shutter Speed:
    Exposure time, also known as shutter speed, is the duration for which the camera's sensor is exposed to light. When dealing with artificial lighting that flickers at the power line frequency (50 Hz or 60 Hz), setting the correct exposure time is crucial to minimize flicker in the captured images or video.
    To minimize flicker, the exposure time should be synchronized with the power line frequency. This means setting the exposure time to a multiple of the period of the power line frequency.
    For 50 Hz Power Line Frequency:
    The period of a 50 Hz frequency is 1/50 seconds, which is 20 milliseconds (ms). Therefore, the exposure time should be a multiple of 20 ms to avoid flicker.
    For 60 Hz Power Line Frequency:
    The period of a 60 Hz frequency is 1/60 seconds, which is approximately 16.67 milliseconds (ms). Therefore, the exposure time should be a multiple of 16.67 ms to avoid flicker.

  3. Some IP cameras offers analog video output for compatibility with older equipment. In such cases, the camera might need to support NTSC or PAL output formats. This can be useful for integrating IP cameras into existing analog CCTV systems.

@venki5685
Copy link
Contributor Author

We mainly use NTSC/PAL setting for anti flicker. This can be achieved by adjusting max sensor frame rate and shutter speed based on the regions where cameras are installed. Reviewed ONVIF GetVideoSourceModes/SetVideoSourceMode API, which have provision to set max sensor resolution, max sensor frame rate and the default shutter speed can be adjusted based on max sensor frame rate configured. So we are fine with using GetVideoSourceModes/SetVideoSourceMode API. Hence this issue can be closed.

@sujithhanwha
Copy link
Contributor

Closing this issue based on 1/9 telco.

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

3 participants