Live data from Hacker News

Hieroglyph, a research tool to easily view a YouTube video's transcript

hierogly.ph

31–40 of 62 posts

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#31
I use "YouTube Captions Search" Chrome extension. This allows the following workflow:

- I am on a YouTube video view

- I click on "Closed Captions" (CC) in the YouTube player.

- The extension icon in Chrome's toolbar becomes red.

- I click on the extension icon

- A search text field appears

- I type a word or a sentence

- There is an area with timestamps and sentences containing the words I search

This is useful in two ways:

1. For videos I have already watched that I know contain a segment of interest to me and I want to re-listen to that segment. I go to the video, type the words, click on the timestamp and it takes me straight to the timestamp of interest.

2. Discovery: when I'm learning about something specific and there's a one hour video and I want to know if they're addressing my specific question. I type the words and see how many times they're talking about the topic (density). I read the sentences, and then click on the timestamps directly before committing to the video. So when I'm actively learning about a topic, I might have a backlog of ten videos, this speeds up things enormously.

One more hack: I use "Video Speed Controller"[1] to speed up videos up to 16x. For talks that don't have a link to the slides, I'll use the 16x video as a "presentation slides". One hour becomes about 4 minutes long and I just look at the slides on the screen. If I like the treatment of the topic, I'll watch the video. If not, I won't. This allows me again to have a backlog of 20 videos to watch, go through them really fast, discard the ones that do not have a deep enough treatment of the topic of interest, and only commit to the videos that do.

- [0]: https://chrome.google.com/webstore/detail/youtube-captions-s...

- [1]: https://chrome.google.com/webstore/detail/video-speed-contro...

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#32
post #24

Earlier quoted context omitted.

youtube-dl --write-sub --skip-download

Doesn't work unless there are subtitles (WARNING: video doesn't have subtitles), which seems to be different from captions.

I think subtitles and captions are the same foe YouTube-DL. However, some videos only have auto-generated captions, and YouTube-DL doesn't download these... by default. There is an option to force the download of both generated and even translated captions.

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#33
post #8

I don't get it. What's the advantage of this compared to the "view transcript" functionality on the video page itself? It might be confined to a small window, but at least it has timestamps and isn't one long wall of text.

For one, YouTube gives you time codes, which are good when translating, but just in the way when reading or editing (say to find a quote). Second, while a minor annoyance, the text is hard scroll and read, due to how constricted the reading area is. Hieroglyph gives you a huge blob, which isn't super-fantastic either, but IMHO it's slightly better than YouTube's "view transcript" functionality, if nothing else, than for reasons of presentation.

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#34
Wow, this is made for me. Youtube's own "view transcript" tool spits out a small side window with about 5 words per line. For me, that's a pain to read.

This transcript is displayed in paragraph form, nearly as readable as a typical article.

One very specific question: is there a way to get it on Instapaper's mobile app? While it transfers well on the web version, clicking on the transcript through the app takes me to the web version.

Thank you for this contribution!

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#37
post #15

Does anyone know of a tool (extension?) that will translate captions (even badly) for YouTube videos? Sure I could you use youtube-dl and run the result through Google Translate, but I'm looking for something automated.

JSON.parse(ytplayer.config.args.player_response).captions.playerCaptionsTracklistRenderer.captionTracks[0].baseUrl

just add &tlang=XX where XX is one of

JSON.parse(ytplayer.config.args.player_response).captions.playerCaptionsTracklistRenderer.translationLanguages

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#38

I use "YouTube Captions Search" Chrome extension. This allows the following workflow: - I am on a YouTube video view - I click on "Closed Captions" (CC) in the YouTube player. - The extension icon in Chrome's toolbar becomes red. - I click on the extension icon - A search text field appears - I type a word or a sentence - There is an area with timestamps and sentences containing the words I search This is useful in t…

I’ve been interested in making a list of keywords and key phrases that can highlight the ‘meat’ of instructional YouTube videos.

Which words/phrases have been useful for you to search?

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#39
post #2

This is great! Do the transcripts come with timing information? Would love to be able to ctrl+f text and then jump to that part of the video.

You could consider extracting the YouTube audio and using an aligner algorithm with the transcript to get precise timing without paying anything

Re: Hieroglyph, a research tool to easily view a YouTube video's transcript

#40
post #23
post #12

You can also get a YouTube video transcript directly from the API with one call, just register for a free developer key and use: https://youtube.googleapis.com/youtube/v3/captions?part=snip... official docs: https://developers.google.com/youtube/v3/docs/captions

“ Quota impact: A call to this method has a quota cost of 50 units.”?

Which is out of a default quota of 10,000 units per day, and one can request an increase if your actually need more, (which presumably gets granted if YouTube agrees your use case is not an abuse of their API).
Post reply on HN