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

Feature request, clock overlay #116

Open
rubin110 opened this issue Mar 16, 2024 · 1 comment
Open

Feature request, clock overlay #116

rubin110 opened this issue Mar 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@rubin110
Copy link

It would be great if there was a clock overlay on the video stream, though I'm pretty sure that's impossible due to how limited the platform is. Also I imagine you'll need to include some NTP client to grab the time. Anyhow, figured it couldn't hurt to ask. Thanks!

@rzeldent rzeldent added the enhancement New feature or request label Mar 17, 2024
@rzeldent
Copy link
Owner

Hi Rubin,

Sure does not hurt to ask!

RTSP has the provision to include a timestamp in the stream. See CStreamer.cpp

    RtpBuf[8] = (m_Timestamp & 0xFF000000) >> 24; // each image gets a timestamp
    RtpBuf[9] = (m_Timestamp & 0x00FF0000) >> 16;
    RtpBuf[10] = (m_Timestamp & 0x0000FF00) >> 8;
    RtpBuf[11] = (m_Timestamp & 0x000000FF);

Not exactly clear how this is used right now. Seems to start at 0 and updated based on the fps.

This could be used to generate some overlay (lateron) but will require a dependency on NTP...

An overlay is really out of scope because the esp32 is already at the max of CPU power for processing and sending images. However, will take a look at the possibility to include a valid/NTP timestamp!

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

No branches or pull requests

2 participants