veyepar icon indicating copy to clipboard operation
veyepar copied to clipboard

Extract URLs from presentation slides and create YouTube annotations over top of them in the video output

Open mithro opened this issue 9 years ago • 1 comments

From discussion on IRC...

https://logs.timvideos.us/%23timvideos/%23timvideos.2016-08-24.log.html#t2016-08-24T06:21:59

@mithro CarlFK: You should OCR the recorded video looking for things which look like URLs and then convert them to YouTube annotations so I can click on URLs in people's slides :P 4:18 PM N lol 4:19 PM C<+CarlFK> mithro: I have the OCR bit.. how about you give me some annotation code? 4:19 PM M@mithro CarlFK: If you can generate the time period and the x/y location I can give you the annotation creation code bit 4:20 PM C<+CarlFK> neat. oh wait.. x/y.. that's ... not something I currently do. but maybe I can... 4:20 PM M@mithro CarlFK: Oh and the URL value :P 4:22 PM C<+CarlFK> https://github.com/CarlFK/veyepar/blob/master/dj/scripts/ocrdv.py # ocrdv - reads frames from a .dv untill it finds a bunch of words 4:22 PM T Title: veyepar/ocrdv.py at master · CarlFK/veyepar · GitHub (at github.com) 4:22 PM X DV? who uses DV? :P 4:23 PM C<+CarlFK> https://github.com/CarlFK/veyepar/blob/master/dj/scripts/gsocr.py # uses gstreamer to send frames to gocr better? ;) 4:23 PM T Title: veyepar/gsocr.py at master · CarlFK/veyepar · GitHub (at github.com) 4:24 PM C<+CarlFK> mithro: can I get a job at youtube to do this? 4:24 PM C<+CarlFK> should only take me.. um.. 6 months sounds good. 4:24 PM M@mithro CarlFK: No :P 4:24 PM C<+CarlFK> boo. 4:25 PM M@mithro CarlFK: What is gocr and where does it come from? 4:26 PM C<+CarlFK> mithro: http://jocr.sourceforge.net/ I hear tesseract is better. I think I have code to use that too 4:26 PM T Title: GOCR (at jocr.sourceforge.net)

It appears there might not be a YouTube Annotation API? The only thing I could find is this Ruby thing? http://fullscreen.github.io/yt/annotations.html

http://stackoverflow.com/questions/14463242/manage-youtube-annotations-through-youtube-api https://code.google.com/p/gdata-issues/issues/detail?id=558

mithro avatar Aug 26 '16 04:08 mithro

You'll probably want a regex for URLs;

  • See http://stackoverflow.com/questions/3809401/what-is-a-good-regular-expression-to-match-a-url
  • http://stackoverflow.com/questions/161738/what-is-the-best-regular-expression-to-check-if-a-string-is-a-valid-url
  • https://mathiasbynens.be/demo/url-regex
  • https://gist.github.com/gruber/8891611

mithro avatar Aug 26 '16 04:08 mithro