Txt2Srt
Converting *.txt subtitle files into SRT format. Especially suited for Dune HD players ;)
Install / Use
/learn @Nopik/Txt2SrtREADME
Quick and dirty script to convert txt subtitle files into srt.
At the moment code is far from being beautifull. I guess it will clean up over time, once the code will evolve.
This converter was created for my personal use. This is what I care about most here. If it doesnt work for you, too bad. If you want to add some features, feel free to do so. On the other hand, I will be adding features which will help me ;)
Syntax:
Conv.py example.txt >example.srt #will use default 23.976 fps Conv.py example.txt 25 >example.srt #will output subtitles at 25 fps Conv.py example.txt 25 24 >example.srt #will output subtitles at 25 fps, but read them from txt at 24 fps
Recognized formats examples:
-
{start frame}{end frame}: {100}{200}Subtitle line
-
[tenth of second]: [100][200]Subtitle line
This format will set output fps to 10 automatically.
- time: 01:02:03:Subtitle line
TODO:
- Make code better ;)
- Write into srt instead of stdout
- Create some gui
- Autodetect fps from movie (ffprobe?)
Related Skills
next
A beautifully designed, floating Pomodoro timer that respects your workspace.
product-manager-skills
41PM skill for Claude Code, Codex, Cursor, and Windsurf: diagnose SaaS metrics, critique PRDs, plan roadmaps, run discovery, and coach PM career transitions.
devplan-mcp-server
3MCP server for generating development plans, project roadmaps, and task breakdowns for Claude Code. Turn project ideas into paint-by-numbers implementation plans.
