Skip to content

Add article: Normalize the Loudness of a Folder of Videos with PowerShell and FFmpeg - #501

Merged
HeyItsGilbert merged 2 commits into
PowerShellOrg:mainfrom
markksantos:article/normalize-video-loudness
Nov 3, 2026
Merged

HeyItsGilbert merged 2 commits into
PowerShellOrg:mainfrom
markksantos:article/normalize-video-loudness

Conversation

@markksantos

Copy link
Copy Markdown
Contributor

This adds an article, "Normalize the Loudness of a Folder of Videos with PowerShell and FFmpeg", and my author profile (made with tools/new-author.ps1).

The article builds an advanced function that measures every video in a folder with FFmpeg's two-pass loudnorm filter. It normalizes the files that miss the target in ForEach-Object -Parallel, supports -WhatIf, skips files that are already within tolerance, and re-measures what it writes. It also covers the problems I ran into: reading the loudnorm report from stderr, $using: and runspace scope in -Parallel, a colon after a variable inside a string, and when loudnorm falls back from linear to dynamic mode.

I drafted this with Claude Code; every command in it was run on PowerShell 7.6.9 with FFmpeg 9.0.2, and the output shown is from those runs. PSScriptAnalyzer reports no findings for the function, and the site builds with Hugo 0.155.1 with validate:articles passing.

It's dated for today; happy to move it to whatever date suits the schedule.

…hell and FFmpeg

Adds a guest article on batch loudness normalization with FFmpeg's two-pass loudnorm and ForEach-Object -Parallel, plus an author profile for Mark Santos.
@netlify

netlify Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for powershellorg ready!

Name Link
🔨 Latest commit 6deecae
🔍 Latest deploy log https://app.netlify.com/projects/powershellorg/deploys/6ae9292e9dc03add1f2f4d23
😎 Deploy Preview https://deploy-preview-501--powershellorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@HeyItsGilbert

Copy link
Copy Markdown
Member

Was reading the article on the preview page but it looks like we need to fix the code rendering so allows horizontal scroll. Article looks good at first glance.

.prose .highlight clips (overflow: hidden) to keep its rounded corners,
so lines wider than the column were cut off. Scroll the wrapper Chroma
renders around the line-number table instead; the copy button stays
put.
@markksantos

Copy link
Copy Markdown
Contributor Author

Thanks for reading it! The clipping came from the theme rather than the article: .prose .highlight sets overflow: hidden (for the rounded corners), so any line wider than the column was cut off, on other articles too. I pushed 6deecae, which adds .prose .highlight > div { overflow-x: auto; } in baseof.html so the line-number table scrolls inside its wrapper. I checked it against this preview at 1280 px and 390 px: the wide blocks scroll, the page itself doesn't get wider, and the copy button stays in the corner. If you'd rather keep theme changes out of an article PR, I can drop that commit and shorten the long lines in the article instead.

@HeyItsGilbert

Copy link
Copy Markdown
Member

If you're happy with the preview, I'm happy to land it. Thanks for the fix!

@markksantos

Copy link
Copy Markdown
Contributor Author

Thanks! I re-checked the rebuilt preview at 1280 px and 390 px: every code block scrolls where it needs to and nothing else moved. Happy for it to land.

@HeyItsGilbert
HeyItsGilbert merged commit a213471 into PowerShellOrg:main Nov 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants