<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 梁智鸿</title>
    <description>The latest articles on DEV Community by 梁智鸿 (@_fcd6e4549ec904d0e725e).</description>
    <link>https://dev.to/_fcd6e4549ec904d0e725e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4262266%2F7bc06c85-334c-4cff-803e-8590a27165ed.png</url>
      <title>DEV Community: 梁智鸿</title>
      <link>https://dev.to/_fcd6e4549ec904d0e725e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_fcd6e4549ec904d0e725e"/>
    <language>en</language>
    <item>
      <title>I cleaned 58 subtitle cues with one Python script — and I'm pre-selling the desktop version</title>
      <dc:creator>梁智鸿</dc:creator>
      <pubDate>Tue, 24 Nov 2026 09:30:06 +0000</pubDate>
      <link>https://dev.to/_fcd6e4549ec904d0e725e/i-cleaned-58-subtitle-cues-with-one-python-script-and-im-pre-selling-the-desktop-version-30ke</link>
      <guid>https://dev.to/_fcd6e4549ec904d0e725e/i-cleaned-58-subtitle-cues-with-one-python-script-and-im-pre-selling-the-desktop-version-30ke</guid>
      <description>&lt;p&gt;Auto-captions lie about what you said.&lt;/p&gt;

&lt;p&gt;Whisper / CapCut give you "Um, uh, so, so, I, I think you know, like, we should start with, uh, the budget?"&lt;/p&gt;

&lt;p&gt;You actually said "I think we should start with the budget?"&lt;/p&gt;

&lt;p&gt;I wrote a single deterministic Python script (standard library only, no AI, no upload) that cleans the SRT you already have: it strips standalone fillers (um/uh/erm/you know, filler "like"), collapses repeats ("the the" -&amp;gt; "the"), re-wraps to 37 chars / 2 lines per cue (the Premiere readability rule), sorts cues and trims timestamp overlaps, strips HTML tags, and normalises whitespace and capitalisation. Timestamps are never changed except for overlap trimming.&lt;/p&gt;

&lt;p&gt;I ran it on three sample transcripts (58 cues): 124 filler words removed, 9 repeats collapsed, 58 cues re-wrapped, 13 timestamp issues fixed, 12 HTML tags stripped.&lt;/p&gt;

&lt;p&gt;The samples are synthetic files written for the demo, not a real creator's transcript — the counts are real counts from running the script on them.&lt;/p&gt;

&lt;p&gt;Try it yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 clean_srt.py messy.srt clean.srt before-after.txt counts.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The script, the rules, and the samples are free and MIT-licensed on GitHub: &lt;a href="https://github.com/LZH0713/CleanSRT" rel="noopener noreferrer"&gt;https://github.com/LZH0713/CleanSRT&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full offline desktop app — batch cleaning, chapter export (clean SRT/VTT + chapters.txt + MP3 chapters), and a GUI instead of the command line — is in pre-sale: $19 early bird for the first 20, $39 regular, full refund if it never ships: &lt;a href="https://lzhorizon4.gumroad.com/l/rsmqd" rel="noopener noreferrer"&gt;https://lzhorizon4.gumroad.com/l/rsmqd&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Honest question for podcasters and editors: is hand-writing timestamps (Wideframe puts it at 30–45 min per episode, plus 20–30 min for show notes) a pain you would pay $19 to skip, or do you just live with messy captions?&lt;/p&gt;

&lt;p&gt;— CleanSRT&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>python</category>
      <category>podcast</category>
      <category>creators</category>
    </item>
  </channel>
</rss>
