SShortSingh.
Back to feed

Measuring the first second of a vertical video with ffmpeg before trusting the cut

0
·8 views

A commenter pointed out that on vertical feeds viewers decide whether to stay within the first second or two, so the opening matters most. The author proposes measuring two values with ffmpeg: when speech begins and when the bottom caption band becomes fully visible and stops changing. The method uses silencedetect to find the speech onset and compares downscaled caption-strip frames to find when text arrives and settles. In one example, the caption was fully up 0.16 seconds after the voice started but then stayed static for 2.2 seconds, which the author identifies as the part to fix. The check reports both when the band starts changing and when it stops, since an empty band would otherwise falsely appear clean.

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 ·

Security Teams Struggle to Keep Pace With Vulnerabilities, Experts Urge Cautious AI Adoption

Security teams are facing a growing flood of vulnerabilities, with an estimated 66,000 CVEs projected for the year, making raw counts less meaningful than the human review time they demand. A June 2026 survey of 168 cybersecurity professionals found that 41% viewed AI-powered attacks at scale as their biggest concern. The author argues that most current AI-based audit tools would fail rigorous scrutiny, citing risks of hallucinated findings, missed real vulnerabilities, and inconsistent results across identical runs. Instead, the author proposes AI as an assistant for triage, ongoing review, draft reporting, and prioritization, with humans retaining final sign-off. The piece calls for reproducible testing, measured detection rates, and transparent publication of what models miss before such tools can be considered production-ready.

0
ProgrammingDEV Community ·

Full Stack Developer Roadmap 2026: Key Skills and Learning Path for Beginners

Demand for software developers keeps opening career opportunities, and full stack development is attractive because it spans both frontend and backend work. The article explains that the frontend covers the interface users interact with, while the backend manages logic, authentication, APIs, and database communication. It recommends beginners start with HTML and CSS, then build a solid grasp of JavaScript before moving on to frameworks. React is presented as the next step for building reusable interface components, followed by backend learning with Node.js. The guide stresses hands-on projects, such as portfolio sites and small applications, to build practical skills.

0
ProgrammingDEV Community ·

Beginner's Guide Explores Key Ethical Hacking Tools for Network and Web Security

An educational article for newcomers to ethical hacking outlines the tools practitioners commonly use to find security weaknesses. It explains that the purpose of each tool should be understood first, with practical use developed gradually rather than all at once. Tools such as Nmap for network discovery and port scanning, and Wireshark for analysing network traffic, are described along with their typical applications. Web-focused options including Burp Suite, OWASP ZAP, and Nikto are presented for testing application and server security. The piece stresses that these tools are meant for authorised assessments that help organisations defend their systems against cyberattacks.

0
ProgrammingDEV Community ·

Decoding Google News RSS Links in Node.js Without Triggering HTTP 429 Limits

Google News RSS feeds now return opaque article tokens instead of real publisher URLs, and they omit article body text entirely. The older Base64 decoding method no longer works after Google moved to AU_yqL tokens. The author describes a two-step approach using Node.js fetch and Google's batchexecute endpoint to resolve tokens into publisher links without a headless browser. Rapid requests from one IP quickly trigger HTTP 429 rate limiting, so the author recommends deduplication, proxy rotation, paywall detection, and boilerplate stripping. The article also promotes a paid Apify Actor that packages this pipeline.