# 使用 Homebrew 安装 sub2srt

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sub2srt
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:sub2srt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/sub2srt>
- **版本:** 0.5.5
- **来源摘要:** Convert subtitles from .sub to subviewer .srt format
- **主页:** <https://github.com/robelix/sub2srt>
- **仓库:** <https://github.com/robelix/sub2srt>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/robelix/sub2srt/archive/refs/tags/0.5.5.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- sub2srt (cli)
- sub2srt (别名)

## macOS 提供的库

- perl

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.5.5
- 本地数据: OK
- 上游仓库: https://github.com/robelix/sub2srt
- 检测到的最新版本: 0.5.5 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sub2srt
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [moribito](https://pkg.so/zh-hans/brew/moribito/) - Shares pkgdb curated category or tags: cli, conversion, media, subtitles.
- [mpv](https://pkg.so/zh-hans/brew/mpv/) - Shares pkgdb curated category or tags: cli, media, subtitles.
- [imagemagick-full](https://pkg.so/zh-hans/brew/imagemagick-full/) - Shares pkgdb curated category or tags: cli, conversion, media.
- [pstoedit](https://pkg.so/zh-hans/brew/pstoedit/) - Shares pkgdb curated category or tags: cli, conversion, media.
- [mplayer](https://pkg.so/zh-hans/brew/mplayer/) - Shares pkgdb curated category or tags: cli, media, subtitles.
- [fig2dev](https://pkg.so/zh-hans/brew/fig2dev/) - Shares pkgdb curated category or tags: cli, conversion, media.
- [pdf2svg](https://pkg.so/zh-hans/brew/pdf2svg/) - Shares pkgdb curated category or tags: cli, conversion, media.
- [subliminal](https://pkg.so/zh-hans/brew/subliminal/) - Shares pkgdb curated category or tags: cli, media, subtitles.
- [libwmf](https://pkg.so/zh-hans/brew/libwmf/) - Local package facts share a topical domain. Shared terms: cli, conversion, format, media.
- [ncmdump](https://pkg.so/zh-hans/brew/ncmdump/) - Local package facts share a topical domain. Shared terms: cli, conversion, convert, media.
- [ps2eps](https://pkg.so/zh-hans/brew/ps2eps/) - Local package facts share a topical domain. Shared terms: cli, conversion, convert, media.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
