SShortSingh.
Back to feed

Adding Captions and Chapters to a Product Demo Video in an Afternoon

0
·8 views

A product demo landing page autoplayed muted, and a hard-of-hearing teammate and analytics showed that most visitors never unmuted it. The author added accurate captions and chapter markers using only a text editor and HTML, without a video platform or paid captioning service. Captions were generated by uploading the MP4 to an audio-to-text tool and exporting WebVTT, with language set explicitly and speaker recognition disabled. A small Node script was used to flag cues exceeding two lines or 42 characters per line, and chapters were created as a separate VTT file with timestamps found by searching the transcript. The captions track is set to load by default in the HTML track element, and a clickable chapter list was built with JavaScript.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

osFoundry adds a prompt library with versioning and reusable skills for agents

osFoundry, a desktop app combining chat, agents, files and tools, now includes a Prompt Library that gathers prompts in one searchable place with favorites and usage counts. Users can save edits either by overwriting a prompt or as a new version, keeping earlier wording available for reuse. Prompts can contain placeholders such as {{product}} that the app fills in through a simple form before inserting the text into the chat. Proven prompts can also be converted into skills in Studio, which agents use automatically when a task matches their trigger and assigned tools.

0
ProgrammingDEV Community ·

Testing a pump underload detector before it controls a motor

A running pump may draw less current when it loses load, but a low current reading alone cannot confirm a dry pump, so the detector should report suspected underload with supporting context. Measurements should begin only after the motor is confirmed running and the startup window has passed, and mismatches between run commands and contactor feedback should be logged. Missing, stale, or invalid current data should be treated as a sensor fault rather than as zero current. The alert should use its own persistence timer and reset when readings return to normal, while latched alarms, motor-stop logic, and protection hardware remain independent of the telemetry. Validation should involve replaying simulated traces, comparing results against normal operation at several operating points, and logging timestamps, RMS current, motor state, thresholds, and fault reasons.

0
ProgrammingDEV Community ·

Solana token rules can be verified with a single RPC call, no SDK needed

A developer published a method for reading a Solana token's rules using one standard RPC request, requiring no SDK, wallet, or keys. The approach decodes the token's mint account to reveal its owner program, mint and freeze authorities, and Token-2022 extensions such as transfer fees, transfer hooks, and permanent delegates. The author applies the check weekly to one token and says it recently corrected earlier documentation that had misstated the token's technical setup. Using the method on the WEN mint, the author found it runs on the original SPL Token program with authorities revoked and no extensions. The post argues that repeatable, rerunnable checks provide stronger evidence than one-time snapshots.

0
ProgrammingDEV Community ·

RNNoise and DeepFilterNet: Key Facts and What to Test on a Device Board

The source notes that neither RNNoise nor DeepFilterNet publishes a microcontroller-class cost, so developers must measure it on their own hardware. The RNNoise paper targets real-time 48 kHz operation on a low-power processor, while DeepFilterNet2 reports a 0.04 real-time factor on a notebook Core-i5 CPU. One preprint found that original noisy audio produced lower semantic word error than enhanced audio across all 40 tested configurations, though this is a single study. The article stresses that a neural denoiser must fit the chip and be checked for its effect on downstream speech recognition. It also flags that both tools assume 48 kHz audio and that no latency figure is published, so these must be measured on the full processing path.