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

UDT: VideoTimestamp #689

Open
da-liii opened this issue Jun 28, 2022 · 2 comments
Open

UDT: VideoTimestamp #689

da-liii opened this issue Jun 28, 2022 · 2 comments

Comments

@da-liii
Copy link
Collaborator

da-liii commented Jun 28, 2022

eto-ai/spark-video#26

scala> Int.MaxValue / (1000 * 60 * 60)
val res5: Int = 596
scala> Long.MaxValue / (1000 * 60 * 60)
val res7: Long = 2562047788015

We need a UDT (VideoTimestamp) to represent the timestamp used to locale the video frame.

@changhiskhan
Copy link
Contributor

How is video timestamp different from regular timestamps?

Also one functionality that would be interesting for videos is to use the extracted video metadata to make it easy to switch between timestamps and frame numbers. When it comes to timestamps videos also have the concept of time basis which is very weird to deal with as an ML eng

@da-liii
Copy link
Collaborator Author

da-liii commented Jun 28, 2022

Timestamp/DataTime is bound to time zone. Using a UDT with LongType as the impl will help us avoid type conversion in PySpark/Arrow/Spark.

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