12 ms·
YouTube Transcript – read YouTube videos
- zcombynator 4y agodidn't work of https://youtubetranscript.com/?v=FgW5e5OuOB8 https://youtubetranscript.com/?v=FgW5e5OuOB8
- darepublic 4y agoWhat I've wanted it search by transcript of past videos I've watched. With something like this it seems reasonable to imagine having a set up where every video you navigate to gets transcribed and test is indexed for later search
- seydor 4y agoThis is great and works well. What is the copyright status of transcripts?
- wantlotsofcurry 4y agoNot sure on the transcript front, but the owner may want to consider removing ‘youtube’ from their name.
- kube-system 4y agoThey are owned by the copyright owner of the underlying audio.
- seydor 4y agobut for example, is it fair use to reproduce? what about indexing?
- kube-system 4y agoDepends on why it is being done.
- deleted 4y ago[deleted]
- 88stacks 4y agothis will be dead soon due to having youtube in the name
- seydor 4y agoPeople can switch domains
- kristianheljas 4y agoHehe, they might need to switch cloud provider as well. The domain and the underlying content is currently served by no other than google cloud.
- lukeasch21 4y agoDon't worry, the website solved this issue: > "Probably Won't Fail: Featuring the latest build of an undocumented API." This will work as long as YouTube doesn't change anything. And since when has YouTube changed anything?
- politelemon 4y agoJust tried rickroll and many lines seem to be missing. https://youtubetranscript.com/?v=dQw4w9WgXcQ https://youtubetranscript.com/?v=dQw4w9WgXcQ
- gbertb 4y agoIs this utilizing whisper to transcribe?
- arboles 4y agoYoutube already auto-generates transcripts that you can see in the ... menu in most videos. This website just seems like an alternative frontend?
- EGreg 4y agoOr maybe it processes the video with its own backend ? How do you tell
- arboles 4y agoJust minutes ago, I compared two transcripts for the same video and they were the exact same. Also on YouTubeTranscript.com swearing was redacted with [_], which is something I've only ever seen on youtube captions.
- kristianheljas 4y agoFirst indication is the processing speed - there's known machine in the world that could transcribe videos in such speed.
- EGreg 4y agoHow about a cluster in parallel?
- codetrotter 4y agoThe simplest explanation is often the most probable one. Why would you reach for a cluster of machines working in parallel, when you could retrieve the already auto-created transcript from YouTube servers? Also, other comments have pointed out that the transcripts are identical with the ones created by YouTube, which would be unlikely to happen if this service was creating transcripts of their own.
- janandonly 4y agoThe burning hate I feel for all information to be locked away in a YouTube video. This will solve that real world problem. I love reading (or, skimming) through a long read.
- xuhu 4y agoJust checked that google also includes youtube captions in search returns.
- motoboi 4y agoNot sure if you know that, but YouTube has a transcript feature available for years now. It's somewhat hidden in the interface, but let's you search with ctrl-F (or command-F) in the transcript
- zbrozek 4y agoI use this for city council meetings to figure out who said what. It's not easy, but it's better than nothing. YouTube doesn't appear to do so well with multiple speakers.
- loughnane 4y agoI’ve tried to do this recently. Any suggestions on tools or workflows to dissect into different speakers?
- cratermoon 4y agoYeah this website just extract the transcript that exists and displays it alongside the video. It's nice, but it's not doing the transcribing itself.
- alpb 4y ago> I feel for all information to be locked away in a YouTube video. Google Search actually indexes transcripts of a video and shows you some YouTube results based on that even though the title/description of the video doesn't match the search query.
- unangst 4y agoExpect an email from Google lawyers early this week about the domain name.
- deleted 4y ago[deleted]
- banana_giraffe 4y agoIf you want an CLI version of a similar idea, you can use yt-dlp and some simple jq to pull down the captions for a file: curl `\ yt-dlp -j "https://www.youtube.com/watch?v=aeWyp2vXxqA" | \ jq -r '.automatic_captions.en[] | select(.ext=="json3") | .url'`
- ptspts 4y agoNot all YouTube videos with spoken text have automatic captions.
- arboles 4y agohttps://news.ycombinator.com/item?id=34041455 https://news.ycombinator.com/item?id=34041455
- cercatrova 4y agohttps://github.com/m1guelpf/yt-whisper https://github.com/m1guelpf/yt-whisper
- jck 4y agoI am not a fan of this pattern - if I'm understanding correctly, you would have to part with all of yt-dlp's niceties like playlist/channel handling, quality selection, file naming, logging config etc. Why not just use the whisper cli on yt-dlp CLI's output for videos with bad or no subtitles?
- cercatrova 4y agoSure you could do that too. yt-whisper uses yt-dlp underneath so there might be a way to pass arguments to the inner yt-dlp instance. Or if not you can modify the source directly, it seems to be a simple wrapper. Or again you can do what you were saying, using the Whisper CLI. All good options, I just mentioned this one since it's easier if I just want to download a video with subs.
- varenc 4y ago
- arboles 4y agoThis UI and Youtube's UI for transcripts are really nice. When I'm looking for a particular piece of information I can just Ctrl+F and click on the match to play from there. Youtube used to auto-generate subtitles, now it also formats subtitles as transcripts. I wish offline media players had this functionality, if I get distracted for a few seconds I don't have to watch those seconds again, I can speedread over the past couple lines.
- arboles 4y agoCall it "panoramic subtitles"
- is0tope 4y agoMaybe this is a bit off topic, but does anyone know the legal footing of having a business with another businesses name in it? For instance, this tool uses the word "YouTube" in its name, though it is used as only a part of it, and it is not a competitor. I've always wondered how this works.
- kube-system 4y agoBroadly speaking, it would be trademark infringement if it is used in a way that may confuse others about the source of the product. It doesn’t necessarily have to be a specific product that Alphabet has a direct competitor for.
- tmpburning 4y agoThese companies tend to rename themselves when they become popular.
- chiefalchemist 4y agoNot sure about YouTube but WordPress does not allow the use of the name. WP in your (e.g.) domain name is ok. WordPress is not. I'd imagine it's very similar for others. Often a company will pursue a violation if only to be consistent in showing the courts they actively defend their copy right.
- thaumasiotes 4y ago> Not sure about YouTube but WordPress does not allow the use of the name. They may not like it, but they don't have the power to disallow you from using their name to refer to them. That's allowed.
- chiefalchemist 4y agoActually, they do. It's copyright. Plenty of legal precedent. They defend WordPress, but are willing to allow WP. The law is on their side.
- EGreg 4y agoWho built this? We want to partner with you on a topl that autogenerates clips of any video based on the topic start and end
- dukeofdoom 4y agoSomething like this would be nice to be able to search local videos for specific keywords spoken too.
- breck 4y agoThis is amazing! The speed and simplicity makes me happy. Thank you!
- alpb 4y agoFwiw YouTube already has a feature for this. Click the "..." next to the share and click Show Transcript. There are also extensions like https://chrome.google.com/webstore/detail/youtube-captions-search/kimbeggjgnmckoikpckibeoaocafcpbg https://chrome.google.com/webstore/detail/youtube-captions-s... that makes it easy to search them in a popup.
- modeless 4y agoRegular "find in page" works to search the transcript on YouTube. I use it often.
- dobladov 4y agoThey seem to have moved the functionality to the end of the description, and there you can find the "Show captions" button. The extension I made to export the transcript was based on this YouTube functionality, I should update the instructions now. https://chrome.google.com/webstore/detail/youtube2anki/boebbbjmbikafafhoelhdjeocceddngi?hl=en https://chrome.google.com/webstore/detail/youtube2anki/boebb...
- Abishek_Muthian 4y agoThank you, Do you use it regularly? I run a problem validation forum and someone was asking exactly for that[1]. [1]: Searching YouTube videos with transcript - https://needgap.com/problems/88-searching-youtube-videos-with-transcript-youtube-transcript https://needgap.com/problems/88-searching-youtube-videos-wit....
- breck 4y agohttps://youtubetranscript.com/?v=DvxxdZpMFHg https://youtubetranscript.com/?v=DvxxdZpMFHg "Error: transcripts disabled for that video" Why?
- arboles 4y agoYoutube didn't generate captions for that video
- TheCaptain4815 4y agoFunny, was just looking for a tool like this. Any chance timestamps could be added?
- cm2187 4y agoWith youtube dl you can download the subtitle tracks which should have timestamps. Though last time I checked they were broken (showing the whole test on the first timestamp) but perhaps they fixed it
- chiefalchemist 4y agoFor Power Point and screenshare based videos, a screenshot every 15 seconds or so would be great. Often enough I'd rather read than watch. Reading in faster. Having corresponding visuals would be a big plus.
- neilv 4y agoHook this up to a language model, and maybe a user could instantly get the one sentence worth of information that the YouTube video creator buries in 10 minutes of monetized noise. And also save yourself time when the creator teases that they provide the info, but it turns out they don't, they're just trying to get views.
- InCityDreams 4y ago...or, just follow decent creators. No snark intended, but i just gave up with the dross. And even some of them, of late, are getting a bit crafty. But, creators get one chance from me now - give me decent content, or even with the fancy chapters, you're not getting my eyeballs past two minutes. What I have found is that leaving the decent stuff on, what auto-plays after is 'generally' of similar quality. A quick set of back-buttoning and bookmarking has fairly often got me some interesting results.
- neilv 4y agoGood idea, but I don't follow anyone on YouTube. I was thinking about searching the Web for a bit of info, the search hits include YouTube videos (but no finer resolution than "this entire video"). A search engine could, narrow in on the few sentences AV in the video that it thinks correspond to what I was searching for, and summarize that, and also link me to the AV start timepoint in case I also want to watch the video. This might change the economics of some YouTube video content creation.
- LelouBil 4y agoGoogle does exactly that, if a video shows up in the search results, it shows you only the relevant small part.
- neilv 4y agoI've never seen this before now, but I just got a Google search result video page with a kind of table-of-contents index on one of the video hits just now. (These TOC entries don't correspond to the marked segments on the timeline. I don't know whether this is something YouTube is doing, or something the content creator did.) Is this what you mean? (Pardon if I'm not familiar with the latest Google Search features; I've mostly been using DDG lately, so don't have occasion to see all the features that exhibit only occasionally.)
- cavisne 4y agoThis script for whisper.cpp works really well https://github.com/ggerganov/whisper.cpp/blob/master/examples/yt-wsp.sh https://github.com/ggerganov/whisper.cpp/blob/master/example... for my purposes I changed the output from subtitles to txt (so I could pipe the result into chatgpt)
- codetrotter 4y ago> so I could pipe the result into chatgpt Tell us more :)
- cavisne 4y agoNothing too exciting, just “summarize this” followed by the transcript in quotes, it works very well
- varenc 4y agoThat's doing speech recognition on the YouTube video's audio and then embedding the result as subtitles? Is the idea that this is superior to YouTube's own automatic subtitles? Though if the youtube video actually has manually crafted subtitles from the creator, as a lot of popular science content does, it seems a shame not to just use those subtitles directly and avoiding doing speech recognition. Or just rely on YouTube's automatic captions which are pretty decent in my experience. See my comment on how to just download the subtitles YouTube provides with `yt-dlp` here: https://news.ycombinator.com/item?id=34040342 https://news.ycombinator.com/item?id=34040342
- modeless 4y agoA supremely useful site that searches YouTube transcripts is https://youglish.com https://youglish.com. It shows you pronunciations in context for any word or name.
- arboles 4y agoThanks for the link! This site actually has a database of youtube transcripts unlike OP. Shame you can't search fixed strings, like two words in exact order. Though it seems genuinely useful for learning pronunciation as advertised.
- arboles 4y agoI found a site for seriously searching within youtube subtitles https://filmot.com https://filmot.com
- amelius 4y agoHow can this be so fast? I tried it with two random urls, and the transcripts were instant, like less than 100ms.
- charcircuit 4y agoYouTube already creates transcripts for accessibility and for feeding into other ML models.
- samanator 4y agoLikely cached. Try with a long video with few views. Edit: after reading other comments it seems this may be using an undocumented api to retrieve the data.
- FinalDestiny 4y agoIt appears to be using the YouTube auto-generated captions. The output, spacing, and punctuation are identical.
- c7DJTLrn 4y agoPretty nice. The sliver of content still worth watching on YouTube doesn't have repetitive stuff or padding to make it to the 10 min mark though. If you go to the homepage with clear cookies it's just endless amounts of utterly dogshit cookie cutter content. Same clickbait thumbnails with a person pulling an idiotic expression. Even the videos masquerading as educational are entertainment at best. If I had kids I'd do everything in my power to keep them away from YouTube.
- SkeuomorphicBee 4y agoWhy it is hard-coded to English? When I try to transcribe a video in any other language it throws the error: > No transcripts were found for any of the requested language codes: ('en',) For this video ([...]) transcripts are available in the following languages: [...] It even knows what language is available, so why no dump that instead?
- aardvarkr 4y agoProbably because it’s a hackathon style project that was slapped together and isn’t intended to support every use case. I’d recommend reaching out to the author with your feedback
- maybelsyrup 4y agoI’ve been dreaming about something like this for years. Huge deal for me. Thank you for your work!
- faikuygur 4y agoHere is how to extract Youtube video transcript to an Excel file with Robomotion: https://demo.robomotion.io/designer/shared/6j984jBCQqYVBCaQkQ4uyN https://demo.robomotion.io/designer/shared/6j984jBCQqYVBCaQk...
- joosters 4y agoMy only complaint is with the layout of the site - could you please make the transcripts span across the whole width of the page, not just to the right of the video? My one gripe with Youtube's own transcript box is that it is too narrow, so it is a shame that a website designed to specifically make the transcripts more readable also displays the transcripts in a narrow box.
- johnlk 4y agoTake video > transcribe > ask gpt to summarize > be genius in 2 mins
- arcturus17 4y agoThe copy on your website is pure fire my dude.
- svat 4y agoThis is a great idea; I really enjoy all these "two channels simultaneously" (side-by-side translations, video with subtitles, and in this case video with a readable transcript, where you can scroll in the video or scroll in the transcript, and be synchronized). I had done something like this a couple of years ago for some specific set of videos (e.g. https://shreevatsa.net/tex/program/videos/s10/ https://shreevatsa.net/tex/program/videos/s10/ — compare with https://youtubetranscript.com/?v=_0Cv1G_s4gQ https://youtubetranscript.com/?v=_0Cv1G_s4gQ for the same video), but never got around to making it general; glad someone has done it. It takes just a few lines of Javascript, using the Youtube API, to do this i.e. keeping the video and text in sync (just view source on either page to see the JS at the bottom). Something like this can also help with audio recordings (generating the alignment automatically is called "forced alignment" and there are tools like "aeneas" for this). In case anyone's interested or wants to help (for Sanskrit texts): see https://github.com/shreevatsa/web-align-audio-text https://github.com/shreevatsa/web-align-audio-text deployed at https://shreevatsa.net/ramayana/sarga/ https://shreevatsa.net/ramayana/sarga/ and better version at https://github.com/avinashvarna/audio_alignment https://github.com/avinashvarna/audio_alignment deployed at https://avinashvarna.github.io/audio_alignment/ https://avinashvarna.github.io/audio_alignment/
- BasilPH 4y agoThis is cool! We're doing forced alignment with audio recordings i.e. podcasts. Here's an example from a test client: https://www.withfanfare.com/p/seldon-crisis/search-by-the-foundation-part-iii https://www.withfanfare.com/p/seldon-crisis/search-by-the-fo... Grateful for any feedback you might have. Also, if you run a knowledge-dense podcast, or know somebody that does, I would love to talk to you/them. I'm for example considering to link places, people and things in a transcript.
- svat 4y agoLovely, thanks for the example. I really like how the underline is subtle yet effective. The animation/effect where it seems to inch forward is also intriguing; how does that work? (Also, this is subjective but have you considered making double-clicking on the text open the audio player even when it's not been started yet? Would make it more discoverable, though I imagine some could get annoyed. Another minor thing: when the audio is paused and you double click somewhere, the audio position changes but this is not reflected in the player; only takes effect when you unpause.) You're doing cool work, good luck with your service! It looks very useful and if someone I know is running a podcast I'll recommend it for sure; it looks really well-done and polished (at least the example you shared).
- bilater 4y agoNice! Did something similar a couple of years ago: https://you-tldr.com/ https://you-tldr.com/ Summary remains the elusive hard part...both to do and to serve at scale. But we get closer by the day.
- chillel 4y agoNice work. I actually found your site thru Google by trying to find this HN post again. Out of curiosity, do you get a lot of paid subscribers? What do revenue figures look like for a project like this?
- pete_nic 4y agoCan it calculate words per minute too? That would be helpful.
- agowa338 4y agoFun fact, this is how youtube does "manual reviews". A manual review means someone has read the automated transcript...
- bentt 4y agoTried it. It works! I always wanted this. Thank you YoutubeTranscript.com person(s)!
- herpderperator 4y agoSlightly related: https://youglish.com/ https://youglish.com/
- mmsc 4y agoyouglish.com is a similar type of website, but you can read the words as they're spoken.
- ricklamers 4y agoI see your transcript, and I raise you my ChatGPT summarized transcript extension! https://github.com/ricklamers/ChatGPT-YouTube-summarizer https://github.com/ricklamers/ChatGPT-YouTube-summarizer All jokes aside, I love the automated transcripts from YouTube. Videos are just so inefficient to consume as a format.
- pragmatick 4y agoAs funny as that landing page is I would like to see at least some information on the stack.
- chrisbrndl 4y agoIs it done with OpenAi's whisper? Now it would be cool to have it summerized by ChatGPT.
- 1vuio0pswjnm7 4y ago#!/bin/sh ttml2srt() { x=$(echo x|tr x '\34'); tr -d '\34' \ |sed -n "/<p begin/{ s/<p begin=\"//; s/\" end=\"/ --> /; s/\" style=\"s2\">/$x/; s#</p>##p;}" \ |sed = \ |sed "/$x/!s/^/$x/" \ |tr '\34' '\12' \ |sed '/[ ]-->[ ]/s/\./,/g' } read x; case $x in https://www.youtube.com/watch?v=??????????\ |https://www.youtube.com/watch?v=???????????\ |https://youtu.be/???????????\ |https://youtu.be/??????????) f=${x##*=};f=${f##*/};case ${#f} in 10|11) curl -4o $f.mp4 $x video=$(tr \{ '\12' < $f.mp4|sed -n "/itag=22/{s/u0026/\&/g;s/%3D/=/g;s/%2C/,/g;s/%26/\&/g;s/.*url\":\"//;s/\".*//p;}"|tr -d '\134') test $video||exit ttml=$(tr \{ '\12' < $f.mp4 |sed -n '/timedtext/{s/u0026/\&/g;s/.*:\"//;s/\".*//;s/$/\&fmt=ttml/p;q;}'|tr -d '\134') test $ttml||exit curl -s4 $ttml|ttml2srt > $f.srt exec ffmpeg -v quiet -y -i $video -vf subtitles=$f.srt $f.mp4 esac esac exit The script above, "1.sh", can be used as follows. echo https://www.youtube.com/watch?v=aeWyp2vXxqA | 1.sh It will download the captions as .srt and then "hardsub" them into the video as it dowloads the .mp4. NB. This is slow YouTube downloading without using yt-dl/yt-dlp. Obviously, it will not work with commercial videos. The .srt file is saved as [YouTube ID].srt and the video as [YouTube ID].mp4, where [YouTube ID] is a 10 or 11 ASCII character string. The video format is itag=22, i.e., mp4/720p. Not all videos will have 22 of course. I usually try itag=18, mp4/360p, if 22 is not available. Change the format to whatever is preferred. Looking around for a .ttml/.vtt/.srv[1-3] to srt converter I found solutions that required installing Python or some other large scripting language. On GitHub I found a project called "astisub" that will convert from ttml or vtt to srt. It is a 3.8M Go binary. I wrote a shell function instead.
- t0bia_s 4y agoAnything like that for podcasts? I cannot waste time by listening casual dialogues. Text reduced to point is much more effective.