New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

subdelay

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

subdelay

CLI tool to shift/delay subtitle timing in .srt and .ass files

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

subdelay - Subtitle Timing Shifter

A simple yet powerful command-line tool for shifting subtitle timing in .srt and .ass subtitle files.

Features

  • ⏱️ Easily adjust subtitle timing with millisecond precision
  • 🎬 Support for both .srt and .ass subtitle formats
  • ⚡ Fast and efficient processing
  • 🛠️ Simple command-line interface
  • 📦 Zero dependencies

Installation

npm install -g subdelay

Usage

subdelay <filename> <delay_in_ms>

Parameters

  • filename: Path to the subtitle file (must be .srt or .ass format)
  • delay_in_ms: Delay in milliseconds
    • Use positive values to delay subtitles (move them later)
    • Use negative values to advance subtitles (move them earlier)

Examples

Delay subtitles by 2 seconds (2000ms):

subdelay "movie.srt" 2000

Advance subtitles by 1.5 seconds (-1500ms):

subdelay "anime.ass" -1500

Supported Formats

  • SubRip Text (.srt) - One of the most common subtitle formats
  • Advanced SubStation Alpha (.ass) - Advanced format with styling, commonly used for anime

Notes

  • The tool modifies the file in place. Create a backup of your original file if needed.
  • For best results, ensure your subtitle files are properly formatted.
  • Negative delays will not result in negative timestamps; the minimum timestamp is 00:00:00,000.

Troubleshooting

Error: Unsupported file format

  • Make sure your file has a .srt or .ass extension and is properly formatted.

File not found

  • Check that the file path is correct and the file exists.

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  • Fork the repository
  • Create your feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes (git commit -m 'Add some amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

Author

irelevant25 - GitHub

Need Help?

If you encounter any issues or have questions, please open an issue on GitHub.

Keywords

subtitles

FAQs

Package last updated on 24 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts