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

add timestamp choice and conversion methods ? #31

Open
c1ngular opened this issue Oct 10, 2022 · 2 comments
Open

add timestamp choice and conversion methods ? #31

c1ngular opened this issue Oct 10, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@c1ngular
Copy link

c1ngular commented Oct 10, 2022

i see from ffmpeg v4l2 , it has :

/**

  • Return timestamps to the user exactly as returned by the kernel
    /
    #define V4L_TS_DEFAULT 0
    /
    *
  • Autodetect the kind of timestamps returned by the kernel and convert to
  • absolute (wall clock) timestamps.
    /
    #define V4L_TS_ABS 1
    /
    *
  • Assume kernel timestamps are from the monotonic clock and convert to
  • absolute timestamps.
    */
    #define V4L_TS_MONO2ABS 2

is it implemented in this project , i think it might be a useful feature .

P.S. this project evolves a lot since my last visit , great job .

@vladimirvivien
Copy link
Owner

Hi @c1ngular
Thanks for your interest in the project. Yes, at some point it will be useful to return timestamp as returned by the device. There is so much possible, so little time 😄

@vladimirvivien vladimirvivien added the enhancement New feature or request label Oct 21, 2022
@svenczbg
Copy link

Hi @vladimirvivien
I'm also interested in getting the timestamp from the device.
In my application (eye tracking), I'm processing each frame individually and could therefore "live with" storing the last timestamp in the Device struct in device.go. Then I could just read the timestamp from the Device struct for each frame that my app is processing.

Would you consider a PR for this if I implemented that?

I can very understand your time problem very well 😉. I can't spend the time on a fork of my own and would rather contribute to your project. If you have other thoughts on preserving the device timestamp, I'm happy to hear and will consider if I can do it.

BR
Sven

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

3 participants