Skip to main content
Topic: showcase coming soon (Read 2915 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: showcase coming soon

Reply #15
@Spuds, I have an update. I acquired the auto-generated subtitle files for about 2,300 videos.  I converted the SRT files to VTT and uploaded them so I can link to them in the semantics. I'm also outputting the text of the VTT as HTML in a given video's page as the VideoObject's "transcript".  Tim enunciates well, so very few mistaken words in the files I've reviewed, although there's no punctuation aside from apostrophes. My next step should probably be creating a db table for the transcripts so I can implement my fulltext audio search.  I still need to work out a routine to edit the VTTs (with revert option) and update the db-table with the revised text.

I have more updates as well, I've linked his content from youtube & bitchute.  I plan to add a local-storage user-setting to allow users to choose a default video source: bitchute/youtube. Tim has also added an audio podcast, I have those linked to the videos as well.

here's what it looks like currently: https://weburlate.com/timcast/news/2019-05-29/Men-and-Women-Are-Biologically-Different-Life-Is-Not-Fair-Get-Over-it

and the semantics for that page: https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fweburlate.com%2Ftimcast%2Fnews%2F2019-05-29%2FMen-and-Women-Are-Biologically-Different-Life-Is-Not-Fair-Get-Over-it

Re: showcase coming soon

Reply #16
Very nice ...

Are you going to leave the transcript on the page or hide/collapse it?  I assume collapsed/hidden it would still be picked up as the structured data.  Only reason I ask is that without the punctuation its a bit of a blob of text. 

Anyway that is cool that you could convert the sub titles it to video text transcript.  It also opens up other accessibility options which is nice benefit as well.
Squish squish. squish, squish, squish.
Find a bug,
Make a wish.

Re: showcase coming soon

Reply #17
I'm actually thinking about hacking elkarte so I can crowd-source edits. Dedicate a specialized board to it and generating a topic for each subtitle file.  Then users can quote the OP and edit the text. Upvote the best edit if more than one and add a mods-only button to overwrite the VTT file (I'll need to validate it first, of course). I'm also thinking of adding more granular semantics in the subtitle files. WebVTT allows for JSON-LD, which I can convert to RDFa when I output it to the page.

Re: showcase coming soon

Reply #18
.
I'm actually thinking about hacking elkarte so I can crowd-source edits.
btw, if anyone has a SQL query handy for inserting topics, that'd be helpful.

I'll even semantically-markup the link to the edit page:
so this:
Code: [Select]
<span property="caption" typeof="MediaObject">
<meta property="encodingFormat" content="text/vtt" />
<link property="contentUrl" href="https://weburlate.com/timcast/subtitles/vgn-fuZ_tEc.vtt" />
</span>

becomes this:
Code: [Select]
<span property="caption" typeof="MediaObject">
<meta property="encodingFormat" content="text/vtt" />
<link property="contentUrl" href="https://weburlate.com/timcast/subtitles/vgn-fuZ_tEc.vtt" />
   <span property="potentialAction" typeof="UpdateAction">
      <link property="actionStatus" href="https://schema.org/PotentialActionStatus" />
      <span property="name">
         <a property="target" typeof="EntryPoint" href="path/to/forum/topicPage">Edit Captions</a>
      </span>
   </span>
</span>

btw, I don't think I mentioned the "CheckAction" I implemented on the current day's page, I have an ajax-button at the bottom of that page that checks: 2 youtube RSS feeds, 2 bitchute HTML pages and the audio-podcast's RSS feed for updates, when clicked.  I also have a cronjob to execute the check several times a day. Anyway, I even added semantics to the button. You can markup pretty much all user actions like this.

Re: showcase coming soon

Reply #19
btw, if anyone has a SQL query handy for inserting topics, that'd be helpful.
version 1.1.5, btw

So I'll need to insert in the _messages table and update "num_topics", "id_last_msg" and "id_msg_updated" in the _boards table, anything else?

Re: showcase coming soon

Reply #20
Look at createPost in Post.subs.php and in Post.controller.php for how to use it.
Bugs creator.
Features destroyer.
Template killer.


 

Re: showcase coming soon

Reply #22
@Spuds , I added the user preference feature to switch between youtube/bitchute. I had to back-engineer youtube's  iframe API to create one for bitchute. Since not all youtube videos have a bitchute counterpart it's a preference setting, it'll serve youtube when there's no bitchute link in my db. Oh, also, no login required for the setting, i store the setting in the user's local storage.