OpenTimelineIO / otio-youtube-example

Example Python script which turns a YouTube video and description into an OpenTimelineIO OTIO file.
Apache License 2.0
5 stars 2 forks source link

Improve parsing of timestamps in youtube description to work for other formats #7

Open utsab opened 2 years ago

utsab commented 2 years ago

Currently, the regular expressions that we use to parse time stamps assume that they will have the following format:

for example, 1:47 Introduction to hash maps But there are other timestamp formats such as in [this video](https://www.youtube.com/watch?v=t2CEgPsws3U). Can you improve the parsing logic to work with the format in that video? Also, are there other timestamp formats featured in other videos that we're not aware of?
utsab commented 2 years ago

I wonder if it's possible to create OTIO adaptor that reads in a Youtube description and processes it.