# 使用 Homebrew 安装 sub2srt

查看 sub2srt 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:sub2srt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sub2srt
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:sub2srt
- **软件包管理器:** Homebrew
- **版本:** 0.5.5
- **来源摘要:** Convert subtitles from .sub to subviewer .srt format
- **主页:** <https://github.com/robelix/sub2srt>
- **仓库:** <https://github.com/robelix/sub2srt>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sub2srt (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.5.5
## 项目历史与用法

sub2srt is a small Perl command-line converter for subtitle files. Its README describes converting common `.sub` subtitle formats, including MicroDVD and SubRip-style inputs, into SubViewer `.srt` output suitable for tools such as ogmmerge.

### 项目历史

The README credits Roland Obermayer and describes the tool as a quick hack written after inspecting subtitle file layouts rather than from formal format documentation. Its bundled changelog records an initial 0.5 release on 2003-08-26, followed by small format and encoding updates through 2014.

### 采用历史

Its package-manager footprint is narrow: the input package-manager facts list Homebrew, and the README says installation is simply copying the single Perl script into a directory on `PATH`. That single-file script shape is typical of older media-conversion utilities that survived because they solved one awkward conversion job.

### 使用方式

Users run `sub2srt --help` for options and invoke the script to convert supported text subtitle formats. The README explicitly says it does not convert DVD subtitles or VobSub, which keeps the tool scoped to text subtitle conversion rather than OCR or bitmap subtitle workflows.

### 为什么软件包爱好者会关心

sub2srt is package-nerd-interesting less because it is large and more because it is tiny, old, and still packageable: a single Perl script with GPL-2 licensing, no runtime beyond Perl, and a narrow CLI purpose that Homebrew can preserve for users who hit legacy subtitle files.

### 时间线

- 2003-08-26: Initial sub2srt 0.5 release recorded in the README changelog.
- 2005-01-15: sub2srt 0.5.3 added txtsub input support.
- 2013-11-02: sub2srt 0.5.4 added MPL2 and TMP input format support.
- 2014-12-10: sub2srt 0.5.5 added support for encoding output with piconv.

### Related projects

- The README mentions MicroDVD, SubRip-style `.sub` input, SubViewer `.srt` output, ogmmerge, Perl, and excludes DVD subtitles and VobSub from scope.

### 来源

- <https://raw.githubusercontent.com/robelix/sub2srt/master/README>
- input source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/sub2srt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/sub2srt.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
