frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: YT NoteTaker – Simple Manual Note Taking on YouTube Videos

https://kavinaidoo.github.io/ytnt/
2•kavinaidoo•1y ago
Hi HN,

YTNT is a simple web-app for manually typing notes while watching a YouTube video. Simultaneously type and control playback with keyboard shortcuts. Export to Word (.docx) when you're done.

I'm seeking general feedback.

NOTES:

- The only way to "save" (for now) is to export to a Word .docx

- Speech-to-text only works in Chrome

GitHub: https://github.com/kavinaidoo/ytnt

Blog Post: http://archive.today/FRqwp

Thanks, Kavi

Comments

Leftium•1y ago
I forked oTranscribe and added some features to solve a similar problem.

- demo: https://otranscribe.netlify.app/?vsl=definedefine

- source code: https://github.com/Leftium/oTranscribe

- CLI tool to generate OTR (oTranscribe) files from (YouTube) SBV/TTML files: https://github.com/Leftium/otrgen

In my case, I wanted to start with the (auto-generated) YouTube transcript and get clickable timestamps. This makes it much faster to search through the content of a video: I can read/search much faster than watching a video, even on 2X speed.

I could also add my own notes to the transcript.

If you add support for loading transcripts like this, it could work cross-browser without the microphone/speech-to-text.

kavinaidoo•1y ago
Aha, starting with the YouTube transcript is a great idea. I wanted to start with it but I couldn't find a way to get it from the YouTube iFrame API so I went with the Web Speech API to listen and convert.

Forgive me for the confusion, the demo link implies that the transcript is loaded from the video but I see in the code that there's a pre-existing "/txt/definedefine.md" that is loaded. How are these SBV/TTML files downloaded from YouTube in the first place? I assume that it is a separate process? I see you are then using otrgen to presumably convert these so they can be used by oTranscribe.

If I could load the transcripts dynamically when loading the YouTube video that would be a great feature.

Leftium•1y ago
The demo simply demonstrates how I used my tool. It requires some manual set up:

- TTML files are downloaded via CLI: `yt-dlp.exe --skip-download --write-auto-sub --sub-format ttml`

- TTML files are converted to the OTR .MD format via my CLI tool

- The MD file can be dragged & dropped onto the web app.

---

I think it is possible to download SBV/TTML files, but the download must be done from the server due to CORS restrictions.

My app didn't go this far due to limitations of the (serverless) platform it is hosted on. Also it was faster to just do the steps manually vs. developing a server that does it.

I have seen many services that download the transcript. Here are a few:

- https://youtubetranscript.com

- https://kagi.com/summarizer

- https://www.tubepen.com

However, note YouTube may block your server if you download too many transcripts: https://kagifeedback.org/d/4451-universal-summarizer-cant-fi...

kavinaidoo
Leftium•1y ago
I'm planning a beat-aware YouTube player. Unfortunately, it is not possible to access the audio stream data across the YouTube embed. (For beat-detection analysis.)

I considered using the microphone like this. It's nice to see it works. Although there seems to be a time limit to how long the microphone can record?

My plan was to download video (youtube-dlp), then make a CLI tool that analyzes and uploads the beat-detection data. An advantage of the CLI tool is it can complete the analysis faster than playing the video at 1X.

kavinaidoo•1y ago
Yeah, I also wanted to "pipe" the audio directly to the Web Speech API but had to resort to using the mic. Another feature I wanted to add was to have a keyboard shortcut insert a screenshot of the video into the notes. Handy for diagrams etc but I hit some roadblocks there too and the workarounds were getting crazy.

Regarding the time-limit, I'm entirely accessing the audio stream using the Web Speech API and it "decides" (usually when there's a sufficient pause) when to finalize a recognition result. It was also firing a "recognition.onend" event after a certain amount of time (some old details here: https://stackoverflow.com/questions/38213580/chromes-webkits...) so I have a workaround where if the user did not turn off speech-to-text, it is immediately restarted. You'll see console warnings "userStopped == false - trying to restart" when this happens.

I assume you'll have no such issues because you'll be handling the "raw" audio data and not working through this API. Also, I've noticed that when using the Web Speech API on Safari, it does not "hear" what the tab is playing. It only hears external audio. I'm not sure whether this will be an issue for you but for me it means my app is Chrome only (suboptimal). Forgive me for my naïveté in this arena, It's the first time I'm using any browser audio API.

Would your tool run on a server and work with a frontend for YT link ingestion or will you just use it yourself from the cli?

Leftium•1y ago
•
1y ago
I think I'll just have to stick with my current method for now, looks like the only way to get it done with static hosting.
Ideally, my tool would run on the server. Especially if I wanted to monetize the service. (However I think there may be legal issues that are larger than the technical ones...)

However it's just a small hobby project. So realistically I think this is how it will work:

- If user tries to load a video without beat data yet, instructions are shown for how to add the beat data. The instructions will be running CLI command like `npx upload-beat-data [YOUTUBE-URL]`

- The CLI tool will download the audio, then upload the beat data to my site.

- The site will also log which videos got a lot of requests, but are missing beat data. So I can manually add the beat data myself.

A Hidden Infrastructure

https://a-hidden-infrastructure.spun.earth/story/a-hidden-infrastructure
1•jjp•3m ago•0 comments

Setting the cursor: trading delayed correction against delay itself

https://deimos28.substack.com/p/setting-the-cursor
1•deimos_28•13m ago•0 comments

InteractInk

https://interactink.vercel.app/interactink.html
1•squeezes•14m ago•0 comments

Open Source Will Eat AI

https://www.openenergytransition.org/posts/ai-coding-agents-should-optimize-for-less-owned-code
1•lyoncy•16m ago•0 comments

The Eight Winds Cannot Move Me

https://alexchen373.medium.com/the-eight-winds-cannot-move-me-c5ec9a148d45
1•jkly•18m ago•0 comments

The Building Block Economy

https://twitter.com/mitchellh/status/2041566958681014418
1•tosh•24m ago•0 comments

How to Write Loops with Claude Code

https://karanbansal.in/blog/loop-engineering/
1•ingve•28m ago•0 comments

Show HN: Spoold - Durable curl without a database or broker

https://github.com/Rionlyu/spoold
2•Rionlyu•31m ago•0 comments

How Stream Processing Works: From Stateless Functions to Stateful Windows

https://medium.com/@DolphinDB_Inc/why-stream-processing-matters-and-how-dolphindb-does-it-b63c5dc...
1•yiweileng•35m ago•0 comments

Introduce a memory safe compilation mode inspired by Fil-C

https://codeberg.org/ziglang/zig/issues/36237
2•mpweiher•36m ago•1 comments

I Revived My Broken MacBook into My Own Personal Cloud

https://blog.matsmoll.eu/posts/i-revived-my-old-macbook-into-my-own-personal-cloud
1•matsmoll•38m ago•0 comments

Fable 5 is now a standard part of your Max plan

1•duggan•39m ago•0 comments

App iOS/Android

1•Andrew_Huynh•41m ago•0 comments

ASI May Require a Level of Trust We're Not Willing to Give

https://rodyne.com/?p=4070
1•boznz•42m ago•0 comments

The Pentagon Is Finally Buying (Some) Weapons from Startups

https://www.wsj.com/politics/national-security/pentagon-weapon-purchases-startups-4919d870
2•JumpCrisscross•43m ago•0 comments

The video game atlas – vgmaps.com

https://vgmaps.com/
2•xiaodai•45m ago•0 comments

Agentic test processes, LLM benchmarks, and other notes from Galapagos Island

https://danluu.com/ai-coding/
1•gnyeki•46m ago•0 comments

Stolen Buttons

https://anatolyzenkov.com/stolen-buttons
1•Gecko4072•48m ago•0 comments

Show HN: A simple TUI to CRUD Beads tasks

https://github.com/finallyblueskies/beads-explorer
1•quietcity•49m ago•0 comments

Somatic mutations impose an entropic upper bound on human lifespan

https://www.nature.com/articles/s41514-026-00421-6
2•arto•50m ago•0 comments

LLM Wiki Implementation

https://github.com/nashsu/llm_wiki
1•rldjbpin•50m ago•0 comments

UK confirms pay-per-mile tax start date for electric vehicle drivers

https://www.independent.co.uk/travel/news-and-advice/electric-vehicles-pay-per-mile-tax-eved-b301...
3•Markoff•54m ago•3 comments

Exact Prompt Used by OpenAI for "A Proof of the Cycle Double Cover Conjecture" [pdf]

https://cdn.openai.com/pdf/04d1d1e4-bc75-476a-97cf-49055cd98d31/cdc_prompt.pdf
1•nomilk•58m ago•0 comments

US gas prices hit an average of $4 a gallon again

https://apnews.com/article/gas-prices-iran-war-4-gallon-4b82825734ec3ded192351e53a4be69e
29•geox•1h ago•50 comments

A Field Guide to the Flags of the Far Right: From Betsy Ross to Trump-Rambo

https://www.theatlantic.com/magazine/archive/2024/09/us-far-right-trump-flags/679154/
6•Alien1Being•1h ago•0 comments

Show HN: A free Minecraft skin editor

https://www.hamza.se/blog/mineskin-pro
1•hamza512b•1h ago•0 comments

Windows tool for automatic TV volume leveling

https://github.com/AdBusterOfficial
1•Bo_Amigo_910•1h ago•1 comments

Tornado VPS services and website are down

https://www.whtop.com/review/tornadovps.com
2•pramodbiligiri•1h ago•1 comments

A mass archive of weird, wonderful websites

https://www.are.na/tom/www-t_kopepmelw
1•Gecko4072•1h ago•0 comments

Keeping teams on one AI harness

https://baselane.sh/blog/keeping-teams-on-one-harness/
1•mohammad0omar•1h ago•0 comments